.demo { flex: 1; min-width: 0; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem) var(--sk-gutter); box-sizing: border-box; }
.scene { width: min(100%, 64rem); min-width: 0; box-shadow: var(--sk-surface-shadow); overflow: hidden; }
.demo-bar { min-height: 2.8rem; padding-inline: 1rem; gap: .6rem; }
.demo-bar [data-sk-icon] { display: inline-flex; }
.demo-bar small { margin-inline-start: auto; color: var(--sk-muted); text-align: end; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(13rem, .8fr); }
.stage { min-width: 0; padding: clamp(1rem, 3vw, 2rem); display: grid; align-content: center; gap: 1.2rem; background: var(--sk-bg); }
.inspector { display: grid; align-content: center; gap: 1rem; padding: clamp(1rem, 3vw, 1.65rem); border-inline-start: 1px solid var(--sk-line); min-width: 0; }
.inputs, .field { display: grid; gap: .8rem; } .field { gap: .35rem; }
.field label { color: var(--sk-muted); font-size: .8rem; }
.field select { border: 1px solid var(--sk-line); border-radius: var(--sk-control-radius); color: var(--sk-ink); background: var(--sk-raised); padding: .55rem .6rem; min-width: 0; width: 100%; font: inherit; }
.controls button[data-primary] { border-color: var(--sk-accent); background: color-mix(in srgb, var(--sk-accent) 10%, var(--sk-raised)); width: 100%; }
.notice { border-top: 1px solid var(--sk-line); padding-top: .8rem; margin: 0; color: var(--sk-muted); font-size: .85rem; min-height: 3em; overflow-wrap: anywhere; }
.window-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.desktop-wrap { min-width: 0; } .desktop-heading { display: flex; justify-content: space-between; gap: .3rem; align-items: baseline; margin-bottom: .5rem; font-size: .85rem; }
.desktop-heading span, .desktop-caption { color: var(--sk-muted); font-size: .72rem; }
.desktop-caption { margin-top: .5rem; }
.desktop { position: relative; overflow: hidden; height: clamp(10rem, 21vw, 15rem); border: 1px solid #9caeba; border-radius: .55rem; color: #222a32; background: linear-gradient(145deg, #cfe3e8, #91b9c5 65%, #d9d2b8); }
.desktop[data-dark="true"] { color: #f1f3f4; border-color: #56616d; background: linear-gradient(145deg, #344355, #1c2839 60%, #536476); }
.desktop-bar { height: 1.5rem; display: flex; justify-content: space-between; align-items: center; padding: 0 .55rem; background: #ffffff35; font: 600 .6rem/1 system-ui; }
.desktop-dots { letter-spacing: .08em; opacity: .65; }
.mock-window { position: absolute; top: 22%; left: 16%; width: 68%; height: 55%; background: #f3f5f5; color: #30383e; border: 1px solid #ffffff8c; border-radius: .35rem; box-shadow: 0 5px 15px #0003; overflow: hidden; }
[data-dark="true"] .mock-window { background: #333a43; color: #eee; border-color: #ffffff25; }
.mock-title { font: 600 .62rem/1 system-ui; padding: .45rem; border-bottom: 1px solid #8884; }
.mock-content { display: flex; height: 75%; } .mock-sidebar { width: 30%; background: #8882; }
.mock-lines { flex: 1; margin: .7rem; background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 12px); opacity: .2; }
.mock-dock { position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .22rem; padding: .22rem; border-radius: .3rem; background: #ffffff55; }
.mock-dock i { display: block; width: .7rem; height: .7rem; border-radius: .2rem; background: #f6f7f9b8; }
.result-line { display: flex; align-items: center; gap: .55rem; color: var(--sk-muted); font: .75rem var(--sk-font-mono); }
.result-mark { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--sk-line); border-radius: 50%; color: var(--sk-accent); }
@media (max-width: 40rem) { .demo-grid { grid-template-columns: minmax(0, 1fr); } .inspector { border-inline-start: 0; border-block-start: 1px solid var(--sk-line); } .desktop { height: clamp(8rem, 38vw, 13rem); } }
