/* dialogs */
#overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center}
#overlay[hidden]{display:none}
.dlg{width:350px;max-width:calc(100% - 24px);filter:drop-shadow(3px 3px 0 rgba(0,0,0,.35))}
.dlg.wide{width:450px}
.dlg .tb-title{font-style:normal}
.dlg-body{padding:10px 10px 4px;font-size:11px;line-height:1.35;user-select:text;-webkit-user-select:text}
.dlg-body p{margin:0 0 8px}
.dlg-body ul.tips{margin:0 0 8px;padding-left:16px}
.dlg-foot{display:flex;justify-content:center;gap:6px;padding:6px 10px 8px}
.dlg-foot .btn{width:72px;height:22px}
.list{list-style:none;margin:0 0 4px;padding:2px;background:#fff;max-height:150px;overflow:auto;box-shadow:inset 1px 1px var(--sh),inset -1px -1px var(--hi),inset 2px 2px #000}
.list:focus-visible{outline:1px dotted #000;outline-offset:1px}
.list li{display:flex;gap:10px;padding:2px 5px;cursor:default}
.list li[aria-selected="true"]{background:var(--navy);color:#fff}
.list li.cur .grow{font-weight:bold}
.list li.empty{color:var(--sh)}
.list .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl{display:flex;gap:8px}
.pl .list{flex:1;min-width:0;height:184px;max-height:none;margin:0}
.pl-btns{flex:none;width:86px;display:flex;flex-direction:column;gap:4px}
.pl-btns .btn{height:21px}
.pl-info{margin:6px 0 0 !important;color:#303030}
.pl-out{display:block;width:100%;height:70px;margin-top:6px;font:10px/1.3 "Courier New",monospace;resize:none}
.wavecv{display:block;width:100%;height:76px;background:#000;box-shadow:0 0 0 1px var(--sh);cursor:crosshair}
.ops{display:flex;gap:4px;margin:8px 0 4px}
.ops .btn{flex:1;height:22px}
.chgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin-bottom:4px}
.chb{height:24px;justify-content:flex-start;padding:0 5px;gap:5px;overflow:hidden}
.chb em{font-style:normal;color:#303030;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chb .led2{flex:none;width:7px;height:7px;background:var(--led-dim);border:1px solid #000}
.chb[aria-pressed="true"] .led2{background:var(--led)}

@media (prefers-reduced-motion:reduce){.floppy.read .fled{animation:none;background:var(--led)}}
