/* 审核助手与报告共用甲方色彩和材料查看器；收起时不改变阅读宽度。 */
:root{--audit-sidebar-width:560px;--audit-action-height:0px}
.audit-chat-tasks{margin:20px 0;min-width:0}
.audit-chat-tasks>h4{font-size:.95rem;margin:0 0 12px;color:var(--brand)}
.audit-chat-task{margin:0 0 24px;padding:16px;background:var(--accent);border-radius:12px;min-width:0;display:grid;gap:16px}
.audit-task-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.audit-task-header .audit-task-question{margin:0;font-size:1rem;line-height:1.65;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.audit-task-header [data-task-focus]{flex:none;min-height:44px;font-size:.8rem;padding:8px 12px;color:var(--brand);background:var(--surface)}
.audit-chat-task fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:12px}
.audit-chat-task p{margin:0;line-height:1.75;overflow-wrap:anywhere}
.audit-chat-task label{display:grid;gap:6px;font-size:.85rem;font-weight:600}
.audit-chat-task select,.audit-chat-task textarea{width:100%;max-width:100%;min-width:0;background:var(--surface);color:var(--ink)}
.audit-task-reason{font-size:.85rem;color:var(--ink)}
.audit-task-direction{font-size:.85rem}
.audit-task-candidates{font-size:.8rem;line-height:1.6}
.audit-task-candidates>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.audit-task-candidates button{max-width:100%;white-space:normal;overflow-wrap:anywhere;background:var(--surface)}
.audit-task-candidates [aria-pressed=true]{border-color:var(--brand);color:var(--brand);font-weight:700}
.audit-task-status{font-size:.8rem;color:var(--muted)}
.audit-task-targets>strong{display:block;font-size:.85rem;margin-bottom:8px}
.audit-task-materials{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.audit-task-targets>.audit-task-materials{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.audit-task-targets .image-evidence-slot,.audit-task-targets .video-evidence-slot{display:flex;align-items:center;justify-content:center;height:144px;overflow:hidden}
.audit-task-targets .proof-thumbnail{width:100%;max-height:144px;object-fit:contain}
.audit-task-targets .video-evidence-frame{height:144px}
.audit-task-targets .actual-media{margin:0}
.audit-task-targets .proof-label,.audit-task-targets .evidence-location{font-size:.78rem;line-height:1.6}
.audit-task-materials .copilot-proof,.audit-task-materials .video-proof{width:100%;max-width:100%;min-width:0}
.answer-locations{margin:20px 0;min-width:0}
.answer-locations>strong{display:block;font-size:.9rem;color:var(--ink);margin-bottom:8px}
.answer-locations>.caption{margin:0 0 12px;line-height:1.65}
.answer-location-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));column-gap:16px;align-items:start;min-width:0}
.answer-location-list>.answer-source{min-width:0;padding:12px 0;border-bottom:1px solid var(--line)}
.answer-location-list>.answer-source:last-child{border-bottom:0}
.answer-location-list .copilot-citation{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px 12px;text-align:left;background:var(--surface);color:var(--ink);white-space:normal}
.answer-location-list .proof-label{display:block;font-size:.78rem;line-height:1.6;color:var(--brand);font-weight:600}
.answer-location-list .proof-location{display:block;font-size:.85rem;line-height:1.7;color:var(--ink);margin:0;white-space:normal;overflow-wrap:anywhere}
.answer-location-list .actual-media{margin:0}
.answer-location-list .order-source{font-size:.82rem;margin-top:8px}
.answer-locations>.answer-location-scope{margin:12px 0 0;font-size:.75rem;color:var(--muted)}
.answer-location-list .copilot-citation:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.audit-task-basis{padding-top:12px;border-top:1px solid var(--line);font-size:.82rem}
.audit-task-basis>summary{min-height:44px;align-content:center;color:var(--brand);cursor:pointer}
.audit-task-basis[open]>.audit-task-materials{margin-top:8px}
.audit-chat-task button[type=submit]{justify-self:start;min-height:44px;white-space:normal}
.audit-chat-task .proof-card{max-width:100%;min-width:0}
.audit-sidebar-available #collaboration-panel{display:none}
#audit-sidebar-launcher{position:fixed;right:24px;bottom:calc(var(--audit-action-height) + 22px);z-index:24;display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border-color:var(--brand);box-shadow:0 6px 22px #142e2820;font-weight:700;color:var(--brand)}
#audit-sidebar-launcher img{width:40px;height:40px;border-radius:8px;object-fit:contain;background:#111}
.audit-sidebar-open #audit-sidebar-launcher{display:none}
.audit-sidebar{position:fixed;z-index:30;right:0;top:0;bottom:0;width:var(--audit-sidebar-width);max-width:100vw;background:var(--surface);color:var(--ink);box-shadow:-10px 0 40px #112c2920;display:flex;flex-direction:column;font-size:.9rem;isolation:isolate}
.audit-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px 12px}
.audit-sidebar-header h2{font-size:1.2rem;margin:0;color:var(--brand)}
.audit-sidebar-header p{font-size:.8rem;margin:4px 0 0;color:var(--muted)}
.audit-sidebar-header>button{padding:4px;font-size:1.5rem;width:44px;flex:none}
.audit-sidebar-pending{padding:24px;gap:20px;bottom:var(--audit-action-height);height:auto}
.audit-sidebar-pending[hidden]{display:none}
.audit-sidebar-pending-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}
.audit-sidebar-pending-header img{width:142px;height:50px;object-fit:contain}
.audit-sidebar-pending-header button{min-width:64px;min-height:44px}
.audit-sidebar-pending h2{font-size:1.2rem;color:var(--brand);margin:0}
.audit-sidebar-pending p{margin:0;line-height:1.8;max-width:35ch}
.audit-sidebar-pending .caption{color:var(--muted);font-size:.82rem}
.audit-sidebar-context{margin:0 22px 14px;color:var(--muted);font-size:.8rem;line-height:1.65}
.audit-sidebar-tabs{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);padding:0 16px 10px}
.audit-sidebar-tabs button{font-size:.82rem;padding:7px 10px;border-color:transparent}
.audit-sidebar-tabs [aria-current=page]{background:var(--accent);color:var(--brand);font-weight:700}
.audit-sidebar-tabs .audit-refresh{margin-left:auto;color:var(--muted)}
.audit-chat-scroll,.audit-rules-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 22px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.audit-chat-history{min-height:120px}
.audit-chat-history .conversation-record{margin:20px 0;padding-bottom:20px}
.audit-chat-history .conversation-question{margin-left:24px;padding:12px 14px;background:var(--accent)}
.audit-chat-history .conversation-answer{margin-right:0;padding-top:16px}
.audit-chat-history .conversation-answer>small{font-size:.73rem}
.audit-process{margin:16px 0;color:var(--ink);font-size:.82rem}
.audit-process>summary{min-height:44px;align-content:center;color:var(--brand);cursor:pointer}
.audit-process-steps{list-style:none;margin:4px 0 8px;padding:0;display:grid;gap:8px}
.audit-process-steps>li{display:grid;grid-template-columns:6em minmax(0,1fr);gap:12px;line-height:1.7}
.audit-process-steps>li>span:first-child{color:var(--brand);font-weight:600}
.audit-process-steps>.audit-process-unavailable>span:first-child{color:var(--muted)}
.audit-process>.caption{font-size:.75rem;line-height:1.7;color:var(--muted)}
.audit-chat-history .answer-next-step{margin:16px 0;padding-top:12px;border-top:1px solid var(--line)}
.audit-chat-history .answer-next-step>strong,.audit-chat-history .answer-uncertainty>strong{display:block;font-size:.9rem}
.audit-chat-history .answer-confidence>summary{font-size:.82rem;line-height:1.7;color:var(--brand)}
.earlier-report-chat{border-top:1px solid var(--line);padding-top:14px;margin-top:24px;color:var(--muted)}
.earlier-report-chat>summary{font-size:.82rem;cursor:pointer;color:var(--brand)}
.audit-chat-history .conversation-question p,.audit-chat-history .conversation-answer p{line-height:1.85}
.audit-chat-history .copilot-proof{max-width:100%}
.audit-chat-history .customer-reply-draft{padding:12px}
.audit-chat-history .reply-editor-actions{gap:6px}
.audit-chat-history .reply-editor-actions button{font-size:.8rem}
.audit-chat-compose{position:relative;flex:none;border-top:1px solid var(--line);padding:12px 22px;max-height:58dvh;overflow:visible;background:var(--surface)}
.audit-compose-toggle{display:block;width:100%;min-height:44px;color:var(--brand);font-weight:700;text-align:center}
.audit-chat-compose[data-expanded=false] .audit-chat-compose-fields{display:none}
.audit-chat-compose[data-expanded=true] .audit-compose-toggle{margin-bottom:12px}
.audit-chat-compose #conversation-form{margin:0;padding:0;border:0}
.audit-chat-compose #question{min-height:82px;max-height:180px;font-size:.9rem;resize:vertical}
.audit-chat-compose #conversation-form>label{font-size:.82rem}
.audit-chat-compose #conversation-form>.caption{display:none}
.audit-chat-compose #conversation-form>#conversation-draft-status{display:block;font-size:.78rem;line-height:1.5;margin:6px 0;color:var(--muted)}
.audit-chat-compose #conversation-form>#conversation-draft-status:empty{display:none}
.audit-chat-compose #send-question{width:100%;margin-top:10px;min-height:44px}
.audit-chat-settings{margin-top:10px}
.audit-chat-settings>summary{font-size:.8rem;color:var(--brand);cursor:pointer}
.audit-chat-settings .help-options{grid-template-columns:1fr;gap:8px;margin:10px 0}
.audit-chat-settings .help-options label{font-size:.78rem}
.audit-chat-settings select{margin-top:2px}
.audit-chat-note{font-size:.72rem;color:var(--muted);text-align:center;margin:7px 0 2px}
.audit-chat-native #question-feedback,.audit-chat-native #question-reply{font-size:.8rem;padding:8px;margin:0 0 10px;border:1px solid var(--line);border-radius:7px;background:var(--accent)}
.audit-rules-native>.sop-reader{margin:0;padding:18px 0;border:0;display:block}
.audit-rules-native>.sop-reader>summary{display:none}
.audit-rules-native .help-options{grid-template-columns:1fr;gap:10px}
.audit-rules-native .sop-original{font-size:.86rem}
.audit-sidebar-backdrop{position:fixed;inset:0;background:#0c272c33;z-index:29}
.audit-reference-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.audit-reference-chips:empty{display:none}
.audit-reference-chip{display:inline-flex;min-width:0;max-width:100%;align-items:center;border:1px solid var(--line);border-radius:7px;background:var(--accent);color:var(--brand)}
.audit-reference-chip button{border:0;border-radius:6px;background:transparent;min-height:36px;padding:6px 8px;font-size:.77rem;color:inherit;overflow-wrap:anywhere}
.audit-reference-chip button:first-child{text-align:left}
.audit-reference-chip button:last-child{flex:none;min-width:36px}
.audit-reference-status{font-size:.73rem;color:var(--muted);margin:4px 0 8px}
.saved-question-references{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.saved-question-references button{font-size:.77rem;padding:5px 8px;min-height:36px;text-align:left;background:var(--surface);color:var(--brand);overflow-wrap:anywhere}
.audit-source-highlight{outline:2px solid var(--brand);outline-offset:6px;background:var(--accent)}
.audit-mentions{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:4px;margin-bottom:10px;max-height:220px;overflow:auto}
.audit-mentions>button{display:flex;width:100%;text-align:left;gap:10px;align-items:center;border:0;padding:8px;min-height:55px}
.audit-mentions img{width:42px;height:42px;object-fit:contain;background:var(--bg);flex:none}
.audit-mentions small,.audit-mentions strong{display:block;overflow-wrap:anywhere;font-size:.77rem}
.audit-mentions .audit-file-kind{font-size:.7rem;min-width:42px;color:var(--brand)}
.audit-quote-action{position:fixed;z-index:35;left:50%;bottom:calc(var(--audit-action-height) + 24px);transform:translateX(-50%);max-width:calc(100vw - 24px);background:var(--surface);box-shadow:0 8px 30px #152b2940;border:1px solid var(--brand);border-radius:10px;display:flex;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap}
.audit-quote-action>span{font-size:.78rem;color:var(--muted)}
.audit-quote-action>button{font-size:.82rem;color:var(--brand)}
.audit-sidebar-enabled #collaboration-panel{display:none}
.audit-sidebar[aria-busy=true] .audit-chat-native{pointer-events:none;opacity:.55}
.audit-confirm-root{display:flex;flex:1;min-height:0}
.audit-confirm-form{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;margin:0}
.audit-confirm-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 22px 18px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.audit-confirm-intro,.audit-confirm-condition{color:var(--muted);font-size:.85rem;line-height:1.7}
.audit-confirm-task{min-width:0;border:0;border-top:1px solid var(--line);margin:22px 0 0;padding:16px 0 0}
.audit-confirm-task legend{padding:0 0 8px;font-size:1rem;font-weight:700;line-height:1.65;overflow-wrap:anywhere}
.audit-confirm-task p{font-size:.9rem;line-height:1.8;margin:8px 0 12px;overflow-wrap:anywhere}
.audit-confirm-direction{background:var(--accent);padding:10px 12px;border-radius:8px;color:var(--brand)}
.audit-confirm-candidates>p{font-size:.8rem;color:var(--muted);margin-bottom:8px}.audit-confirm-candidates>div{display:flex;gap:8px;flex-wrap:wrap}.audit-confirm-candidates button{min-height:44px;max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}.audit-confirm-candidates button[aria-pressed=true]{background:var(--accent);color:var(--brand);border-color:var(--brand)}
.audit-confirm-task label,.audit-confirm-submit>label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;margin-top:14px}
.audit-confirm-task :is(select,textarea),.audit-confirm-submit :is(input,select){width:100%;box-sizing:border-box;font-size:1rem}
.audit-confirm-evidence{display:flex;flex-direction:column;gap:10px;margin:10px 0;min-width:0}
.audit-confirm-evidence>*{max-width:100%;min-width:0;margin-inline:0}
.audit-confirm-evidence .copilot-proof{width:100%;white-space:normal;text-align:left;color:var(--brand);overflow-wrap:anywhere}
.audit-confirm-evidence :is(img,video){max-width:100%;max-height:200px;object-fit:contain}
.audit-confirm-evidence :is(pre,table){max-width:100%;overflow:auto}
.audit-confirm-submit{padding:0 22px 10px;border-top:1px solid var(--line);max-height:44dvh;overflow:auto;background:var(--surface)}
.audit-confirm-submit>button{display:block;width:100%;margin-top:10px;min-height:44px;white-space:normal}
.audit-confirm-settings{font-size:.8rem;color:var(--muted);margin:10px 0}
.audit-confirm-settings summary{cursor:pointer;color:var(--brand);padding:7px 0}
.audit-confirm-settings p,.audit-confirm-status{font-size:.8rem;line-height:1.65;overflow-wrap:anywhere}
.audit-confirm-status{margin:8px 0 0;color:var(--muted)}
.audit-confirm-empty{padding:22px;line-height:1.8}
.audit-confirm-open{display:inline-flex;margin:12px 0;color:var(--brand)}
/* 窄侧栏中的悬停预览只负责说明，不能挡住原件的点击入口。 */
.audit-sidebar-open #copilot-evidence-preview{pointer-events:none}
.audit-sidebar-docked .app-layout{margin-right:var(--audit-sidebar-width)}
.audit-sidebar-docked .app-header{padding-right:calc(var(--audit-sidebar-width) + 28px)}
.audit-sidebar-docked #case-actions,.audit-sidebar-docked>.action-bar{right:var(--audit-sidebar-width)}
.audit-sidebar-docked #workspace{padding-inline:28px}
.audit-sidebar-docked .audit-sidebar-backdrop{display:none}
@media(max-width:600px){
 .audit-chat-task{padding:12px}
 .audit-task-header{flex-direction:column;gap:8px}
 :root{--audit-sidebar-width:100vw}
 .audit-sidebar-header{padding:14px 16px 10px}
 .audit-sidebar-context{margin-inline:16px}
 .audit-chat-scroll,.audit-rules-scroll{padding-inline:16px}
 .audit-confirm-scroll,.audit-confirm-submit{padding-inline:16px}
 .audit-chat-compose{padding:12px 14px max(10px,env(safe-area-inset-bottom));max-height:55dvh}
 #audit-sidebar-launcher{right:14px;bottom:calc(var(--audit-action-height) + 14px);padding:6px 10px 6px 6px}
 #audit-sidebar-launcher img{width:34px;height:34px}
 .audit-quote-action{bottom:calc(var(--audit-action-height) + 14px);width:max-content}
}
body.audit-sidebar-open:not(.audit-sidebar-docked){overflow:hidden}
@media(prefers-reduced-motion:no-preference){.audit-sidebar{animation:audit-sidebar-enter .18s ease-out}@keyframes audit-sidebar-enter{from{transform:translateX(28px);opacity:.75}to{transform:translateX(0);opacity:1}}}
.audit-reply-quote-preview{padding:10px 0;border-block:1px solid var(--line);font-size:.85rem;overflow-wrap:anywhere}
.audit-reply-quote-preview blockquote,.saved-reply-reference blockquote,.answer-history-context blockquote{white-space:pre-wrap;overflow-wrap:anywhere;max-height:12rem;overflow:auto;margin:8px 0}
.audit-reply-quote-preview p{margin:6px 0;color:var(--muted);font-size:.78rem}
.saved-reply-reference{min-width:0;max-width:100%}

/* 对话有自己的滚动域，输入始终留在可视底部；模型设置与旧记录退居次级。 */
.audit-sidebar{top:var(--audit-viewport-top,0px);bottom:auto;height:var(--audit-viewport-height,100dvh);min-width:0;border-left:1px solid var(--line);box-shadow:-12px 0 36px #112c2914}
.audit-sidebar-header{padding:18px 24px 12px;gap:12px;flex:none}
.audit-sidebar-header h2{font-size:1.12rem;color:var(--ink);letter-spacing:0}
.audit-sidebar-header p{font-size:.76rem;margin-top:2px}
.audit-sidebar-header>button{display:grid;place-items:center;border:0;background:transparent;min-height:44px}
.audit-sidebar-tabs{padding:0 20px 12px;gap:8px;flex:none}
.audit-sidebar-tabs button{font-size:.82rem;min-height:40px;white-space:nowrap}
.audit-sidebar-tabs [aria-current=page]{box-shadow:inset 0 -2px var(--brand);border-radius:6px}
.audit-sidebar-resize{position:absolute;inset:0 auto 0 -5px;width:10px;z-index:2;cursor:ew-resize;touch-action:none}
.audit-sidebar-resize::after{content:'';position:absolute;left:4px;top:45%;width:2px;height:42px;background:var(--line);border-radius:2px}
.audit-sidebar-resize:hover::after,.audit-sidebar-resize:focus-visible::after{background:var(--brand)}
.audit-chat-scroll{padding-inline:24px;scroll-padding:20px;min-height:64px}
.audit-chat-history{min-height:0}
.audit-chat-history .conversation-record{margin:20px 0 24px;padding-bottom:24px;border-color:var(--line)}
.audit-chat-history .conversation-question{margin-left:40px;padding:12px 16px;background:var(--accent);border-radius:12px 12px 3px 12px}
.audit-chat-history .conversation-question>strong{font-size:.75rem;color:var(--muted);font-weight:500}
.audit-chat-history .conversation-question>small{display:block;font-size:.69rem;line-height:1.6;margin-top:8px}
.audit-chat-history .conversation-question>p{margin:4px 0;font-size:.9rem;line-height:1.8}
.audit-chat-history .conversation-answer{padding-top:20px;font-size:.94rem;line-height:1.85}
.audit-answer-label{display:block;font-size:.78rem;color:var(--brand);font-weight:650;margin-bottom:10px}
.audit-chat-history .conversation-answer p{line-height:1.85}
.audit-chat-history .answer-next-step{margin:16px 0;border:0;padding:0}
.audit-chat-history .answer-next-step>strong,.audit-chat-history .answer-uncertainty>strong{font-size:.85rem}
.audit-chat-history .answer-uncertainty{margin:14px 0;padding:12px 14px;border-radius:8px}
.audit-turn-meta{margin-top:18px;color:var(--muted);font-size:.74rem}
.audit-turn-meta>summary{cursor:pointer;min-height:36px;line-height:36px}
.audit-turn-meta p{font-size:.77rem}
.audit-turn-state{padding:14px 0}
.audit-turn-state>strong{display:flex;gap:9px;align-items:center;font-size:.85rem}
.audit-turn-state p{font-size:.86rem;margin:8px 0}
.audit-turn-state small{display:block;font-size:.73rem}
.audit-turn-state.is-pending>strong::before{content:'';width:8px;height:8px;flex:none;border-radius:50%;background:var(--brand)}
.audit-turn-state.is-error>strong{color:var(--warning)}
.conversation-empty{padding:28px 0 20px;max-width:34ch}
.conversation-empty h3{font-size:1.2rem;margin:0 0 12px;color:var(--ink);font-weight:650}
.conversation-empty p{font-size:.9rem;color:var(--muted);line-height:1.8;margin:10px 0}
.conversation-empty p.caption{font-size:.77rem}
.earlier-report-chat{padding-top:16px;margin-top:24px}
.earlier-report-chat>summary{font-size:.76rem;color:var(--muted);min-height:40px;line-height:40px}
.earlier-report-chat .caption{font-size:.75rem}
.audit-chat-state{font-size:.77rem;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.audit-chat-state #conversation-status{font-size:.76rem;line-height:1.6;margin:0 0 8px;flex:1;min-width:0}
.audit-chat-state #conversation-status:empty{display:none}
.audit-chat-state #refresh-conversation{min-height:36px;padding:4px 9px;font-size:.76rem;margin-bottom:8px;flex:none;color:var(--brand)}
.audit-chat-compose #conversation-form>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.audit-chat-compose #question{display:block;margin:0;min-height:56px;max-height:128px;padding:11px 12px;font-size:.94rem;resize:none;border-radius:10px;line-height:1.6}
.audit-chat-compose #question:focus{border-color:var(--brand)}
.audit-chat-compose #conversation-form>#conversation-draft-status{font-size:.7rem;line-height:1.5;margin:5px 0}
.audit-compose-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
.audit-chat-settings{margin:0;min-width:0;flex:1}
.audit-chat-settings>summary{font-size:.74rem;line-height:1.6;min-height:40px;display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--muted)}
.audit-chat-settings>summary::before{content:'+';font-size:1rem;color:var(--brand)}
.audit-chat-settings[open]>summary::before{content:'−'}
.audit-chat-settings[open] .help-options{position:absolute;z-index:4;left:16px;right:16px;bottom:calc(100% - 1px);margin:0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;max-height:42dvh;overflow:auto;box-shadow:0 -8px 28px #112c2912}
.audit-chat-settings .help-options{gap:12px}
.audit-chat-settings .help-options select{font-size:.85rem;min-height:42px}
.audit-chat-compose #send-question{width:auto;flex:none;min-width:94px;margin:0;min-height:44px;padding:8px 16px;font-size:.85rem;border-radius:9px}
.audit-chat-note{font-size:.65rem;margin:8px 0 0;color:var(--muted);text-align:right}
.audit-chat-compose .supplement-disclosure{margin:6px 0 0;padding:0;border:0}
.audit-chat-compose .supplement-disclosure>summary{font-size:.73rem;min-height:30px;line-height:30px;color:var(--muted)}
.audit-chat-compose .supplement-panel{max-height:22dvh;overflow:auto;margin-block:4px;font-size:.76rem}
.audit-reference-chips{max-height:82px;overflow:auto;margin-bottom:8px}
.audit-reference-chip{border-radius:6px}
.audit-reference-status:empty{display:none}
.audit-reference-status{font-size:.7rem;margin:2px 0 6px}
.audit-mentions{position:absolute;left:16px;right:16px;bottom:calc(100% + 1px);z-index:5;margin:0;max-height:36dvh}
.audit-chat-history .customer-reply-draft{margin:14px 0;padding:16px;background:var(--accent);border:0;border-radius:10px}
.audit-chat-history .customer-reply-draft h4{font-size:1rem;color:var(--ink)}
.reply-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.reply-editor-heading h4{margin:0;min-width:0;text-wrap:pretty}
.reply-editor-heading>button{width:auto;flex:none;white-space:nowrap;min-height:44px;font-size:.77rem;padding:8px 12px}
.audit-chat-history .customer-reply-draft .caption{font-size:.74rem}
.audit-chat-history .customer-reply-draft textarea{min-height:164px;font-size:.92rem;line-height:1.85;border-color:var(--line);margin:10px 0 14px}
.audit-chat-history .reply-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.audit-chat-history .reply-editor-actions button{width:100%;font-size:.78rem;line-height:1.4;padding:9px;min-height:44px}
.audit-chat-history .reply-editor-actions .primary{grid-column:1/-1}
.audit-chat-history .reply-editor-confirmer{font-size:.74rem}
.audit-chat-history .reply-version-status{font-size:.76rem;line-height:1.65}
.audit-chat-history .reply-preview{font-size:.95rem;line-height:1.9;margin:14px 0}
.audit-chat-history .reply-reading-actions button{font-size:.85rem;background:transparent;border-color:var(--line);color:var(--brand)}
.audit-chat-history .reply-editing{font-size:.875rem}
.audit-chat-history .reply-editor-history{font-size:.74rem}
.answer-reply-reason{margin:18px 0;font-size:.8rem}
.answer-reply-reason>summary{cursor:pointer;color:var(--brand);min-height:40px;line-height:40px}
.audit-markdown{overflow-wrap:anywhere;min-width:0}
.audit-markdown>:first-child{margin-top:0}
.audit-markdown>:last-child{margin-bottom:0}
.audit-markdown p{margin:10px 0;white-space:normal}
.audit-markdown h1,.audit-markdown h2,.audit-markdown h3,.audit-markdown h4,.audit-markdown h5,.audit-markdown h6{font-size:1em;line-height:1.65;margin:20px 0 8px;font-weight:700;text-wrap:pretty}
.audit-markdown ul,.audit-markdown ol{padding-left:1.5em;margin:10px 0}
.audit-markdown li{padding-left:3px;margin:5px 0}
.audit-markdown li>p{margin:5px 0}
.audit-markdown blockquote{margin:12px 0;padding:8px 12px;border-left:1px solid var(--brand);color:var(--muted);background:var(--accent)}
.audit-markdown pre{display:block;max-width:100%;overflow:auto;background:var(--bg);padding:12px;border:1px solid var(--line);border-radius:8px;line-height:1.65;white-space:pre;font-size:.78rem}
.audit-markdown code{font-family:Consolas,monospace;font-size:.86em;background:var(--bg);padding:2px 4px;border-radius:3px}
.audit-markdown pre code{font-size:inherit;padding:0;background:none}
.audit-markdown table{display:block;max-width:100%;overflow:auto;border-collapse:collapse;margin:14px 0;font-size:.81rem;line-height:1.65}
.audit-markdown th,.audit-markdown td{padding:9px 12px;border:1px solid var(--line);text-align:left;min-width:90px;max-width:32ch;white-space:normal;vertical-align:top}
.audit-markdown th{background:var(--accent);font-weight:650}
.audit-markdown hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.audit-markdown a{overflow-wrap:anywhere;text-decoration-thickness:1px}
.audit-markdown-image{font-size:.85em;color:var(--muted)}
.audit-sidebar-pending{padding:24px;height:var(--audit-viewport-height,100dvh);justify-content:flex-start}
.audit-sidebar-pending p{font-size:.85rem}
@media(max-width:600px){
 .audit-sidebar{width:100vw;border:0}
 .audit-sidebar-header{padding:12px 16px 8px}
 .audit-sidebar-tabs{padding:0 12px 10px;gap:4px}
 .audit-sidebar-tabs button{padding:6px 9px;font-size:.78rem}
 .audit-sidebar-resize{display:none}
 .audit-chat-scroll{padding-inline:16px}
 .audit-chat-compose{padding:10px 14px max(10px,env(safe-area-inset-bottom));max-height:58dvh}
 .audit-chat-history .conversation-question{margin-left:24px}
 .audit-chat-history .conversation-answer{font-size:.91rem}
 .audit-chat-settings>summary{font-size:.69rem}
 .audit-chat-note{font-size:.6rem}
}
@media(prefers-reduced-motion:no-preference){.audit-turn-state.is-pending>strong::before{animation:audit-wait 1.6s ease-in-out infinite}@keyframes audit-wait{50%{opacity:.35}}}

/* Solid Glass 6e8903e：仅适配控件圆角和边缘材质；来源及MIT许可见frontend/THIRD_PARTY_NOTICES.md。 */
.audit-sidebar,.audit-material-picker{--audit-control-radius:.7rem;--audit-pane-radius:.875rem;--audit-rim:oklch(1 0 0 / 90%);--audit-contact:oklch(0.25 0.03 265 / 6%);--audit-lift:oklch(0.25 0.03 265 / 14%)}
body.dark .audit-sidebar,body.dark .audit-material-picker{--audit-rim:oklch(1 0 0 / 9%);--audit-contact:oklch(0 0 0 / 20%);--audit-lift:oklch(0 0 0 / 38%)}
.audit-sidebar{width:var(--audit-sidebar-width,600px)}
.audit-sidebar-header .audit-assistant-mark{width:38px;height:38px;object-fit:contain;border-radius:9px;background:#101a19;flex:none}
.audit-sidebar-header>div{flex:1;min-width:0}
.audit-chat-compose{padding-top:10px;max-height:min(58dvh,520px)}
.audit-chat-compose-fields{min-width:0}
.audit-compose-tools{display:flex;align-items:center;gap:4px;margin:0 0 8px;min-height:36px}
.audit-compose-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px 9px;font-size:.76rem;color:var(--muted);background:transparent;border-color:transparent;white-space:nowrap}
.audit-compose-tools button:hover,.audit-compose-tools button[aria-expanded=true]{color:var(--brand);background:var(--accent);border-color:var(--line)}
.audit-compose-tools kbd{font:inherit;border:1px solid var(--line);border-radius:4px;min-width:18px;padding:0 3px;font-size:.68rem;color:var(--muted)}
.audit-chat-compose #question{border-radius:var(--audit-control-radius);box-shadow:inset 0 1px 0 var(--audit-rim);min-height:56px;max-height:20dvh}
.audit-chat-compose #question:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.audit-chat-compose #conversation-form[data-slot=composer]{padding:0;background:transparent}
.audit-chat-note{display:flex;justify-content:space-between;gap:10px;text-align:left;font-size:.64rem;line-height:1.6}
.audit-chat-note>span{min-width:0}
.audit-mobile-key{display:none}
.audit-return-latest{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;white-space:nowrap;background:var(--surface);color:var(--brand);font-size:.77rem;min-height:38px;padding:7px 14px;box-shadow:0 3px 12px var(--audit-lift);border-radius:20px}
.audit-material-picker{position:fixed;z-index:45;display:flex;flex-direction:column;min-height:0;overflow:hidden;color:var(--ink);background:var(--surface);border-radius:var(--audit-pane-radius);box-shadow:inset 0 1px 0 var(--audit-rim),0 3px 8px var(--audit-contact),0 14px 38px var(--audit-lift);outline:1px solid var(--line);font-size:.85rem}
.audit-material-picker>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px 6px;flex:none}
.audit-material-picker>header button{min-height:36px;font-size:.76rem;background:transparent;padding:6px 10px}
.audit-material-picker>input{width:calc(100% - 24px);margin:4px 12px 8px;min-height:42px;flex:none;font-size:.9rem;background:var(--bg);color:var(--ink)}
.audit-material-picker>.audit-mentions{position:static;border:0;border-radius:0;margin:0;max-height:none;overflow:auto;min-height:0;flex:1;padding:4px 8px}
.audit-material-picker .audit-mentions>button{border-radius:var(--audit-control-radius);margin:2px 0;min-height:58px;color:var(--ink);background:transparent}
.audit-material-picker .audit-mentions>button[aria-selected=true]{background:var(--accent);outline:1px solid var(--line);outline-offset:-1px}
.audit-material-picker .audit-mentions small{color:var(--muted);font-size:.74rem;line-height:1.5;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.audit-material-picker .audit-mentions strong{font-size:.82rem;line-height:1.7}
.audit-material-picker .audit-mentions p{margin:8px 10px;line-height:1.7}
.audit-material-picker>footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding:8px 14px;font-size:.69rem;color:var(--muted);flex:none}
.audit-message-actions{display:flex;align-items:center;gap:10px;margin:12px 0 18px;color:var(--muted);font-size:.73rem}
.audit-message-actions button{font-size:.73rem;min-height:36px;padding:6px 10px;background:transparent;color:var(--muted)}
.audit-chat-history .conversation-question[data-expanded=false]>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.audit-chat-history .conversation-question>[data-expand-question]{border:0;padding:4px 0;min-height:32px;background:transparent;color:var(--muted);font-size:.73rem;text-decoration:underline;text-underline-offset:3px}
.audit-answer-skeleton{display:grid;gap:10px;margin:18px 0;opacity:.55}
.audit-answer-skeleton span{height:8px;border-radius:4px;background:var(--line);width:88%}
.audit-answer-skeleton span:nth-child(2){width:100%}.audit-answer-skeleton span:nth-child(3){width:64%}
.audit-turn-state.is-error{background:var(--accent);padding:16px;border-radius:var(--audit-pane-radius)}
.audit-turn-state.is-error button{display:block;margin:14px 0 8px;font-size:.8rem;min-height:40px}
.audit-chat-state #conversation-status{margin-bottom:5px}
.audit-chat-task fieldset{padding-top:12px;border-top:1px solid var(--line)}
.audit-task-candidates [aria-pressed=true]::after{content:' · 已填入';font-weight:400}
.audit-task-status{padding-top:6px;line-height:1.7}
.audit-sidebar :is(button,a,summary,select):focus-visible,.audit-material-picker :is(button,input):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.audit-sidebar ::selection,.audit-material-picker ::selection{background:var(--brand);color:var(--surface)}
@media(max-width:600px){
 .audit-chat-compose{max-height:58dvh;padding-top:8px}
 .audit-compose-tools{margin-bottom:6px;gap:2px}.audit-compose-tools button{min-height:40px;padding:6px 8px}
 .audit-compose-tools kbd,.audit-desktop-key{display:none}.audit-mobile-key{display:inline}
 .audit-chat-note{font-size:.6rem;gap:8px;margin-top:6px}.audit-chat-note>span:last-child{text-align:right;max-width:23ch}
 .audit-chat-compose #question{font-size:16px}
 .audit-sidebar-header .audit-assistant-mark{width:32px;height:32px}
 .audit-material-picker>input{font-size:16px}
 .audit-material-picker>footer{display:none}
}
@media(pointer:coarse){.audit-desktop-key{display:none}.audit-mobile-key{display:inline}}
@media(prefers-reduced-motion:no-preference){.audit-answer-skeleton{animation:audit-wait 1.6s ease-in-out infinite}}

/* 并排审核时仅临时收起列表；收起助手即恢复原来的列表显示。 */
.audit-sidebar-compact-queue .app-layout{grid-template-columns:minmax(0,1fr)}
.audit-sidebar-compact-queue #case-sidebar{display:none}
.audit-sidebar-compact-queue #case-actions,.audit-sidebar-compact-queue>.action-bar{left:0}
