.diag-page{width:100%;max-width:none;margin:0 auto;padding:clamp(12px,1.3vw,40px);color:var(--text,#172033)}.diag-page h1{font-size:clamp(24px,2vw,40px)}.diag-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}.diag-head p,.diag-muted{color:var(--text-muted,#64748b)}.diag-binding{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;margin:0 0 26px;border:1px solid var(--border,#dbe4ec);border-radius:14px;background:var(--surface,#fff)}.diag-binding form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.diag-binding input{max-width:130px}.diag-category{margin-bottom:28px}.diag-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}.diag-card,.diag-surface,.diag-result{border:1px solid var(--border,#dbe4ec);border-radius:18px;background:var(--surface,#fff);padding:clamp(16px,1.2vw,28px)}.diag-card{color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:8px;min-width:0}.diag-card:hover{border-color:var(--accent,#2563eb)}.diag-card h3{margin:0;font-size:20px}.diag-card p{margin:0;line-height:1.6}.diag-icon{font-size:34px}.diag-badges{display:flex;gap:6px;flex-wrap:wrap}.diag-badges span,.diag-status{border-radius:8px;padding:4px 9px;font-size:12px;background:var(--surface-alt,#edf2f7)}.diag-support{font-size:12px;color:var(--text-muted,#64748b)}.diag-disabled{opacity:.5;cursor:not-allowed}.diag-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,28%);gap:22px;align-items:start}.diag-result{position:sticky;top:90px;max-height:calc(100dvh - 110px);overflow:auto;min-width:0}.diag-result dl{display:grid;grid-template-columns:1fr 1fr;font-size:12px;gap:4px;overflow-wrap:anywhere}.diag-result dd{margin:0}.diag-result dt{color:var(--text-muted,#64748b)}.diag-page input,.diag-page select,.diag-page textarea,.diag-remote input,.diag-remote select,.diag-remote textarea{background:var(--surface,#fff);color:var(--text,#172033);border:1px solid var(--border,#cbd5e1);border-radius:8px;padding:9px;max-width:100%}.diag-result textarea{display:block;width:100%;margin:8px 0}.diag-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}.diag-controls button,.diag-remote button,#diag-tool button{border:1px solid var(--border,#cbd5e1);border-radius:10px;padding:10px 14px;background:var(--surface,#fff);color:var(--text,#172033);cursor:pointer;min-height:40px}.diag-remote .btn-primary{background:#175fea;color:#fff;border-color:#175fea}.diag-controls button:disabled,#diag-tool button:disabled,.diag-remote button:disabled{opacity:.5;cursor:not-allowed}.diag-status.pass{color:#168447;background:#dcfce7}.diag-status.warn{color:#975c06;background:#fef3c7}.diag-status.fail{color:#ba2731;background:#fee2e2}.diag-status.info,.diag-status.pending{color:#475569;background:#e2e8f0}.diag-snapshot{max-width:100%;display:block;border-radius:12px;margin:12px 0}.diag-snapshot[hidden]{display:none}.diag-recent{display:block;margin:12px 0;line-height:1.5}.diag-recent span{display:block;font-size:12px;overflow-wrap:anywhere}.diag-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:500px;overflow:auto}.diag-check{display:inline-flex;align-items:center;gap:8px;padding:10px}.diag-check input{width:18px;height:18px}.diag-warning{background:#fff5dc;color:#684607;padding:14px;border-radius:12px;margin:12px 0}.diag-dialog{width:min(94vw,480px);border:1px solid #ccd5df;border-radius:18px;padding:24px;overflow-wrap:anywhere}.diag-dialog img{display:block;width:280px;max-width:100%;margin:auto}.diag-dialog a{display:block}.diag-dialog::backdrop{background:#0009}.diag-order-panel{margin-bottom:22px}.diag-order-result{padding:12px 0;border-top:1px solid var(--border,#dbe4ec)}.diag-order-result .diag-status{margin-left:8px}.diag-thumb{width:130px;max-height:90px;object-fit:contain}.diag-order-result details{margin-top:6px}.diag-settings{max-width:700px}.diag-settings label{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}#diag-tool{min-width:0}#diag-tool canvas{display:block;max-width:100%;border-radius:12px}#diag-tool video{max-width:100%;max-height:60dvh;border-radius:12px;background:#111}#diag-tool audio{width:100%;margin:8px 0}.diag-meters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0}.diag-meter{padding:12px;border:1px solid var(--border,#dbe4ec);border-radius:10px;overflow-wrap:anywhere}.diag-meter progress{width:100%}.diag-pad-buttons,.diag-keys{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.diag-pad-buttons span,.diag-keys span{display:inline-flex;align-items:center;justify-content:center;padding:9px;border:1px solid var(--border,#cbd5e1);border-radius:7px;min-width:36px;background:var(--surface-alt,#edf2f7)}.diag-pad-buttons span.on,.diag-keys span.down{background:#2563eb;color:#fff}.diag-keys span.seen{border-color:#16a34a;color:#168447}.diag-input-pad{padding:14px;border:2px dashed var(--border,#cbd5e1);border-radius:12px;outline-offset:4px}.diag-mouse{min-height:170px;padding:20px;background:var(--surface-alt,#edf2f7);border-radius:12px;touch-action:none;user-select:none}.diag-display-area{position:relative;background:#111;border:1px solid #777;min-height:280px;overflow:hidden}.diag-display-area canvas{width:100%;height:420px;max-width:none!important;border-radius:0!important}.diag-display-area:fullscreen canvas{height:100dvh;width:100vw}.diag-touch-canvas{width:100%;height:min(70dvh,760px);touch-action:none;user-select:none;background:#0f172a}.diag-serial-log{min-height:300px;max-height:60dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#0f172a;color:#d6e2f2;padding:14px;border-radius:10px;font:13px/1.6 monospace}.diag-serial-log .warn{color:#facc15}.diag-engine{width:100%;height:850px;border:1px solid var(--border,#cbd5e1);border-radius:12px}.diag-remote{margin:0;background:#f1f5f9;color:#172033;font:16px/1.5 system-ui,sans-serif}.diag-remote-main{width:min(100%,900px);margin:auto;padding:clamp(16px,3vw,36px);box-sizing:border-box}.diag-remote h1{font-size:22px}.diag-logo{height:45px;max-width:120px}.diag-remote-actions{display:flex;gap:10px;justify-content:space-between;position:sticky;bottom:0;padding:12px 0;background:#f1f5f9}.diag-remote-actions[hidden]{display:none}.diag-remote-actions button{flex:1}.diag-remote *,#diag-tool *{box-sizing:border-box}#diag-tool [hidden]{display:none!important}@media(min-width:2400px){.diag-cards{grid-template-columns:repeat(auto-fit,minmax(350px,1fr))}.diag-workspace{grid-template-columns:minmax(0,1fr) minmax(360px,25%)}}@media(max-width:900px){.diag-workspace{grid-template-columns:1fr}.diag-result{position:static;max-height:none}.diag-head{gap:10px}.diag-binding{padding:12px}.diag-remote-main{padding:12px}.diag-display-area canvas{height:330px}.diag-engine{height:900px}}

.diag-decoder-hit{border-color:#f59e0b}.diag-engine{width:100%;height:920px;border:1px solid var(--border,#cbd5e1);border-radius:12px;background:#fff}

/* Unified gamepad workspace, scoped to diagnostics. */
.diag-page:has(.gp-workbench) .diag-workspace{grid-template-columns:minmax(0,1fr) clamp(260px,23%,420px)}
.diag-page:has(.gp-workbench) .diag-surface{padding:clamp(16px,1.5vw,32px)}
.gp-workbench{--gp-line:var(--border,#dce5ed);--gp-muted:var(--text-muted,#607184);--gp-accent:#087f8c;line-height:1.55}
.gp-workbench h2,.gp-workbench h3,.gp-workbench h4,.gp-workbench p{margin:0}
.gp-workbench h2{font-size:clamp(20px,1.6vw,30px);line-height:1.25;overflow-wrap:anywhere}
.gp-workbench h3{font-size:18px;font-weight:700}.gp-workbench h4{font-size:16px;font-weight:700}
.gp-workbench p{color:var(--gp-muted);font-size:14px}.gp-workbench button{font:inherit;font-size:14px;font-weight:600;transition:background .15s,border-color .15s}
#diag-tool .gp-workbench .gp-primary{background:#087f8c;color:white;border-color:#087f8c}
#diag-tool .gp-workbench button:not(:disabled):hover{border-color:#087f8c;background:color-mix(in srgb,#087f8c 10%,var(--surface,#fff))}
#diag-tool .gp-workbench .gp-primary:not(:disabled):hover{background:#076b76;color:white}
.gp-workbench button:focus-visible,.gp-workbench summary:focus-visible,.gp-workbench input:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
.gp-connect-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;flex-wrap:wrap}
.gp-device-heading{display:flex;gap:14px;align-items:center;min-width:0;flex:1 1 320px}.gp-device-heading p{margin-top:5px;max-width:72ch}
.gp-device-icon{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#e1f4f2;color:#087f8c;font-size:38px;font-weight:700;line-height:1}
.gp-connect-actions,.gp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.gp-connect-actions{flex:none}
.gp-select-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gp-select-row>label{font-size:13px;font-weight:600}.gp-select-row select{max-width:min(100%,420px);flex:1 1 220px;min-width:0}
.gp-chip{display:inline-flex;gap:6px;align-items:center;padding:6px 10px;font-size:12px;border:1px solid var(--gp-line);border-radius:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.gp-workbench .gp-message{color:var(--text,#21374d);background:var(--surface-alt,#f1f6fa);border-left:3px solid #299eb0;padding:12px 15px;border-radius:0 9px 9px 0;margin:18px 0;min-height:46px}
.gp-message:empty{display:none}.gp-tabs{display:flex;gap:6px;border-bottom:1px solid var(--gp-line);margin:20px 0 18px;padding-bottom:7px;overflow:auto}
#diag-tool .gp-tabs button{border:0;background:transparent;white-space:nowrap;color:var(--gp-muted);padding:10px 17px;border-radius:8px}
#diag-tool .gp-tabs button[aria-selected=true]{background:#e0f2f1;color:#075e67}
.gp-dials{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
.gp-dial{border:1px solid var(--gp-line);border-radius:14px;overflow:hidden;min-width:0;background:var(--surface,#fff)}
.gp-dial header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;gap:10px}.gp-dial header span{font:13px ui-monospace,monospace;color:var(--gp-muted)}
#diag-tool .gp-dial canvas{width:100%;border-radius:0;aspect-ratio:1.3;max-height:450px;object-fit:contain;background:#0c192c}
.gp-axis-values{display:flex;justify-content:center;gap:32px;background:#0c192c;color:#97adc1;padding:0 12px 13px;font:12px ui-monospace,monospace}
.gp-axis-values b{color:#d1f7ef;margin-left:6px;font-variant-numeric:tabular-nums}
.gp-dial-metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:15px 12px 12px;gap:10px}.gp-dial-metrics div{text-align:center;display:flex;flex-direction:column;gap:4px}
.gp-dial-metrics span{font-size:11px;line-height:1.35;color:var(--gp-muted)}.gp-dial-metrics strong{font:600 clamp(15px,1.1vw,22px) ui-monospace,monospace;font-variant-numeric:tabular-nums}
.gp-coverage{padding:0 14px 14px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--gp-muted)}.gp-coverage progress{flex:1;min-width:30px;height:5px;accent-color:#13a494}.gp-coverage b{min-width:33px;text-align:right}
.gp-measure-bar{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;padding:18px 0 22px;border-bottom:1px solid var(--gp-line)}.gp-measure-bar h3{font-size:15px}.gp-measure-bar p{margin-top:5px;max-width:65ch}
.gp-workbench [data-rest-progress]{display:block;width:100%;height:7px;accent-color:#087f8c;margin-top:8px}
.gp-buttons-block{padding:22px 0}.gp-buttons-block>header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.gp-buttons-block>header>span{font-size:12px;font-variant-numeric:tabular-nums;color:var(--gp-muted)}
.gp-buttons-block p{margin-top:5px}.gp-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:7px;margin:18px 0;min-height:30px}
.gp-buttons span{display:grid;place-items:center;text-align:center;min-height:44px;border:1px solid var(--gp-line);border-radius:8px;font:12px ui-monospace,monospace;padding:6px;position:relative;background:var(--surface-alt,#f4f7fa)}
.gp-buttons span.gp-seen{border-color:#168879}.gp-buttons span.gp-seen::after{content:'✓';color:#087f6c;font:10px system-ui;position:absolute;right:4px;top:0}
.gp-buttons span.gp-pressed{background:#087f8c;color:white;box-shadow:0 0 0 2px #087f8c40}.gp-buttons span.gp-pressed::after{color:white}
.gp-triggers{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 0}.gp-triggers>div{display:flex;align-items:center;gap:12px;font-size:12px}.gp-triggers progress{width:100%;min-width:25px;height:12px;accent-color:#087f8c}.gp-triggers span{white-space:nowrap}.gp-triggers b{min-width:38px;font-variant-numeric:tabular-nums}
.gp-small,.gp-workbench p.gp-small{font-size:12px;color:var(--gp-muted)}
.gp-extra{padding:14px;border:1px solid var(--gp-line);border-radius:12px;margin:10px 0 14px}.gp-extra summary{cursor:pointer;font-size:14px;font-weight:600}.gp-extra p{margin-top:8px}.gp-extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}.gp-extra-grid canvas{width:100%}.gp-extra-grid dl{font:12px/1.8 ui-monospace,monospace}.gp-extra-grid dd{margin:0 0 12px}
.gp-calib-intro p{margin-top:8px}.gp-workbench .gp-gate{border:1px solid #dfb665;color:#795718;background:#fff7e6;border-radius:8px;padding:11px 13px}.gp-workbench .gp-gate.gp-ready{border-color:#8bc9bb;background:#e8f7f1;color:#146b53}
.gp-device-info{display:flex;gap:8px 16px;font-size:12px;flex-wrap:wrap;margin:12px 0}.gp-device-info dt{color:var(--gp-muted)}.gp-device-info dd{margin:0}
.gp-calib-steps{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.gp-calib-steps>section{border:1px solid var(--gp-line);border-radius:12px;padding:18px;min-width:0}.gp-calib-steps>section:last-child{grid-column:1/-1}.gp-calib-steps p{margin:8px 0 14px;max-width:90ch}.gp-calib-steps .gp-small{display:block;margin-top:12px}
.gp-save-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px}.gp-save-row label{display:flex;flex-direction:column;gap:5px;font-size:12px}.gp-save-row input{width:180px;font:600 18px ui-monospace,monospace;letter-spacing:3px}
.gp-wizard{border:2px solid #087f8c;background:var(--surface-alt,#f4f9fa);border-radius:14px;padding:22px;margin:18px 0}.gp-wizard>div:first-child{display:flex;align-items:center;gap:22px;margin-bottom:20px}.gp-direction{font:64px/1 system-ui;color:#087f8c;flex-shrink:0}.gp-wizard p{margin-top:8px;max-width:65ch}
.gp-table-scroll{overflow-x:auto}.gp-compare{width:100%;border-collapse:collapse;margin:18px 0;font-size:13px}.gp-compare th,.gp-compare td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--gp-line)}.gp-compare th{font-weight:600}.gp-compare tbody th{font-weight:400}.gp-compare td{font-variant-numeric:tabular-nums;white-space:nowrap}.gp-compare thead{background:var(--surface-alt,#f4f7fb)}
.gp-before-dot,.gp-after-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e4a037;margin-right:7px}.gp-after-dot{background:#10a58d}
.gp-footer{border-top:1px solid var(--gp-line);margin-top:26px;padding-top:18px;display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center}.gp-footer>p{width:100%;font-size:11px;max-width:110ch}.gp-footer details{font-size:12px}.gp-footer summary{cursor:pointer}.gp-footer details p{margin-top:10px;max-width:70ch;font-size:12px}.gp-footer a{display:inline-block;margin-top:8px;color:var(--accent,#1670c5)}.gp-local{font-size:11px;color:var(--gp-muted);margin-left:auto}.gp-local span{color:#0c947b;margin-right:4px}
@media(min-width:2200px){.gp-calib-steps{grid-template-columns:1fr 1fr 1.4fr}.gp-calib-steps>section:last-child{grid-column:auto}.gp-dials{gap:24px}.gp-dial-metrics{padding:20px}.gp-workbench h3{font-size:21px}.gp-buttons{grid-template-columns:repeat(auto-fit,minmax(82px,1fr))}}
@media(max-width:1150px){.diag-page:has(.gp-workbench) .diag-workspace{grid-template-columns:1fr}.diag-page:has(.gp-workbench) .diag-result{position:static;max-height:none}.gp-dial-metrics span{font-size:10px}}
@media(max-width:620px){.gp-connect-actions{width:100%}.gp-connect-actions button{flex:1}.gp-device-icon{width:42px;height:42px;font-size:30px}.gp-select-row{gap:7px}.gp-select-row>label{width:100%}.gp-select-row select{flex-basis:100%;max-width:100%}.gp-chip{font-size:10px;padding:5px 7px}.gp-dials{grid-template-columns:1fr;gap:14px}.gp-dial header{padding:10px 12px}.gp-dial-metrics span{font-size:11px}.gp-tabs{gap:0}#diag-tool .gp-tabs button{padding:10px 12px;font-size:13px}.gp-calib-steps{grid-template-columns:1fr}.gp-calib-steps>section:last-child{grid-column:auto}.gp-calib-steps>section{padding:14px}.gp-actions>button{flex:1 1 auto}.gp-triggers{grid-template-columns:1fr;gap:12px}.gp-extra-grid{grid-template-columns:1fr}.gp-wizard{padding:14px}.gp-wizard>div:first-child{gap:12px}.gp-direction{font-size:42px}.gp-compare th,.gp-compare td{padding:10px 9px}.gp-compare{font-size:11px}.gp-local{margin-left:0}.gp-save-row button{width:100%}}

/* Keep measurements and the active wizard beside the live plots in the viewport. */
#diag-tool .gp-dial canvas{max-height:300px}.gp-tabs{scroll-margin-top:90px}.gp-measure-bar{padding:0 0 16px;margin-bottom:18px}.gp-measure-bar .gp-actions{gap:7px}.gp-measure-bar>div:first-child{flex:1 1 360px}.gp-measure-bar .gp-actions{flex:1 1 440px;justify-content:flex-end}.gp-calibrating .gp-measure-bar,.gp-calibrating .gp-calib-steps,.gp-calibrating .gp-calib-intro{display:none}.gp-wizard{margin:0 0 18px}.gp-workbench .gp-message:empty{display:none}@media(min-width:2400px){#diag-tool .gp-dial canvas{max-height:360px}}@media(max-width:620px){.gp-measure-bar .gp-actions{justify-content:flex-start}.gp-measure-bar>div:first-child,.gp-measure-bar .gp-actions{flex-basis:100%}#diag-tool .gp-dial canvas{max-height:260px}}

/* Gamepad lab: compact navigation, clear tasks and full-width instrumentation. */
.diag-page:has(.gp-workbench) .diag-workspace{grid-template-columns:minmax(0,1fr)}
.diag-page:has(.gp-workbench) .diag-result{position:static;max-height:none;display:none}
.diag-page:has(.gp-workbench) .diag-result.gp-report-visible{display:block}
.diag-page:has(.gp-workbench) .diag-head{margin-bottom:12px}
.diag-page:has(.gp-workbench) .diag-head h1{font-size:clamp(24px,1.55vw,34px);margin:4px 0}
.diag-page:has(.gp-workbench) .diag-binding{padding:8px 14px;margin-bottom:14px;gap:10px;font-size:13px}
.diag-page:has(.gp-workbench) .diag-binding input{padding:6px;max-width:100px}
.diag-page:has(.gp-workbench) .diag-surface{padding:clamp(14px,1.35vw,30px)}
.gp-workbench{--gp-accent:#087d82;--gp-muted:var(--text-muted,#506277)}
.gp-workbench [role=tabpanel]{min-width:0}
.gp-connect-row{margin-bottom:12px;gap:12px}.gp-device-heading{flex-basis:340px}.gp-device-heading h2{font-size:clamp(20px,1.3vw,28px)}.gp-device-heading p{font-size:12px}
.gp-device-icon{width:46px;height:46px;border-radius:12px}.gp-device-icon svg{width:32px;height:26px}
.gp-select-row select{flex:0 1 320px}.gp-workbench:has([data-source]:empty) .gp-select-row{gap:8px}
.gp-tabs{flex-wrap:wrap;overflow:visible;gap:4px;margin:16px 0 18px;scroll-margin-top:90px}
#diag-tool .gp-tabs button{padding:10px 13px;font-size:13px;border:1px solid transparent}
#diag-tool .gp-tabs button[aria-selected=true]{border-color:#a6d9d1;background:#e2f4f0;color:#095952}
.gp-workbench .gp-message{min-height:0;padding:9px 12px;font-size:13px;margin:12px 0}
.gp-module{border:1px solid var(--gp-line);background:var(--surface,#fff);border-radius:14px;padding:clamp(16px,1.3vw,28px);min-width:0;overflow-wrap:anywhere}
.gp-module h3{font-size:18px}.gp-module>p{margin:6px 0 12px;max-width:80ch}.gp-module header,.gp-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.gp-panel-heading h3{margin-bottom:5px}.gp-panel-heading>div{max-width:85ch}
.gp-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:750;color:#13877b;display:block;margin-bottom:6px}
.gp-overview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:20px}
.gp-map-card{background:linear-gradient(145deg,var(--surface,#fff),color-mix(in srgb,#d8ecec 24%,var(--surface,#fff)))}
.gp-controller{display:block;width:100%;height:clamp(240px,19vw,390px);margin:0 auto 12px;overflow:visible}
.gp-shell{fill:var(--surface,#f4f8fa);stroke:#879fac;stroke-width:2}.gp-grip{stroke:#a8bac5;stroke-width:2}
.gp-map-key{fill:var(--surface-alt,#e7eef3);stroke:#819aab;stroke-width:1.2}.gp-map-key text{fill:var(--text,#2c4259);stroke:none;font:600 12px system-ui}.gp-map-key[data-map=touchpad] text{font-size:10px;letter-spacing:.1em}.gp-map-key.seen{stroke:#0a9b83;stroke-width:2.4}.gp-map-key.pressed{fill:#07857d;stroke:#057266}.gp-map-key.pressed text{fill:#fff}.gp-map-key.unavailable{opacity:.28}.gp-stick-dot{fill:#08a590;pointer-events:none}
.gp-start-card ol{list-style:none;padding:0;margin:16px 0;counter-reset:steps;display:grid;gap:17px}.gp-start-card li{position:relative;padding-left:37px}.gp-start-card li::before{counter-increment:steps;content:counter(steps);position:absolute;left:0;top:2px;border:1px solid #a8d3cb;background:#e7f6f1;color:#086f5e;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}.gp-start-card strong,.gp-start-card li span{display:block}.gp-start-card li span{color:var(--gp-muted);font-size:13px;margin-top:3px}
.gp-overview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0 12px;padding-top:16px;border-top:1px solid var(--gp-line)}.gp-overview-stats small{display:block;font-size:11px;color:var(--gp-muted);min-height:30px}.gp-overview-stats strong{font:700 23px ui-monospace,monospace;margin-top:5px}
.gp-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.gp-spaced{margin-top:18px!important}.gp-module hr{margin:20px 0;border:0;border-top:1px solid var(--gp-line)}
.gp-module progress{width:100%;height:12px;accent-color:#149b89}.gp-module canvas{margin-top:14px;width:100%;max-height:360px}.gp-big-number{font:600 30px ui-monospace,monospace;color:var(--text,#173d45)}
.gp-stat-line{font:12px/1.8 ui-monospace,monospace;color:var(--gp-muted);margin-top:10px;overflow-wrap:anywhere}.gp-workbench .gp-inline-note{padding:10px 12px;margin:12px 0;border:1px solid var(--gp-line);border-radius:8px;background:var(--surface-alt,#edf5f7);font-size:13px}
.gp-range-label{display:flex;align-items:center;gap:12px;margin:15px 0;font-size:13px}.gp-range-label input{min-width:50px;flex:1;accent-color:#07857d}.gp-range-label output{min-width:40px;font-variant-numeric:tabular-nums}
.gp-check-row{border-top:1px solid var(--gp-line);padding-top:13px;margin-top:16px;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px;flex-wrap:wrap}.gp-check-row select{max-width:100%;font-size:12px;flex:0 1 290px}
.gp-imu-view{display:grid;gap:22px;margin:18px 0}.gp-imu-view h4{font-size:13px;margin-bottom:10px}.gp-imu-row{display:grid;grid-template-columns:18px 1fr 72px;gap:12px;align-items:center;font:12px ui-monospace,monospace;margin:9px 0}.gp-imu-row meter{width:100%;height:18px}.gp-imu-row b{text-align:right;font-weight:500}
.gp-grow{flex:1 1 240px;min-width:0;display:grid;gap:5px;font-size:12px}.gp-grow select{width:100%}.gp-checkbox{display:flex;gap:8px;align-items:center;font-size:13px;margin:12px 0}.gp-checkbox input{width:17px;height:17px;accent-color:#07857d}.gp-audio-meter{display:flex;gap:14px;align-items:center;margin-top:20px}.gp-audio-meter progress{flex:1}.gp-audio-meter strong{font:13px ui-monospace,monospace;min-width:90px;text-align:right}
.gp-firmware-versions{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0}.gp-firmware-versions small{font-size:12px;color:var(--gp-muted);display:block}.gp-firmware-versions strong{display:block;font:600 29px ui-monospace,monospace;margin-top:7px}.gp-module details summary{cursor:pointer;font-size:13px;font-weight:650}.gp-module details p{margin-top:12px;font-size:13px}.gp-device-info{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1fr);gap:10px;font-size:12px;overflow-wrap:anywhere}
.gp-auto-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 22px;padding:20px;border-radius:14px;border:1px solid #abd7ca;background:color-mix(in srgb,#d4f1e7 24%,var(--surface,#fff));margin:0 0 18px}.gp-auto-card>div:first-child p{max-width:82ch;margin-top:7px}.gp-auto-card [data-auto-status],.gp-auto-card [data-auto-progress],.gp-auto-card [data-auto-hint]{grid-column:1/-1}.gp-auto-card [data-auto-status]:empty{display:none}.gp-auto-card [data-auto-status]{font-weight:650;color:var(--text,#154c46);font-size:15px}.gp-auto-card [data-auto-progress]{width:100%;accent-color:#149b89;height:8px}.gp-auto-card .gp-actions{align-self:center}.gp-auto-card [data-lab=auto-cancel]{justify-self:start;grid-column:1/-1}
.gp-manual{margin-top:18px;border:1px solid var(--gp-line);border-radius:12px;padding:16px}.gp-manual>summary{cursor:pointer;font-weight:650;font-size:14px}.gp-calib-intro{padding:0 0 14px}.gp-calib-intro h3{font-size:15px}.gp-calib-intro>p:first-of-type{display:none}.gp-legacy-extra{display:none!important}.gp-calib-steps{margin-top:14px}.gp-calib-steps>section:last-child{grid-column:1/-1}
.gp-test-running{display:flex;gap:20px;justify-content:space-between;align-items:center;background:#fff3d4;color:#705113;border:1px solid #e4c575;border-radius:10px;padding:10px 14px;margin-top:14px}.gp-test-running button{border-color:#bca35d!important;color:#705113!important;background:#fffaf0!important}
.gp-report-checks{margin-bottom:22px}.gp-report-checks [data-lab-report]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;margin:14px 0}.gp-protocol-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--gp-line);font-size:13px}.gp-result-pill{font-size:11px;border-radius:6px;padding:3px 7px;white-space:nowrap;font-weight:500}.gp-result-pill.info{background:var(--surface-alt,#edf2f7);color:var(--gp-muted)}.gp-result-pill.pass{background:#d9f4e9;color:#126a4c}.gp-result-pill.fail{background:#ffdfdf;color:#922c2c}
.gp-buttons-block{padding:20px 0 4px}.gp-buttons{margin:12px 0;grid-template-columns:repeat(auto-fit,minmax(66px,1fr))}.gp-buttons-block>.gp-actions,.gp-buttons-block>.gp-triggers{display:none}.gp-footer{margin-top:24px}.gp-footer>p{font-size:11px}.gp-workbench .gp-measure-bar{padding:0 0 14px;margin:0 0 16px}.gp-workbench .gp-measure-bar h3{font-size:14px}.gp-dials{margin-bottom:16px}
@media(min-width:2200px){.gp-overview-grid{grid-template-columns:minmax(0,1.4fr) minmax(460px,1fr)}.gp-controller{height:420px}.gp-start-card li span,.gp-workbench p{font-size:15px}.gp-report-checks [data-lab-report]{grid-template-columns:repeat(4,minmax(0,1fr))}.gp-calib-steps{grid-template-columns:1fr 1fr 1.4fr}.gp-calib-steps>section:last-child{grid-column:auto}}
@media(max-width:1100px){.gp-overview-grid{grid-template-columns:1fr}.gp-controller{height:300px}.gp-two-col{grid-template-columns:1fr}.gp-report-checks [data-lab-report]{grid-template-columns:repeat(2,minmax(0,1fr))}.gp-auto-card{grid-template-columns:1fr}.gp-auto-card .gp-actions{grid-column:1}.gp-start-card ol{grid-template-columns:repeat(3,1fr)}.gp-start-card li{padding-left:0;padding-top:35px}}
@media(max-width:620px){.gp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#diag-tool .gp-tabs button{white-space:normal;padding:9px 8px;text-align:left;font-size:12px;border-color:var(--gp-line)}.gp-tabs button:last-child{grid-column:1/-1}.gp-controller{height:auto}.gp-module{padding:14px}.gp-start-card ol{grid-template-columns:1fr}.gp-start-card li{padding:0 0 0 36px}.gp-overview-grid,.gp-two-col{gap:14px}.gp-report-checks [data-lab-report]{grid-template-columns:1fr}.gp-test-running{gap:8px;font-size:12px}.gp-connect-actions{width:100%;max-width:100%;min-width:0;flex-wrap:wrap}.gp-connect-actions button{flex:1 1 140px;min-width:0}.gp-auto-card{padding:15px}.gp-auto-card h3{font-size:17px}.gp-firmware-versions strong{font-size:24px}.gp-check-row select{flex-basis:100%}.gp-select-row select{flex-basis:100%}.gp-overview-stats small{font-size:10px}.gp-overview-stats strong{font-size:20px}.gp-workbench h2{font-size:21px}}

.gp-order-details{margin:0 0 14px;font-size:12px}.gp-order-details>summary{cursor:pointer;padding:8px 0;color:var(--text-muted,#53677b)}.gp-order-details>summary span{opacity:.75;margin-left:8px}.gp-order-details .diag-binding{margin-top:10px}

/* Local DualShock Tools DualSense artwork; input visualization only. */
.gp-controller.gp-dualsense{height:clamp(300px,27vw,600px);max-width:100%;margin:20px auto 18px;overflow:visible}
.gp-dualsense .gp-ds-shell{fill:#7ecbff;stroke:#7ecbff;stroke-width:1}
.gp-dualsense .gp-ds-outline{fill:#3399cc;stroke:#3399cc;stroke-width:1}
.gp-dualsense .gp-ds-infill{fill:var(--surface,#fff);stroke:var(--surface,#fff);stroke-width:1}
.gp-dualsense .gp-ds-outline.seen{fill:#0a9b83;stroke:#0a9b83}
.gp-dualsense .gp-ds-infill.seen{fill:color-mix(in srgb,#0a9b83 10%,var(--surface,#fff));stroke:color-mix(in srgb,#0a9b83 10%,var(--surface,#fff))}
.gp-dualsense .gp-ds-infill.pressed{fill:#2188bc;stroke:#2188bc}
.gp-dualsense .gp-ds-outline.pressed{fill:#11638e;stroke:#11638e}
.gp-dualsense .unavailable{opacity:.28}
.gp-dualsense .gp-ds-infill[data-ds-trigger]{fill:#2188bc;stroke:#2188bc;fill-opacity:var(--travel,0);stroke-opacity:var(--travel,0)}
.gp-dualsense .gp-ds-percentage{fill:#247fae;font-size:22px;pointer-events:none}
.gp-dualsense .gp-ds-percentage.on{fill:#fff}
.gp-dualsense .gp-ds-touch-points{fill:#1276cb;stroke:#fff;stroke-width:3;pointer-events:none}
.gp-dualsense [data-ds-touch="1"]{fill:#d747a2}
@media(max-width:1100px){.gp-controller.gp-dualsense{height:clamp(260px,44vw,490px)}}
@media(max-width:620px){.gp-controller.gp-dualsense{height:auto;aspect-ratio:640/518;margin:18px auto}}
