/* A real work question, its answer, and the manager's original entries. */
.knowledge-example { padding: 96px 0; }
.example-header { max-width: 48rem; margin-bottom: 36px; }
.knowledge-demo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.demo-choices { grid-column: 1 / -1; }
.demo-choices > p { margin: 0 0 12px; font-size: .875rem; color: var(--body); }
.demo-choice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-choice-list button { min-height: 76px; padding: 16px 20px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--silver); text-align: left; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.demo-choice-list button:hover { border-color: var(--silver); color: var(--ink); }
.demo-choice-list button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--night); }
.demo-chat { overflow: hidden; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); }
.demo-chat-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 11, .4); }
.demo-brand { display: flex; align-items: center; gap: 9px; }
.demo-brand .mark { width: 23px; height: 23px; }
.demo-brand b { font-size: 1.0625rem; font-weight: 500; }
.demo-brand > span { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--edge); color: var(--body); font-size: .8125rem; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.demo-controls button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 0; border: 0; background: transparent; color: var(--silver); font-size: .8125rem; cursor: pointer; }
.demo-controls button:hover { color: var(--ink); }
.demo-controls button:disabled { display: none; }
.demo-controls .icon { width: 14px; height: 14px; }
.demo-chat-body { display: flex; flex-direction: column; min-height: 380px; padding: 26px; }
.knowledge-demo[data-state="typing"] .demo-chat-body, .knowledge-demo[data-state="ready"] .demo-chat-body, .knowledge-demo[data-state="thinking"] .demo-chat-body { min-height: 300px; }
.demo-scenario { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.demo-scenario + .demo-scenario { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.demo-scenario[hidden] + .demo-scenario { margin-top: 0; padding-top: 0; border-top: 0; }
.demo-welcome { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 8px; }
.knowledge-demo[data-state="idle"] .demo-welcome { display: flex; }
.demo-welcome .mark { width: 40px; height: 40px; margin-bottom: 22px; color: var(--silver); }
.demo-welcome p { margin: 0 0 16px; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.4; }
.demo-welcome > span { color: var(--body); font-size: .875rem; }
.demo-question { align-self: flex-end; max-width: 94%; margin-bottom: 28px; }
.demo-person { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 8px; margin-bottom: 9px; font-size: .8125rem; color: var(--silver); }
.demo-person span { color: var(--muted); }
.demo-question-bubble { margin: 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; background: #1c2024; font-size: 1rem; line-height: 1.5; }
.demo-answer { font-size: 1rem; line-height: 1.55; }
.demo-answer-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .9375rem; }
.demo-answer-by .mark, .demo-thinking .mark { width: 21px; height: 21px; }
.demo-answer-by > span { color: var(--muted); font-size: .8125rem; }
.demo-answer > p:not(.demo-answer-by) { margin: 0 0 12px; }
.demo-answer-steps { display: grid; gap: 13px; margin: 0 0 18px; padding-left: 23px; }
.demo-answer-steps li { padding-left: 4px; }
.demo-answer-steps li::marker { color: var(--muted); font-size: .875rem; }
.demo-answer-steps strong { display: block; font-weight: 500; }
.demo-answer-steps li > span { color: var(--body); font-size: .9375rem; }
.demo-suggested-reply { margin: 0 0 20px; padding: 12px 16px; border-left: 2px solid var(--silver); background: rgba(244, 244, 242, .04); color: var(--silver); }
.demo-citation { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px 4px 5px; border: 1px solid var(--edge); border-radius: 7px; color: var(--silver); font-size: .8125rem; text-decoration: none; }
.demo-citation > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: var(--ink); color: var(--night); font-size: .75rem; font-weight: 600; }
.demo-citation:hover, .demo-citation.is-on { border-color: var(--ink); color: var(--ink); background: rgba(244, 244, 242, .045); }
.demo-compose { margin-top: auto; padding-top: 30px; scroll-margin: 100px 0 20px; }
.demo-compose-label { display: block; margin: 0 0 9px; color: var(--body); font-size: .8125rem; }
.demo-input { min-height: 90px; padding: 17px; border: 1px solid var(--edge); border-radius: 12px; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.demo-send-button { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 12px 0 0 auto; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 24px; background: var(--ink); color: var(--night); font-size: .875rem; cursor: pointer; }
.demo-send-button:disabled { opacity: .4; cursor: default; }
.demo-send-button .icon { width: 17px; height: 17px; }
.demo-caret { display: inline-block; height: 1.1em; border-left: 1px solid var(--silver); margin-left: 1px; vertical-align: -.15em; }
.demo-thinking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--body); font-size: .875rem; }
.thinking-dots { display: inline-flex; gap: 4px; }
.thinking-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--silver); animation: thinking-dot 1s ease-in-out infinite; }
.thinking-dots i:nth-child(2) { animation-delay: .15s; }
.thinking-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes thinking-dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.knowledge-demo[data-motion-visible="false"] .thinking-dots i { animation-play-state: paused; }
.demo-knowledge { min-width: 0; padding-top: 8px; }
.demo-knowledge h3 { margin: 0 0 18px; font-size: 1.0625rem; font-weight: 500; }
.demo-manager { display: flex; align-items: center; gap: 12px; }
.demo-manager > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--edge); border-radius: 50%; background: var(--night); color: var(--silver); font-size: .8125rem; }
.demo-manager p { margin: 0; line-height: 1.5; }
.demo-manager b { display: block; font-size: .9375rem; font-weight: 500; }
.demo-manager small { display: block; color: var(--body); font-size: .8125rem; }
.demo-guide { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; background: #e8e9e5; border-radius: 8px; color: #181a1c; text-decoration: none; }
.demo-guide:hover { background: #fff; text-decoration: none; }
.demo-guide > .icon { width: 24px; height: 28px; }
.demo-guide > span:last-child { margin-left: auto; }
.demo-guide b { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.demo-guide small { display: block; font-size: .8125rem; margin-top: 4px; }
.demo-source-hint { margin: 18px 0; color: var(--body); font-size: .875rem; }
.demo-source { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: 90px; }
.demo-source[open] { border-color: var(--silver); }
.demo-source summary { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 16px; list-style: none; cursor: pointer; }
.demo-source summary::-webkit-details-marker { display: none; }
.demo-source-number { display: grid; place-items: center; flex: none; width: 28px; height: 32px; border: 1px solid var(--edge); border-radius: 4px; color: var(--silver); font-size: .8125rem; }
.demo-source summary b { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.demo-source time { display: block; margin-top: 4px; color: var(--muted); font-size: .8125rem; }
.demo-source-toggle { margin-left: auto; flex: none; width: 10px; height: 10px; background: linear-gradient(var(--silver), var(--silver)) center/10px 1px no-repeat, linear-gradient(var(--silver), var(--silver)) center/1px 10px no-repeat; }
.demo-source[open] .demo-source-toggle { background: linear-gradient(var(--silver), var(--silver)) center/10px 1px no-repeat; }
.demo-source-body { padding: 0 18px 18px; }
.demo-source-status { margin: 0 0 12px; color: var(--silver); font-size: .75rem; }
.demo-passage { margin: 0; padding: 12px 14px; border-left: 2px solid var(--silver); background: rgba(244, 244, 242, .05); color: var(--ink); font-size: .9375rem; line-height: 1.6; scroll-margin-top: 110px; }
.demo-passage mark { color: inherit; background: transparent; }
.demo-passage.is-lit mark, .demo-passage:focus mark { background: rgba(244, 244, 242, .07); }
.demo-source-why { margin: 14px 0 0; color: var(--body); font-size: .8125rem; }
.demo-document-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--silver); font-size: .8125rem; text-underline-offset: 3px; }
.demo-document-link .icon { width: 13px; height: 13px; }
.demo-answer:focus-visible, .demo-passage:focus-visible, .demo-thinking:focus-visible { outline: 2px solid var(--silver); outline-offset: 6px; }
.demo-choice-list button:focus-visible, .demo-send-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.demo-outcome { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--silver); font-size: .9375rem; }
.demo-disclaimer { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }
@media (max-width: 1000px) {
  .knowledge-demo { grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); gap: 22px; }
  .demo-chat-header { padding: 12px 18px; }
  .demo-brand > span { display: none; }
  .demo-chat-body { padding: 22px; }
}
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) {
  .knowledge-example { padding: 72px 0; }
  .knowledge-demo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .example-header { margin-bottom: 28px; }
  .example-header .h2 { text-wrap: balance; }
  .demo-choice-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .demo-choice-list button { min-height: 58px; padding: 13px 16px; font-size: 1rem; }
  .demo-chat-header { display: block; }
  .demo-brand { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 0 9px; }
  .demo-brand .mark { grid-row: 1 / 3; }
  .demo-brand b { grid-column: 2; }
  .demo-brand > span { display: block; grid-column: 2; margin: 0; padding: 0; border: 0; }
  .demo-company { display: none; }
  .demo-controls { gap: 8px; }
  .demo-controls button { flex: 1; justify-content: center; margin-top: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; }
  .demo-chat-body { padding: 20px 18px; min-height: 340px; }
  .demo-question { max-width: 100%; }
  .demo-source-hint { max-width: none; margin-bottom: 18px; }
  .demo-knowledge { padding: 0; }
  .demo-controls button, .demo-citation { min-height: 44px; }
  .demo-input { padding-left: 12px; }
  .demo-compose { scroll-margin: 20px 0 24px; }
  .demo-send-button { width: 100%; justify-content: center; font-size: 1rem; }
  .demo-answer-steps li > span, .demo-passage { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .thinking-dots i { animation: none; }
}
