.topic-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.topic-map h3{margin:16px 0}.topic-map .card{display:flex;flex-direction:column}.topic-map .actions{margin-top:auto;padding-top:12px}.model-nodes{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;margin:24px 0}.model-node{flex:1 1 160px;min-width:0;padding:20px;background:#f3f6fa;border:1px solid #d7e0eb;border-radius:10px}.model-node p{white-space:pre-line;overflow-wrap:anywhere;margin-bottom:0}.model-arrow{align-self:center;font-size:24px;color:#365b85}.model-explanation{white-space:pre-line}.model-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.model-controls label{display:grid;gap:8px}.model-controls input,.model-controls select,#demo-scenario,#demo-chapter,#model-choice{font:inherit;width:100%;padding:12px;border:1px solid #b8c5d5;border-radius:6px}.model-output{margin-top:24px;padding:22px;background:#edf4fc;white-space:pre-line}.topic-page .lab-nav a{white-space:nowrap}@media(max-width:700px){.topic-map,.model-controls{grid-template-columns:1fr}.model-arrow{display:none}.model-node{flex-basis:100%}}
#demo-chapter{max-width:620px}.book-body section p{white-space:pre-line}
