/* The DG822 is a separate instrument view, not a generic generator dialog. */
.dg822-dialog{position:fixed;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1060px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:0;padding:0;overflow:hidden;z-index:20;background:#e3e5e1;border-color:#7e9295;border-radius:12px;box-shadow:0 24px 100px #000b}.dg822-dialog:not([open]){display:none}.dg822-window-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding:10px 16px;background:#142a30;color:var(--text);cursor:move;touch-action:none}.dg822-window-bar h2{font-size:1rem;margin:0}.dg822-window-bar h2 span{font-weight:400;color:var(--muted)}.dg822-window-bar button{width:auto;padding:6px 12px;background:#203e44;color:var(--text)}.dg822-body{overflow:auto;max-height:calc(100dvh - 100px);padding:18px 10px 10px;background:linear-gradient(#e8ebe7,#c9ceca)}.dg822-front{position:relative;min-width:900px;aspect-ratio:1983/793}.dg822-front>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.dg822-screen{position:absolute;left:12.55%;top:20.3%;width:41%;height:58.5%;padding:10px 12px 8px;border:2px solid #123957;border-radius:3px;background:#070d1a;color:#c3dcff;display:flex;flex-direction:column;gap:8px;box-shadow:inset 0 0 22px #000;font-size:14px}.dg822-lcd-header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:2px solid #16477b;padding-bottom:5px;font-size:14px}.dg822-lcd-header strong{color:#fff29b;font:700 17px Georgia,serif}.dg822-lcd-content{display:grid;grid-template-columns:minmax(0,1fr) 28%;gap:10px;flex:1;min-height:0}.dg822-readings{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));margin:0;gap:0;min-width:0;min-height:0}.dg822-readings>div{border:0;border-bottom:1px solid #163458;padding:0;display:grid;align-items:center;min-height:0;grid-template-columns:minmax(0,1fr) auto;gap:8px;font-size:14px}.dg822-readings dt{color:#86baff}.dg822-readings dd{color:#e5edff;font-variant-numeric:tabular-nums;white-space:nowrap}.dg822-preview{display:flex;align-items:center;border-left:2px solid #1755a6;padding-left:10px}.dg822-preview svg{width:100%;height:auto}.instrument-target{cursor:pointer}.instrument-target:hover image,.instrument-target:focus-visible image{filter:drop-shadow(0 0 5px #48d6c8)}.instrument-target:focus-visible{outline:none}.instrument-target:focus-visible .instrument-focus{stroke:var(--yellow);stroke-width:2;stroke-dasharray:5 4}

.dg822-readings .dg822-reading-button{display:inline;width:auto;padding:0;border:0;border-radius:2px;background:transparent;color:inherit;font:inherit;font-weight:600;text-align:right;white-space:nowrap;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.dg822-readings .dg822-reading-button:hover{color:#fff29b}.dg822-readings .dg822-reading-button:focus-visible{outline:2px solid #fff29b;outline-offset:3px}

.dg822-hardware-menu{position:absolute;left:66%;top:20%;width:7%;height:10%;padding:0;border:2px solid transparent;border-radius:10px;background:transparent;color:transparent;font-size:0}.dg822-hardware-menu:hover{background:#60a0ff22;border-color:#246ed3}.dg822-hardware-menu:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.dg822-screen [hidden]{display:none!important}.dg822-wave-menu{display:grid;grid-template-columns:24% minmax(0,1fr);gap:8px;flex:1;min-height:0}.dg822-mode-list{display:flex;flex-direction:column;justify-content:space-between;gap:2px;border-right:2px solid #174785;padding-right:5px;font-size:14px;color:#6488bd}.dg822-mode-list span{padding:3px 0;line-height:1.2}.dg822-mode-list .selected{color:#c3dcff;border-left:3px solid #4388ff;padding-left:4px}.dg822-wave-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:1fr 1fr;gap:5px 2px}.dg822-wave-grid .dg822-wave-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px 0;width:100%;min-width:0;border:1px solid transparent;border-radius:3px;background:transparent;color:#b6d1ff;font-size:14px;line-height:1.2}.dg822-wave-tile svg{display:block;width:80%;height:24px;fill:none;stroke:#4388ff;stroke-width:2.2}.dg822-wave-tile[aria-pressed="true"]{border-color:#4388ff;box-shadow:inset 0 0 8px #246ed344}.dg822-wave-tile:not(:disabled):hover{background:#1b3f69;border-color:#4388ff}.dg822-wave-tile:disabled{opacity:.4;cursor:default}.dg822-wave-tile:focus-visible{outline:2px solid #fff29b;outline-offset:0}

.dg822-output-key{position:absolute;top:57.5%;width:6%;height:7.5%;padding:0;border:1px solid #677581;border-radius:6px;background:linear-gradient(#b7c1c9,#8897a5);color:#253540;font-size:14px;line-height:1;font-weight:500;box-shadow:inset 0 1px 2px #fff7}.dg822-output-one{left:65.5%}.dg822-output-two{left:74.7%}.dg822-output-key:hover{border-color:#263a4a;filter:brightness(1.1)}.dg822-output-key[aria-pressed="true"]{background:linear-gradient(#fff2a5,#e9bc36);color:#473600;border-color:#b48c17;box-shadow:0 0 10px #ffdc5888,inset 0 1px 3px #fff8}.dg822-output-key:focus-visible{outline:3px solid #246ed3;outline-offset:2px}

.dg822-front>.dg822-probe-connector{position:absolute;left:68.2%;top:77%;width:13%;height:auto;transform:translate(-30%,-26%);object-fit:contain;pointer-events:none;user-select:none;z-index:1}

/* Touchscreen entry replaces the complete LCD, within the instrument faceplate. */
.dg822-screen{container-type:inline-size}
.dg822-editor{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:#080e1d;padding:8% 9%}
.dg822-keypad-form{position:relative;width:100%;height:100%;display:grid;grid-template-rows:20% minmax(0,1fr);gap:5px;padding:6px 7px 9px;border:2px solid #1661ff;border-radius:18px 26px 20px 22px;box-shadow:0 0 4px #1363ff,inset 0 0 3px #1363ff;background:#111b2c}
.dg822-keypad-header{display:grid;grid-template-columns:19% minmax(0,1fr) 23%;align-items:stretch;gap:4px;min-height:0}
.dg822-keypad-header label{display:flex;align-items:center;justify-content:center;color:#d2e8ff;font:600 4cqw/1 Arial,sans-serif;text-shadow:0 0 7px #1675ff}
.dg822-keypad-header input,.dg822-keypad-header select{width:100%;min-width:0;min-height:0;border:2px solid #1661ff;border-radius:2px;background-color:#152236;color:#f1f4ff;padding:0 5px;font:400 4.8cqw/1 Arial,sans-serif;box-shadow:inset 0 0 4px #1355bb}
.dg822-keypad-header input{font-variant-numeric:tabular-nums}
.dg822-keypad-header select{font-size:3.6cqw;background-position:right 4px center;background-size:9px;padding-right:14px}
.dg822-keypad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}
.dg822-keypad button{min-width:0;min-height:0;padding:0;border:2px solid #1661ff;border-radius:7px 10px 3px 9px;background:#152033;color:#eef2ff;font:400 6.4cqw/1 Arial,sans-serif;text-shadow:0 0 3px #8baaff;box-shadow:0 0 3px #1458dc,inset 0 0 4px #1458dc;touch-action:manipulation}
.dg822-keypad button:hover{background:#1d3460;border-color:#4b8bff}
.dg822-keypad button:active{background:#2454a2}
.dg822-editor :focus-visible{outline:1px solid #bbd9ff;outline-offset:1px}
.dg822-edit-error{position:absolute;left:0;right:0;bottom:100%;margin:0;color:#ffe39a;text-align:center;font:400 3cqw/1.1 Arial,sans-serif;background:#080e1d}
.dg822-edit-error:empty{display:none}

/* Overlapping channel touch zones mirror the DG822 footer; selection is not output ON/OFF. */
.dg822-lcd-channels{display:flex;flex:0 0 7cqw;min-height:0;isolation:isolate}
.dg822-channel-tab{position:relative;flex:0 0 27%;height:100%;min-width:0;padding:0;border:0;border-radius:0;background:#51535e;color:#777982;clip-path:polygon(0 0,84% 0,100% 100%,0 100%);text-align:left}
.dg822-channel-tab+ .dg822-channel-tab{flex-basis:31%;margin-left:-3%;clip-path:polygon(0 0,84% 0,100% 100%,16% 100%)}
.dg822-channel-tab::before{content:"";position:absolute;inset:1px 2px 2px;background:#010506;clip-path:polygon(7% 0,83% 0,98% 100%,24% 100%)}
.dg822-channel-tab[aria-pressed="true"]{background:#07979a;color:#e5e73c;z-index:1}
.dg822-channel-tab:hover{background:#777984}
.dg822-channel-tab[aria-pressed="true"]:hover{background:#10b2b5}
.dg822-channel-tab:focus-visible{background:#b9e7e9;outline:none}
.dg822-channel-number{position:absolute;left:5%;bottom:9%;color:#f0f4f4;font:400 3.4cqw/1 Arial,sans-serif}
.dg822-channel-tab+ .dg822-channel-tab .dg822-channel-number{left:20%;bottom:13%}
.dg822-channel-details{position:absolute;left:21%;right:20%;top:18%;bottom:18%;display:flex;justify-content:space-between;gap:4px;font:400 2.05cqw/1.2 Arial,sans-serif;white-space:nowrap}
.dg822-channel-tab+ .dg822-channel-tab .dg822-channel-details{left:34%;right:20%}

.dg822-channel-tab+ .dg822-channel-tab::before{clip-path:polygon(24% 0,83% 0,98% 100%,42% 100%)}

.dg822-channel-tab::after{content:"";position:absolute;left:28%;right:14%;bottom:18%;height:1px;background:currentColor}
.dg822-channel-tab+ .dg822-channel-tab::after{left:46%}

.dg822-keypad button:disabled{opacity:.35;cursor:default;background:#152033;border-color:#1661ff}
