/* KKiK Sample Browser: large overlay window. Every scroll container has an explicit overflow. */
.sb-open { margin-left: 6px; }
.sb-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, 0.72); display: flex; align-items: center; justify-content: center; }
.sb-overlay[hidden] { display: none; }
.sb-window { width: 90vw; height: 85vh; background: #101216; border: 1px solid #2a3340; border-radius: 8px; display: flex; flex-direction: column; color: #dfe6ee; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.sb-head { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid #2a3340; }
.sb-head h2 { margin: 0; font-size: 14px; letter-spacing: 0.12em; flex: 1; }
.sb-armed { color: #ffaa28; }
.sb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 10px; padding: 10px; }
.sb-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sb-col h3 { margin: 0; font-size: 11px; color: #7f8da0; letter-spacing: 0.1em; }
.sb-list { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid #222a35; }
.sb-clip { display: flex; flex-direction: column; padding: 6px 8px; border-bottom: 1px solid #1a2029; cursor: pointer; }
.sb-clip.sel { background: #1c2a3a; }
.sb-clip-meta { color: #6d7a8c; font-size: 10px; }
.sb-search { background: #0b0d10; color: inherit; border: 1px solid #2a3340; padding: 4px 6px; }
.sb-wavehost { background: #0b0d10; border: 1px solid #222a35; }
.sb-wave { width: 100%; height: 260px; display: block; cursor: crosshair; }
.sb-actions, .sb-bankbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sb-btn { background: #1a222d; color: inherit; border: 1px solid #34414f; padding: 5px 10px; cursor: pointer; font: inherit; }
.sb-btn:hover { background: #243040; }
.sb-arm.on { background: #ffaa28; color: #101216; }
.sb-banks { overflow-y: auto; }
.sb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sb-cell { position: relative; aspect-ratio: 1; background: #161c24; border: 1px solid #2a3340; display: flex; flex-direction: column; padding: 4px; cursor: pointer; overflow: hidden; }
.sb-cell.filled { background: #1c3a34; border-color: #35e0a1; }
.sb-cell-n { color: #6d7a8c; font-size: 10px; }
.sb-cell-name { font-size: 10px; word-break: break-all; }
.sb-cell-clear { position: absolute; top: 2px; right: 2px; background: none; border: 0; color: #c66; cursor: pointer; }
