.answer-tables { display: grid; gap: 15px; margin-top: 13px; }
.answer-table h3, .answer-gap h3 { margin: 0 0 5px; font-size: 15px; }
.answer-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.answer-table th, .answer-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.answer-table th:last-child, .answer-table td:last-child { text-align: right; }
.answer-table thead th { font-size: 12px; color: var(--muted); }
.answer-table tfoot td { font-weight: 680; }
.answer-table p, .answer-gap p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.answer-gap { border-left: 2px solid var(--warn); padding: 3px 0 3px 10px; }
.answer-footer .deep-action { border-radius: 15px; padding-inline: 10px; color: var(--brand); background: var(--brand-bg); border-color: transparent; }
.deep-dialog { width: min(950px, calc(100vw - 26px)); max-height: min(820px, 89dvh); }
.deep-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.deep-header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 14px 16px 10px; }
.deep-header h2 { font-size: 18px; letter-spacing: -.35px; }
.deep-header p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.deep-tabs { display: flex; flex: none; align-items: flex-end; gap: 9px; overflow-x: auto; padding: 0 15px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.deep-tabs .tab { padding-inline: 6px; }
.deep-content { min-height: 250px; overflow: auto; padding: 14px 16px 18px; scrollbar-width: thin; }
.deep-content h3 { font-size: 15px; margin: 0 0 5px; }
.deep-content p { overflow-wrap: anywhere; }
.deep-overview { display: grid; gap: 10px; }
.deep-overview .reply-intro { margin: 1px 0; }
.deep-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.deep-metric { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.deep-metric strong, .deep-metric span { display: block; }
.deep-metric strong { font-size: 17px; }
.deep-metric span { font-size: 11px; color: var(--muted); }
.deep-claim-list, .deep-result-list, .deep-branch-list { padding: 0; margin: 0; list-style: none; }
.deep-claim, .deep-result { border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; margin: 0 0 6px; background: var(--paper); }
.deep-claim p, .deep-result p { font-size: 13px; color: var(--muted); }
.deep-claim h3 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.deep-tags, .deep-filter { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.deep-filter button[aria-pressed="true"], .deep-tags button:hover { color: var(--brand); background: var(--brand-bg); border-color: var(--brand); }
.deep-filter .outlined, .deep-tags .outlined { min-height: 29px; }
.deep-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.deep-result strong { font-size: 13px; }
.deep-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deep-tree { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0,1.4fr); gap: 12px; }
.deep-tree-filters { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.deep-select { width: 100%; min-height: 35px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 12px var(--font); }
.deep-count { margin: 8px 0 4px; color: var(--muted); font-size: 12px; }
.deep-tree-list { max-height: 43dvh; overflow: auto; scrollbar-width: thin; padding-right: 3px; }
.deep-tree-list h3 { margin: 7px 0 3px; font-size: 12px; color: var(--muted); }
.deep-branch-btn { min-height: 32px; width: 100%; display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 4px; align-items: center; border: 1px solid transparent; border-radius: 6px; padding: 3px 5px; background: transparent; text-align: left; font-size: 12px; }
.deep-branch-btn:hover, .deep-branch-btn[aria-pressed="true"] { border-color: var(--line); color: var(--brand); background: var(--brand-bg); }
.deep-branch-btn code { font-size: 11px; color: var(--brand); }
.deep-branch-btn .dot { color: var(--brand); }
.deep-branch-detail { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.deep-branch-section { padding: 7px 0; border-top: 1px solid var(--line); }
.deep-branch-section h4 { margin: 0 0 3px; font-size: 13px; }
.deep-branch-section p, .deep-branch-section li { font-size: 12px; color: var(--muted); }
.deep-branch-section ul { margin: 4px 0 0; padding-left: 16px; }
.deep-branch-row { margin: 4px 0 6px; }
.deep-branch-row strong { font-size: 12px; }
.deep-branch-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.deep-branch-detail .tags { margin-bottom: 4px; }
.deep-branch-detail .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .deep-dialog { width: calc(100vw - 16px); max-height: 92dvh; }
  .deep-header { padding: 9px 10px 5px; }
  .deep-header h2 { font-size: 16px; }
  .deep-tabs { padding-inline: 8px; gap: 5px; }
  .deep-content { padding: 10px; }
  .deep-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deep-tree { grid-template-columns: 1fr; gap: 8px; }
  .deep-tree-list { max-height: 24dvh; }
}
.stream-mark { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--brand); }
.stream-glyph { display: inline-grid; place-items: center; position: relative; width: 21px; height: 21px; }
.stream-mark.is-running .stream-glyph::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: stream-orbit .9s linear infinite; pointer-events: none; }
.stream-source { padding: 1px 4px; border-radius: 4px; background: var(--brand-bg); color: var(--brand); font: 650 9px/1.35 var(--mono); white-space: nowrap; }
@keyframes stream-orbit { to { transform: rotate(360deg); } }
.activity-events li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px; align-items: start; }
.activity-events li::before { display: none; }
.activity-events .stream-glyph, .tool-row .stream-glyph { width: 16px; height: 16px; vertical-align: middle; }
.tool-row .stream-mark { margin: 0 4px; }
.early-insight .early-label { font-weight: 660; }
.early-insight + .early-insight { margin-top: 8px; }
.answer-layers { margin: 12px 0; }
.answer-layers > summary { cursor: pointer; font-size: 13px; color: var(--brand); font-weight: 640; }
.layer-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 8px 0 3px; }
.layer-entry { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.layer-step { width: 24px; height: 24px; border-radius: 6px; color: var(--brand); background: var(--brand-bg); display: grid; place-items: center; font: 650 11px var(--mono); }
.layer-entry h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin: 0; }
.layer-entry p { margin: 3px 0; font-size: 13px; }
.layer-entry small { display: block; color: var(--muted); font-size: 11px; }
.deep-branch-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .stream-mark.is-running .stream-glyph::after { animation: none; }
}
