/* Shared visual language with Expert Mode; styles only the independent entry. */
.common-expert-result { width:100%; min-width:0; max-width:100%; margin:16px 0; font-size:14px; line-height:1.7; color:var(--text-primary,#1e293b); }
.common-expert-result * { box-sizing:border-box; }
.common-expert-result .expert-mode-indicator { display:flex; align-items:center; gap:8px; padding:11px 14px; border:1px solid var(--border-light,#dddce8); border-radius:8px; background:var(--primary-light,#f1f1fb); margin-bottom:10px; font-size:14px; font-weight:600; }
.common-expert-progress-panel { margin:10px 0; }
.common-expert-result .expert-stream-container { overflow:auto; background:#f8fafc; border:1px solid #e5e7eb; border-radius:10px; padding:18px 20px; font-size:14px; color:#334155; }
.common-expert-result .expert-stream-container ul { list-style:none; margin:0; padding:0; }
.common-expert-result .expert-progress-line,
.common-expert-result .expert-progress-line.step,
.common-expert-result .expert-progress-line.complete,
.common-expert-result .expert-progress-line.warning,
.common-expert-result .expert-progress-line.error { color:#111827 !important; }
.common-expert-result .expert-progress-line { position:relative; padding:3px 0 3px 18px; margin:0; }
.common-expert-result .expert-progress-line::before,
.common-expert-result .expert-progress-line.step::before,
.common-expert-result .expert-progress-line.complete::before,
.common-expert-result .expert-progress-line.warning::before,
.common-expert-result .expert-progress-line.error::before { background:#111827 !important; }
#chat-container .common-expert-result .expert-progress-line::before,
#chat-container .common-expert-result .expert-progress-line.step::before,
#chat-container .common-expert-result .expert-progress-line.complete::before,
#chat-container .common-expert-result .expert-progress-line.warning::before,
#chat-container .common-expert-result .expert-progress-line.error::before { background:#111827 !important; }
.common-expert-result .expert-progress-line::before { position:absolute; left:2px; top:13px; width:6px; height:6px; border-radius:50%; content:''; }
.common-expert-report { min-width:0; overflow-wrap:anywhere; }
.common-expert-analysis { margin:14px 0; padding:18px 20px; border:1px solid var(--border-light,#e2e8f0); border-radius:10px; background:var(--white,#fff); }
.common-expert-analysis h3 { margin:0 0 12px; font-size:16px; font-weight:650; }
.common-expert-analysis h4 { margin:14px 0 8px; font-size:14px; font-weight:650; }
.common-expert-analysis p { margin:8px 0; }
.common-expert-analysis ul,.common-expert-analysis ol { padding-left:22px; margin:8px 0; }
.common-expert-result table { border-collapse:collapse; width:max-content; min-width:100%; table-layout:auto; font-size:13px; line-height:1.6; }
.common-expert-result th,.common-expert-result td { padding:10px 14px; border-bottom:1px solid #e2e8f0; text-align:left; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.common-expert-result th { position:sticky; top:0; background:#f1f5f9; font-weight:600; color:#334155; }
.common-expert-result tbody tr:nth-child(even) { background:#f8fafc; }
.common-expert-analysis { overflow-x:auto; }
.common-expert-scope { margin:8px 0; color:#64748b; font-size:12px; }
.common-expert-result button { cursor:pointer; margin:8px 8px 0 0; padding:8px 14px; border:1px solid #d8d4e5; border-radius:8px; background:var(--primary,#6d5ce8); color:#fff; }
.common-expert-result input { width:100%; margin-top:8px; padding:10px; border:1px solid #d8d4e5; border-radius:8px; }
@media(max-width:600px) { .common-expert-analysis { padding:14px; } .common-expert-result { font-size:14px; } }
.common-expert-delivery-status { margin:12px 0 8px; color:#6b7280; font-size:14px; }
.common-expert-file { padding:14px 16px; background:#f8f9fc; border:0; border-radius:10px; margin:8px 0 14px; }
.common-expert-result .common-expert-open { display:flex; align-items:center; width:100%; text-align:left; background:transparent; color:#1e1e2f; font-size:16px; font-weight:400; border:0; padding:6px 0; margin:0; border-radius:0; }
.common-expert-open::before { content:'▤'; margin-right:8px; }
.common-expert-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.common-expert-result .common-expert-actions button { background:#fff; color:#1e1e2f; margin:0; padding:5px 13px; border:1px solid #dddce8; border-radius:20px; font-size:13px; font-weight:400; }
.common-expert-file-feedback { font-size:13px; color:#b91c1c; margin:8px 0 0; }
.common-expert-file-feedback:empty { display:none; }
.common-expert-preview { border:0; border-radius:12px; padding:12px; width:95vw; max-width:1300px; height:92vh; }
.common-expert-preview::backdrop { background:#0f172a80; }
.common-expert-preview>iframe { width:100%; height:calc(100% - 45px); border:0; display:block; margin-top:10px; }
.common-expert-preview>button { cursor:pointer; padding:7px 14px; border:1px solid #cbd5e1; border-radius:8px; background:white; }
.common-expert-share-dialog { width:min(480px,92vw); border:1px solid #e2e8f0; border-radius:12px; padding:24px; color:#1e293b; }
.common-expert-share-dialog::backdrop { background:#0f172a80; }
.common-expert-share-dialog input { width:100%; padding:10px; border:1px solid #cbd5e1; border-radius:6px; }
.common-expert-share-dialog button { cursor:pointer; padding:7px 14px; margin:16px 8px 0 0; background:white; border:1px solid #cbd5e1; border-radius:8px; }

.common-expert-report .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.common-expert-report .metric{padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.common-expert-report .metric-value{font-size:24px;font-weight:700;color:#4338ca}.common-expert-report .metric-label,.common-expert-report .muted{color:#64748b;font-size:13px}.common-expert-report .table-wrap,.common-expert-report .chart-wrap{overflow:auto;max-width:100%}.common-expert-report .chart{min-width:560px;width:100%;height:auto}
.common-expert-report .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.common-expert-report .metric-value{line-height:1.4;overflow-wrap:anywhere}.common-expert-report .metric-value.long{font-size:18px}.common-expert-report .metric.wide{grid-column:1/-1}.common-expert-report .metric.wide .metric-value{font-size:15px;font-weight:500;line-height:1.8}.common-expert-report .summary{border-left:3px solid #6366f1;background:#f5f7ff;padding:12px 16px}@media(max-width:650px){.common-expert-report .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.common-expert-report .metric-value.long{font-size:16px}}
.common-expert-report td.anomaly-cell{color:#dc2626;font-weight:700;background:#fff1f2}.common-expert-report .anomaly-legend{font-size:12px;color:#b91c1c}
