/* Public read-only assistant: the tool workspace retains its own controls. */
:root { --eve-assistant-reserved-width:0px; }
body.eve-assistant-ready #workspace { margin-right:var(--eve-assistant-reserved-width); }
.eva-panel,.eva-launcher,.eva-backdrop { box-sizing:border-box; }
.eva-panel[hidden],.eva-panel [hidden],.eva-launcher[hidden],.eva-backdrop[hidden] { display:none!important; }
.eva-panel { --eva-surface:var(--site-dark-panel,#080a09); --eva-line:var(--site-dark-border,#4b554f); --eva-text:var(--site-dark-text,#f1f4f0); --eva-accent:var(--site-dark-link,#c4d1c8); position:fixed; inset:0 0 0 auto; z-index:105; display:flex; flex-direction:column; width:var(--eva-width,420px); max-width:100vw; height:100dvh; min-height:0; color:var(--eva-text); background:var(--eva-surface); border-left:1px solid var(--eva-line); font:14px/1.6 "Microsoft YaHei","PingFang SC",system-ui,sans-serif; color-scheme:dark; }
.eva-panel * { box-sizing:border-box; }
.eva-head { display:flex; align-items:center; gap:7px; padding:12px 12px 8px 16px; flex:none; border-bottom:1px solid var(--eva-line); }
.eva-head h2 { flex:1; margin:0; font-size:18px; line-height:1.4; }
.eva-panel .eva-button,.eva-panel .eva-text-button,.eva-panel .eva-suggestion,.eva-launcher { min-height:36px; padding:7px 10px; border:1px solid var(--eva-line,#637268); border-radius:5px; background:#101512; color:var(--eva-text,#f1f4f0); font:inherit; line-height:1.4; cursor:pointer; }
.eva-panel .eva-button:hover,.eva-panel .eva-suggestion:hover,.eva-launcher:hover { background:#26372d; border-color:#d4e3d9; }
html body .eva-panel .eva-primary { background:var(--eva-accent,#c4d1c8)!important; color:#0a1510!important; border-color:var(--eva-accent,#c4d1c8)!important; font-weight:700; }
html body .eva-panel .eva-primary:hover { background:#e2ece6!important; color:#09120c!important; }
.eva-panel :is(button,input,textarea,select,a,summary,[role=separator]):focus-visible,.eva-launcher:focus-visible { outline:2px solid #deebe1; outline-offset:3px; }
.eva-panel button:disabled,.eva-panel input:disabled,.eva-panel select:disabled { opacity:.55; cursor:not-allowed; }
.eva-context { display:flex; flex-wrap:wrap; gap:4px 12px; padding:8px 16px 2px; flex:none; font-size:12px; color:#c8d3cb; }
.eva-mode { padding:2px 16px 8px; flex:none; font-size:12px; border-bottom:1px solid var(--eva-line); overflow-wrap:anywhere; }
.eva-settings { display:flex; flex-direction:column; flex:0 1 auto; min-height:0; max-height:55dvh; padding:0; border-bottom:1px solid var(--eva-line); overflow:hidden; background:#0b100d; }
.eva-settings-body { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:12px 16px; }
.eva-settings-footer { display:flex; flex-wrap:wrap; gap:8px; flex:none; padding:10px 16px; background:#0b100d; border-top:1px solid var(--eva-line); }
.eva-settings-footer .eva-actions { display:contents; }
.eva-settings-footer .eva-status { flex:0 0 100%; margin:2px 0 0; }
.eva-field { display:flex; flex-direction:column; gap:5px; margin-bottom:10px; min-width:0; }
.eva-field label { font-size:13px; font-weight:600; }
.eva-field input,.eva-field select,.eva-field textarea { display:block; width:100%; min-width:0; max-width:100%; min-height:36px; padding:8px 9px; border:1px solid #738177; border-radius:4px; background:#020403; color:#f3f6f3; font:inherit; line-height:1.45; }
.eva-field #eveAssistantKey { -webkit-text-security:disc; }
html[data-site-accent] body[data-ui-style] .eva-panel .eva-field :is(input,select,textarea) { background:#020403!important; color:#f3f6f3!important; border-color:#738177!important; }
.eva-field textarea { resize:vertical; min-height:76px; max-height:24dvh; }
.eva-panel input::placeholder,.eva-panel textarea::placeholder { color:#aab7ae; opacity:1; }
.eva-checkbox { display:flex; align-items:flex-start; gap:7px; margin:8px 0; font-size:13px; }
.eva-checkbox input { flex:0 0 18px; width:18px; height:18px; margin:2px 0 0; accent-color:#b9d3c0; }
.eva-help { margin:6px 0; font-size:12px; line-height:1.65; color:#c0cdc3; overflow-wrap:anywhere; }
.eva-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.eva-panel.eva-configuring :is(.eva-threadbar,.eva-workflow-bar,.eva-workflow-panel,.eva-messages,#eveAssistantStatus,.eva-compose) { display:none; }
.eva-panel.eva-configuring .eva-settings { flex:1 1 auto; min-height:0; max-height:none; }
.eva-status { flex:none; padding:0 16px; margin:7px 0; color:#d8e8dc; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.eva-settings .eva-status { padding:0; }
.eva-status:empty { display:none; }
.eva-panel .is-error { color:#ffd3c7; }
.eva-threadbar { display:flex; align-items:flex-end; gap:8px; flex:none; padding:8px 16px; border-bottom:1px solid var(--eva-line); }
.eva-threadbar .eva-field { flex:1; margin:0; }
.eva-threadbar label { font-size:12px; font-weight:400; color:#c0cdc3; }
.eva-threadbar select { font-size:12px; padding:5px 7px; min-height:34px; }
.eva-workflow-bar { display:flex; flex-wrap:wrap; gap:6px; padding:5px 16px; border-bottom:1px solid var(--eva-line); flex:none; }
.eva-workflow-bar .eva-button { min-height:31px; padding-block:3px; font-size:12px; }
.eva-workflow-panel { flex:0 1 auto; min-height:0; max-height:min(42dvh,320px); padding:10px 16px; overflow:auto; overscroll-behavior:contain; border-bottom:1px solid var(--eva-line); background:#0b100d; }
.eva-workflow-head { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-bottom:7px; }
.eva-workflow-head h3 { margin:0; font-size:15px; }
.eva-workflow-row { padding:8px 0; border-top:1px solid var(--eva-line); overflow-wrap:anywhere; }
.eva-workflow-row p { margin:5px 0; }
.eva-workflow-row .eva-answer-actions { margin-top:5px; }
.eva-action-list { margin:0 0 10px; padding:0; list-style:none; }
.eva-plan-choice { display:flex; gap:8px; align-items:start; margin:8px 0; }
.eva-plan-choice input { flex:none; margin-top:4px; }
.eva-watch-create { margin:8px 0; }
.eva-watch-form { display:grid; gap:8px; padding:8px 0; }
.eva-watch-form > button { justify-self:start; }
.eva-replay-preview { padding:8px; margin:0 0 8px; border:1px solid var(--eva-line); border-radius:6px; display:grid; gap:6px; }
.eva-replay-preview > :is(p,button) { margin:0; }
.eva-replay-preview > button { justify-self:start; }
.eva-replay-conditions pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:110px; overflow:auto; margin:6px 0; }
.eva-copy-case { width:100%; min-height:130px; padding:8px; background:#020403; color:inherit; }
.eva-row-proof { margin-top:8px; padding:8px 10px; border:1px solid var(--eva-line); border-radius:4px; overflow-wrap:anywhere; }
.eva-row-proof h5 { margin:0; font-size:13px; }
.eva-row-proof summary { cursor:pointer; }
.eva-panel .eva-number-link { display:inline-block; border:0; padding:3px 1px; background:transparent; font:inherit; color:var(--eva-accent); cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px; }
.eva-panel .eva-number-link:hover { text-decoration-style:solid; }
.eva-messages { flex:1 1 auto; min-height:100px; padding:14px 16px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; }
.eva-empty { border:1px dashed #58685d; padding:16px 12px; border-radius:6px; }
.eva-empty h3 { margin:0 0 8px; font-size:16px; }
.eva-empty p { margin:0 0 12px; color:#c6d3c9; }
.eva-panel .eva-suggestion { display:block; width:100%; margin:8px 0 0; font-size:13px; text-align:left; }
.eva-message { margin:0 0 16px; padding:12px; border:1px solid #53675b; border-radius:6px; overflow-wrap:anywhere; }
.eva-message.is-user { margin-left:20px; background:#152219; border-color:#7f9987; }
.eva-message.is-assistant { margin-right:8px; background:#050906; }
.eva-message-label { color:#bdcdc2; font-size:12px; margin:0 0 6px; }
.eva-message h3 { margin:12px 0 5px; font-size:14px; color:#edf5ef; }
.eva-message h3:first-of-type { margin-top:0; }
.eva-message p { margin:5px 0; white-space:pre-wrap; }
.eva-message ul { margin:5px 0 0; padding-left:20px; }
.eva-message li { margin:5px 0; white-space:pre-wrap; }
.eva-message .eva-claims { padding-left:18px; }
.eva-message .eva-claims > li { margin:8px 0; }
.eva-message .eva-claim-sources { list-style:none; padding:0; margin:3px 0 0; }
.eva-message .eva-claim-sources li { display:flex; flex-wrap:wrap; gap:2px 8px; margin:2px 0; font-size:12px; }
.eva-citation-meta { color:#bbcbbf; }
.eva-recovery { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:10px; }
.eva-recovery .eva-help { margin:0; }
.eva-evidence-list { margin-top:12px; border-top:1px solid var(--eva-line); padding-top:8px; }
.eva-evidence-list summary { cursor:pointer; color:#d4e4d9; font-weight:600; }
.eva-evidence { margin-top:10px; padding-top:9px; border-top:1px solid #3c4c41; }
.eva-evidence h4 { margin:0; font-size:13px; }
.eva-values { display:grid; grid-template-columns:minmax(65px,1fr) minmax(0,1.25fr); gap:5px 10px; margin:10px 0; font-size:13px; }
.eva-values dt { color:#bdcdc2; }
.eva-values dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.eva-times { margin-top:5px; color:#bbcbbf; font-size:12px; }
.eva-times p { margin:2px 0; }
.eva-history { margin-top:10px; }
.eva-history summary { cursor:pointer; color:#d4e4d9; font-size:13px; }
.eva-history-wrap { max-width:100%; overflow:auto; }
.eva-history table { width:100%; border-collapse:collapse; font-size:12px; }
.eva-history th,.eva-history td { padding:6px 5px; border-bottom:1px solid #3c4c41; text-align:left; white-space:nowrap; }
.eva-history th:last-child,.eva-history td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.eva-excerpt { font-size:13px; line-height:1.75; }
.eva-panel a { color:#d4e8db; text-decoration:underline; text-underline-offset:3px; }
.eva-sources { display:flex; gap:6px 12px; flex-wrap:wrap; margin-top:10px; font-size:12px; }
.eva-answer-actions { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.eva-answer-actions .eva-button { max-width:100%; white-space:normal; text-align:left; }
.eva-task + .eva-task { margin-top:12px; padding-top:12px; border-top:1px solid #53675b; }
.eva-answer-card { margin:12px 0; padding:10px; border:1px solid var(--eva-line); border-radius:5px; }
.eva-answer-card h4 { margin:0 0 7px; font-size:13px; }
.eva-answer-table { max-height:320px; overflow:auto; }
.eva-answer-table:focus-visible { outline:2px solid var(--eva-accent); outline-offset:2px; }
.eva-answer-table table { width:100%; border-collapse:collapse; font-size:12px; font-variant-numeric:tabular-nums; }
.eva-answer-table :is(th,td) { min-width:6.5em; padding:6px 8px; border-bottom:1px solid var(--eva-line); text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.eva-answer-table th { position:sticky; top:0; background:var(--eva-surface); }
.eva-answer-table .eva-number { text-align:right; }
.eva-handoff { margin-top:8px; }
.eva-compose { flex:none; padding:10px 16px max(10px,env(safe-area-inset-bottom)); border-top:1px solid var(--eva-line); background:var(--eva-surface); }
.eva-compose .eva-field { margin-bottom:7px; }
.eva-followups { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.eva-panel .eva-followups .eva-button { min-height:34px; padding:4px 8px; font-size:12px; }
.eva-compose-actions { display:flex; align-items:center; gap:7px; }
.eva-compose-actions .eva-primary { margin-left:auto; min-width:60px; }
.eva-compose .eva-help { margin-bottom:0; }
.eva-quoted { display:flex; align-items:center; justify-content:space-between; gap:7px; margin:0 0 8px; padding:6px 8px; border:1px solid #657a6c; border-radius:4px; font-size:12px; }
.eva-panel .eva-text-button { border:0; padding:3px; min-height:30px; background:transparent; color:#d9e9df; text-decoration:underline; }
.eva-resize { position:absolute; top:0; bottom:0; left:-5px; width:10px; cursor:ew-resize; touch-action:none; z-index:2; }
.eva-resize:hover,.eva-resize:focus-visible { background:#d3e6d66b; }
.eva-launcher { position:fixed; right:0; top:164px; z-index:95; width:36px; min-height:112px; padding:10px 7px; border-right:0; border-radius:6px 0 0 6px; background:#15251b; color:#eff7f1; writing-mode:vertical-rl; letter-spacing:3px; font-size:14px; font-weight:600; }
.eva-backdrop { position:fixed; inset:0; border:0; padding:0; background:#000b; z-index:109; cursor:pointer; }
body.eve-assistant-modal #siteQuickActions { visibility:hidden!important; pointer-events:none!important; }
@media(max-width:1399px) {
  body.eve-assistant-ready #workspace { margin-right:0; }
  .eva-panel { z-index:10080; width:min(var(--eva-width,420px),92vw); box-shadow:-12px 0 32px #000b; }
  .eva-backdrop { z-index:10070; }
  body.eve-assistant-modal { overflow:hidden; }
}
@media(max-width:600px) {
  .eva-panel { width:100%; max-width:100%; border-left:0; }
  .eva-head { padding-top:max(10px,env(safe-area-inset-top)); }
  .eva-settings { max-height:45dvh; }
  .eva-launcher { top:150px; width:32px; min-height:100px; font-size:13px; }
  .eva-compose,.eva-head,.eva-settings-body,.eva-settings-footer,.eva-threadbar,.eva-messages { padding-left:12px; padding-right:12px; }
  .eva-message.is-user { margin-left:12px; }
  .eva-compose .eva-help { font-size:11px; }
  .eva-panel .eva-button { min-height:38px; }
}
@media(max-height:560px) {
  .eva-compose .eva-help { display:none; }
  .eva-field textarea { min-height:52px; max-height:16dvh; }
  .eva-threadbar { padding-top:4px; padding-bottom:4px; }
  .eva-threadbar label { display:none; }
  .eva-context,.eva-mode { padding-top:2px; padding-bottom:2px; }
  .eva-messages { min-height:60px; }
  .eva-settings { max-height:32dvh; }
}
@media(prefers-reduced-motion:reduce) { .eva-panel { scroll-behavior:auto; } }
@media print { .eva-panel,.eva-launcher,.eva-backdrop { display:none!important; } body.eve-assistant-ready #workspace { margin-right:0; } }
