.demo-main { padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.demo-intro h1 { font-size: clamp(2.65rem, 6vw, 5.1rem); margin-block: 1rem 1.2rem; }
.demo-intro > p:last-child { max-width: 46rem; font-size: 1.12rem; color: var(--mute); }
.workbench { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #364751; border-radius: .7rem; overflow: hidden; margin-top: 2rem; }
.assistant-pane, .source-pane { min-width: 0; background: #101923; }
.pane-header { display: flex; align-items: center; gap: .75rem; min-height: 3.8rem; padding: 1rem clamp(1.05rem, 2.4vw, 2.3rem); color: #e2edf1; background: #17232c; border-bottom: 1px solid #364751; }
.pane-header h2 { font-size: 1.1rem; line-height: 1.35; letter-spacing: -.025em; margin: 0; }
.pane-icon { font: 600 .85rem/1.05 var(--mono); color: #76cce2; }
.page-icon { display: inline-block; width: .75rem; height: .98rem; border: 1.5px solid #91bac5; border-radius: 2px; position: relative; }
.page-icon::after { content: ''; position: absolute; top: .25rem; inset-inline: .12rem; height: .25rem; border-block: 1px solid #91bac5; }
.assistant-content, .handbook { padding: clamp(1.2rem, 2.65vw, 2.6rem); }
.assistant-content label { font-size: 1rem; font-weight: 580; }
.question-entry { display: flex; gap: .55rem; margin-block: .65rem; }
.question-entry input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: #090f15; border: 1px solid #526574; border-radius: 4px; padding: .65rem .75rem; }
.question-entry button { font: 600 .95rem/1.2 Geist, Arial, sans-serif; cursor: pointer; }
.helper, .assistant-content noscript p { font-size: .92rem; color: var(--mute); }
.suggestions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.suggestions button { padding: .48rem .7rem; background: #15222c; color: #c9dbe2; border: 1px solid #3c5261; font: 490 .9rem/1.35 Geist, Arial, sans-serif; border-radius: .4rem; cursor: pointer; text-align: left; }
.suggestions button:hover, .suggestions button[aria-pressed="true"] { background: #173642; border-color: #55afc8; color: #c0eff9; }
.answer { border-left: 3px solid #3cbbe8; padding: .15rem 0 .2rem 1rem; margin-top: 2rem; }
.answer h3 { font: 600 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #82dbf5; margin: 0; }
#answer-body { font-size: clamp(1.12rem, 1.45vw, 1.4rem); line-height: 1.48; margin: .55rem 0; }
#source-link { display: inline-block; padding-block: .2rem; color: #a0e3f6; font-size: .92rem; text-decoration: underline; text-underline-offset: .17em; }
#source-link[hidden] { display: none; }
.source-pane { border-left: 1px solid #364751; background: #e7eef0; color: #192e39; }
.handbook { color-scheme: light; }
.paper-meta, .passage h4 { font-family: var(--mono); }
.paper-meta { color: #4c636f; font-size: .8rem; }
.handbook > h3 { font-weight: 620; font-size: clamp(1.7rem, 3vw, 2.35rem); margin: .35rem 0 1.2rem; }
.passage { border-top: 1px solid #bfced4; padding-block: .85rem; scroll-margin-block: 2rem; }
.passage:focus-visible { outline-color: #1a6880; }
.passage h4 { font-size: .85rem; margin: 0 0 .35rem; font-weight: 700; }
.passage p { color: #344956; line-height: 1.57; }
.passage mark { color: inherit; background: transparent; }
.passage.cited mark { background-color: #b6e5eb; color: #0c3544; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.demo-contact { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.demo-contact p { font-size: 1.13rem; }
@media (max-width: 56rem) {
  .workbench { grid-template-columns: 1fr; }
  .source-pane { border: 0; border-top: 1px solid #364751; }
}
@media (max-width: 40rem) {
  .demo-contact { flex-direction: column; align-items: start; }
  .question-entry input { padding-inline: .5rem; }
}
