/* Dark Agent workbench; shared public-retrieval markup remains compatible. */
html:has(> body.agent-dark), body.agent-dark { min-height: 0; color-scheme: dark; background: #0b0d10; }
body.agent-dark { --ink: #e9ecf0; --slate: #9da5b0; --cyan: #8bb7eb; --cyan-deep: #a0c4f0; --line: #292e36; --mist: #15181d; min-width: 0; overflow-x: clip; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
body.agent-dark .agent-demo { width: 100%; min-width: 0; min-height: 0; max-width: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid #343b46; border-radius: 16px; background: #101419; box-shadow: 0 18px 48px #00000038, inset 0 1px 0 #ffffff0c; }
.agent-windowbar { display: grid; grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr); align-items: center; gap: 14px; min-height: 52px; padding: 0 19px; border-bottom: 1px solid #343b46; background: linear-gradient(#292e35, #20252c); }
.agent-window-controls { display: flex; align-items: center; gap: 8px; }
.agent-window-controls i { width: 10px; height: 10px; border-radius: 50%; background: #ff6059; box-shadow: inset 0 0 0 1px #00000012; }
.agent-window-controls i:nth-child(2) { background: #ffbd2e; }
.agent-window-controls i:nth-child(3) { background: #28c840; }
.agent-window-title { min-width: 0; color: #c5cbd4; font-size: 12px; font-weight: 550; letter-spacing: .015em; text-align: center; white-space: nowrap; }
.agent-window-title span { color: #8d98a8; font-weight: 400; }
.agent-window-state { display: inline-flex; align-items: center; justify-self: end; gap: 6px; color: #9faab8; font-size: 10px; white-space: nowrap; }
.agent-window-state i { width: 5px; height: 5px; border-radius: 50%; background: #9ac0ee; }
.agent-window-content { min-width: 0; padding: clamp(20px, 3vw, 44px); }
.agent-command-panel { margin-top: 24px; padding: 19px 20px 0; border: 1px solid #303946; border-radius: 9px; background: #171d25; }
.agent-command-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: #b9c6d6; font-size: 12px; }
.agent-command-heading small { color: #8291a5; font-size: 10px; }
body.agent-dark .agent-demo-header { align-items: center; padding-bottom: 22px; border-color: var(--line); }
body.agent-dark .agent-demo-header > div { min-width: 0; }
body.agent-dark .agent-eyebrow { color: #939eae; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
body.agent-dark h1 { color: var(--ink); font-size: clamp(26px, 2.8vw, 39px); font-weight: 550; letter-spacing: -.05em; line-height: 1.35; }
body.agent-dark .agent-header-caption { color: #8d96a3; font-size: 12px; white-space: nowrap; }
body.agent-dark .agent-intro { max-width: none; margin: 21px 0 8px; color: #bcc3cd; font-size: 14px; line-height: 1.8; }
body.agent-dark .agent-local-note { margin: 0 0 25px; color: #828c99; font-size: 11px; line-height: 1.8; }
body.agent-dark .agent-query { min-width: 0; gap: 8px; padding: 7px; border: 1px solid #39414d; border-radius: 8px; background: #15191f; box-shadow: none; }
body.agent-dark .agent-query:focus-within { border-color: #8bb7eb; box-shadow: 0 0 0 2px #8bb7eb16; }
body.agent-dark .agent-query input { min-width: 0; padding: 12px; color: var(--ink); font-size: 14px; }
body.agent-dark .agent-query input::placeholder { color: #7f8a99; opacity: 1; }
body.agent-dark .agent-query button { flex: 0 0 auto; min-width: 94px; padding: 11px 17px; border: 1px solid #8db8ed; border-radius: 5px; color: #12253d; background: #9bc1ef; box-shadow: none; font-size: 13px; font-weight: 650; }
body.agent-dark .agent-query button:hover { transform: none; color: #0a1d34; background: #b5d2f4; }
.agent-ops-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.agent-ops-examples button { display: grid; grid-template-columns: 22px 1fr 14px; gap: 5px 10px; min-width: 0; padding: 17px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #12161b; text-align: left; cursor: pointer; transition: border-color 160ms, background 160ms; }
.agent-ops-examples button:hover, .agent-ops-examples button.is-active { border-color: #6084b0; background: #192433; }
.agent-ops-examples button > span { grid-row: 1 / 3; color: #7d8ca0; font: 10px/1.7 Consolas, monospace; }
.agent-ops-examples strong { min-width: 0; font-size: 13px; font-weight: 550; }
.agent-ops-examples small { grid-column: 2; color: #8b96a5; font: 11px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.agent-ops-examples i { grid-column: 3; grid-row: 1; color: #94a3b8; font-style: normal; }
.agent-more-examples { margin: 0 0 12px; }
.agent-more-examples summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: #9da7b5; font-size: 12px; cursor: pointer; list-style: none; }
.agent-more-examples summary::-webkit-details-marker { display: none; }
.agent-more-examples summary span { font-size: 18px; line-height: 1; }
.agent-more-examples[open] summary span { transform: rotate(45deg); }
body.agent-dark .agent-suggestions { gap: 8px; margin: 5px 0 12px; }
body.agent-dark .agent-suggestions button { max-width: 100%; padding: 7px 10px; border: 1px solid #303640; border-radius: 4px; color: #aab5c4; background: #15191f; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
body.agent-dark .agent-suggestions button:hover { border-color: #8bb7eb; color: #d0e3fc; }
body.agent-dark .agent-result { min-width: 0; min-height: 0; margin-top: 24px; padding: 26px 0 0; overflow: visible; border: 0; border-top: 1px solid #303640; border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; }
body.agent-dark .agent-result-placeholder { min-height: 150px; color: #8993a1; text-align: center; }
body.agent-dark .agent-result-placeholder strong { color: #c4cbd5; font-size: 15px; font-weight: 500; }
body.agent-dark .agent-result-placeholder p { font-size: 12px; }
body.agent-dark .agent-answer-meta p { color: #a0c4f0; font-size: 10px; font-weight: 600; }
body.agent-dark .agent-answer-meta span { color: #8d97a5; font-size: 10px; font-weight: 500; }
body.agent-dark .agent-answer { max-width: none; color: #d2d9e3; font-size: 14px; font-weight: 400; }
body.agent-dark .agent-trace { display: none; }
body.agent-dark .agent-sources { gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
body.agent-dark .agent-source { min-width: 0; min-height: 0; padding: 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #11151a; box-shadow: none; }
body.agent-dark .agent-source:last-child { border-right: 0; }
body.agent-dark .agent-source span { color: #7899c0; font-size: 9px; font-weight: 500; }
body.agent-dark .agent-source h2 { color: #d1d8e1; font-size: 13px; font-weight: 550; }
body.agent-dark .agent-source p { display: block; color: #99a4b2; font-size: 12px; line-height: 1.8; }
.ops-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ops-result-heading h2 { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 550; letter-spacing: -.035em; line-height: 1.45; }
.ops-result-kicker { margin: 0; color: #8bb7eb; font: 10px/1.5 Consolas, monospace; letter-spacing: .06em; }
.ops-result-context { margin: 0; padding-top: 4px; color: #8591a1; font: 11px/1.7 Consolas, monospace; text-align: right; overflow-wrap: anywhere; }
.ops-result-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.ops-result-main, .ops-result-aside { min-width: 0; }
.ops-summary { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.ops-summary strong { font-size: clamp(37px, 4vw, 52px); font-weight: 550; letter-spacing: -.055em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ops-summary span { color: #909cad; font-size: 12px; }
.ops-metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ops-metric-row dt { margin-bottom: 7px; color: #8895a6; font-size: 11px; }
.ops-metric-row dd { margin: 0; color: #d3dce8; font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ops-section-title { margin: 0 0 12px; color: #c1cbd8; font-size: 12px; font-weight: 550; }
.ops-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.ops-table { width: 100%; border-collapse: collapse; color: #bdc6d3; font-size: 12px; font-variant-numeric: tabular-nums; }
.ops-table th, .ops-table td { padding: 10px 13px; border-bottom: 1px solid #252b34; text-align: right; white-space: nowrap; }
.ops-table th { color: #8795a8; background: #14191f; font-size: 10px; font-weight: 500; }
.ops-table th:first-child, .ops-table td:first-child { text-align: left; }
.ops-table tbody tr:last-child td { border-bottom: 0; }
.ops-table tfoot td { border-top: 1px solid #354051; border-bottom: 0; color: #d5deeb; background: #14191f; }
.ops-table-caption { margin: 10px 0 0; color: #8490a0; font-size: 10px; line-height: 1.7; }
.ops-answer { margin: 0 0 20px; color: #c7d0dc; font-size: 14px; line-height: 1.85; }
.ops-checks { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ops-checks li { display: grid; grid-template-columns: minmax(100px, .55fr) minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.ops-checks .ops-param { color: #8b9aaf; font: 11px/1.7 Consolas, monospace; }
.ops-checks .ops-value { color: #c7d0dc; overflow-wrap: anywhere; }
.ops-checks .ops-check-state { color: #8f9ba9; font-size: 10px; }
.ops-checks .needs-input .ops-value, .ops-checks .needs-input .ops-check-state { color: #afcef5; }
.ops-fix { padding: 17px 19px; border-left: 2px solid #83afe4; background: #151e2a; }
.ops-fix h3 { margin: 0 0 8px; color: #b5d2f7; font-size: 12px; font-weight: 550; }
.ops-fix p { margin: 0; color: #b1bdcf; font-size: 12px; line-height: 1.85; }
.ops-fix code { color: #d1e3fb; font-size: 11px; overflow-wrap: anywhere; }
.ops-trace { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ops-trace li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ops-trace .ops-trace-no { padding-top: 1px; color: #748297; font: 10px/1.6 Consolas, monospace; }
.ops-trace h4 { margin: 0 0 4px; color: #bec9d7; font-size: 12px; font-weight: 500; }
.ops-trace p, .ops-trace code { display: block; margin: 0; color: #8494a9; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.ops-trace code { margin-top: 4px; color: #9cb8dc; font-family: Consolas, monospace; }
.ops-evidence { margin-top: 23px; }
.ops-evidence h3 { margin-bottom: 10px; }
.ops-evidence article + article { margin-top: 13px; }
.ops-evidence h4 { margin: 0 0 4px; color: #aebbcf; font-size: 11px; font-weight: 500; }
.ops-evidence p { margin: 0; color: #8492a6; font-size: 11px; line-height: 1.7; }
.ops-empty { padding: 14px 0 30px; }
.ops-empty h2 { margin: 0 0 12px; color: #d4dce7; font-size: 23px; font-weight: 500; }
.ops-empty p { margin: 0; color: #92a0b3; font-size: 13px; line-height: 1.8; }
body.agent-dark button:focus-visible, body.agent-dark summary:focus-visible { outline: 2px solid #8bb7eb; outline-offset: 4px; }
@media (max-width: 900px) {
  .ops-result-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ops-result-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .ops-evidence { margin-top: 0; }
}
@media (max-width: 620px) {
  body.agent-dark .agent-demo { padding: 0; border-radius: 11px; }
  .agent-windowbar { grid-template-columns: 48px minmax(0, 1fr) 53px; min-height: 46px; gap: 7px; padding: 0 12px; }
  .agent-window-controls { gap: 5px; }
  .agent-window-controls i { width: 8px; height: 8px; }
  .agent-window-title { font-size: 10px; }
  .agent-window-title span { display: none; }
  .agent-window-state { gap: 4px; font-size: 9px; }
  .agent-window-content { padding: 24px 15px; }
  .agent-command-panel { padding: 14px 10px 0; }
  .agent-command-heading { font-size: 11px; }
  .agent-command-heading small { display: none; }
  body.agent-dark .agent-demo-header { align-items: flex-start; gap: 10px; }
  body.agent-dark .agent-header-caption { display: none; }
  body.agent-dark .agent-intro { margin-top: 16px; font-size: 13px; }
  body.agent-dark .agent-local-note { font-size: 10px; }
  body.agent-dark .agent-query { flex-direction: row; }
  body.agent-dark .agent-query input { padding: 9px 5px; font-size: 12px; }
  body.agent-dark .agent-query button { width: auto; min-width: 66px; padding: 10px; font-size: 12px; }
  .agent-ops-examples { grid-template-columns: 1fr; gap: 7px; }
  .agent-ops-examples button { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 12px; gap: 8px; padding: 13px 12px; align-items: center; }
  .agent-ops-examples button > span { grid-row: auto; }
  .agent-ops-examples small { grid-column: 3; font-size: 10px; text-align: right; }
  .agent-ops-examples i { grid-column: 4; }
  .agent-ops-examples strong { font-size: 12px; }
  .ops-result-heading { flex-direction: column; gap: 9px; margin-bottom: 22px; }
  .ops-result-context { text-align: left; }
  .ops-metric-row dd { font-size: 19px; }
  .ops-table th, .ops-table td { padding: 10px 8px; font-size: 11px; }
  .ops-table th { font-size: 9px; }
  .ops-table .ops-secondary-col { display: none; }
  .ops-result-aside { grid-template-columns: 1fr; }
  .ops-checks li { grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; }
  body.agent-dark .agent-answer-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  body.agent-dark .agent-sources { grid-template-columns: 1fr; }
  body.agent-dark .agent-source { border-right: 0; border-bottom: 1px solid var(--line); }
  body.agent-dark .agent-source:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.agent-dark *, body.agent-dark *::before, body.agent-dark *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
