/* Shared by the demo stages on the inner pages: a dark "editor" surface and a terminal. */
.dm { margin: 34px 0 0; }
.dm-surface { position: relative; padding: clamp(18px, 3vw, 40px); border-radius: var(--radius); background: radial-gradient(120% 90% at 20% 0%, #1e1f26 0%, #0e0e11 60%); color: #e9e8e4; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.dm-cap { margin: 12px 4px 0; font: 500 12px/1.5 var(--mono); color: var(--muted); max-width: none; }
.dm-btn { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font: 500 13px/1 var(--sans); cursor: pointer; }
.dm-btn:hover { background: #fff; color: #111; }
.dm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #8d8f98; font: 12px/1 var(--mono); }
.dm-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3b42; }
.dm-bar span { margin-left: 8px; }
.term { font: 13px/1.7 var(--mono); border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); overflow: hidden; min-width: 0; }
.term-body { padding: 14px 18px 18px; min-height: 280px; white-space: pre-wrap; word-break: break-word; }
.term .pr { color: #7fd6a1; } .term .cm { color: #7d808a; } .term .ok { color: #7fd6a1; } .term .wn { color: #e8c07a; } .term .k { color: #8ab4ff; } .term .hl { color: #fff; }
.term .caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #e9e8e4; animation: dm-blink 1s steps(2) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term .caret { animation: none; } }
