/* Gerätetest am echten Gerät (web/js/designer/geraetetest.js) – großes Fenster wie das Effekt-Studio */
dialog.gt { width: min(1180px, calc(100vw - 32px)); height: min(840px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); color: var(--text); overflow: hidden; }
dialog.gt::backdrop { background: #000b; }
.gt-win { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.gt-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.gt-top h1 { margin: 0; font-size: 19px; line-height: 1.25; }
.gt-top small { color: var(--muted); display: block; font-size: 13px; }
.gt-x { width: 46px; height: 46px; }
.gt-steps { display: flex; gap: 6px; margin-top: 10px; }
.gt-st { flex: 1; display: grid; gap: 5px; color: var(--dim); font: 600 12.5px/1.3 var(--font, inherit); border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.gt-st i { height: 4px; border-radius: 4px; background: var(--line-2); }
.gt-st.done { color: var(--muted); } .gt-st.done i { background: #8a6418; }
.gt-st.on { color: var(--text); } .gt-st.on i { background: var(--accent); }
.gt-st:disabled { cursor: default; }
.gt-main { overflow: auto; padding: 22px; min-height: 0; }
/* rechts Platz für den Hilfe-Knopf, der in offenen Fenstern unten rechts schwebt */
.gt-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 12px 136px 12px 18px; border-top: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.gt-foot .sp { flex: 1; color: var(--muted); font-size: 13.5px; min-width: 160px; }
.gt .btn.big { min-height: 56px; font-size: 16px; padding: 0 22px; }
.gt .muted { color: var(--muted); margin: 0; }

.gt-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.gt-col { display: grid; gap: 14px; max-width: 820px; }
.gt-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.gt-card h2 { margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); }
.gt-card textarea { min-height: 90px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 10px 12px; color: var(--text); font: inherit; resize: vertical; }
.gt-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gt-sum div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.gt-sum b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.gt-sum b.ok { color: var(--ok, #3ddc84); } .gt-sum b.bad { color: var(--bad, #ff5a5f); }
.gt-sum span { color: var(--muted); font-size: 13px; }
.gt-hint { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.gt-hint b { color: var(--text); }
.gt-hint .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--info, #6fb3ff); margin-top: 6px; flex: none; }
.gt-hint.warn .dot { background: var(--accent); }
.gt-ok { padding: 14px; border-radius: 12px; background: #10241a; border: 1px solid #1f5a3a; color: #9fe9bf; }
.gt-last { margin-top: 12px !important; font-size: 13.5px; }
.gt-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: n; }
.gt-how li { counter-increment: n; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gt-how li::before { content: counter(n); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3, #1e222b); color: var(--accent); font-weight: 700; font-size: 17px; }
.gt-how li > span { display: grid; gap: 3px; }
.gt-how b { font-size: 16px; }
.gt-pads { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 8px; max-width: 440px; }
.gt-pads span { aspect-ratio: 1.4; border-radius: 6px; background: #1d2129; border: 1px solid #2c313c; font-size: 10px; color: var(--muted); display: grid; place-items: center; }
.gt-pads span.t { background: #2a2110; border-color: #8a6418; color: #ffd27a; }

.gt-test { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; height: 100%; min-height: 0; }
.gt-now { display: grid; grid-template-rows: auto minmax(220px, 1fr) auto; gap: 12px; min-height: 0; }
.gt-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.gt-head h2 { margin: 0; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--text); }
.gt-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.gt-head .gt-ss { color: var(--dim); font-size: 12.5px; }
.gt-head .gt-warn { color: #ffd27a; font-size: 12.5px; }
.gt-pad { display: grid; place-items: center; align-content: center; width: 84px; height: 84px; border-radius: 14px; background: #2a2110; border: 2px solid var(--accent); color: #ffd27a; text-align: center; line-height: 1.1; }
.gt-pad small { font-size: 11.5px; color: #d9b25f; }
.gt-pad b { font-size: 30px; font-variant-numeric: tabular-nums; }
.gt-stage { position: relative; border-radius: 14px; background: #07080b; border: 1px solid var(--line); overflow: hidden; min-height: 220px; }
.gt-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.gt-stage .lbl { position: absolute; left: 12px; top: 10px; z-index: 1; color: var(--muted); font-size: 12.5px; pointer-events: none; text-shadow: 0 1px 2px #000; }
.gt-answer { display: grid; gap: 10px; }
.gt-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gt .gt-yes, .gt .gt-no { min-height: 64px; font-size: 18px; }
.gt .gt-yes { background: #10241a; border-color: #1f5a3a; color: #9fe9bf; }
.gt .gt-no { background: #2a1213; border-color: #6a2a2c; color: #ffb3b5; }
.gt .gt-yes.sel { background: var(--ok, #3ddc84); color: #08200f; border-color: var(--ok, #3ddc84); }
.gt .gt-no.sel { background: var(--bad, #ff5a5f); color: #fff; border-color: var(--bad, #ff5a5f); }
.gt-why { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid #6a2a2c; }
.gt-why .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.gt-why .opts button { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); padding: 0 14px; font: inherit; cursor: pointer; }
.gt-why .opts button.on { border-color: var(--bad, #ff5a5f); background: #2a1213; color: #ffb3b5; }
.gt-why input { min-height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); padding: 0 12px; font: inherit; }

.gt-list { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.gt-list-h { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.gt-prog { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; display: flex; }
.gt-prog i { display: block; height: 100%; } .gt-prog .g { background: var(--ok, #3ddc84); } .gt-prog .r { background: var(--bad, #ff5a5f); }
.gt-rows { overflow: auto; padding: 6px; display: grid; gap: 3px; align-content: start; }
.gt-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 24px; gap: 8px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.gt-row:hover { background: var(--panel-2); }
.gt-row.cur { border-color: var(--accent); background: var(--panel-2); }
.gt-row .pn { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.gt-row .tt { font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.gt-row .ok { color: var(--ok, #3ddc84); } .gt-row .bad { color: var(--bad, #ff5a5f); }
.gt-bank { padding: 8px 8px 2px; color: var(--accent); font-size: 12px; font-weight: 700; }
.gt-bad { display: grid; gap: 6px; }
.gt-bad div { padding: 10px 12px; border-radius: 10px; background: #2a1213; border: 1px solid #6a2a2c; color: #ffb3b5; }
.gt-bad small { display: block; color: #d48a8c; }

@media (max-width: 820px) {
  dialog.gt { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .gt-main { padding: 14px 16px; }
  .gt-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gt-test { grid-template-columns: 1fr; height: auto; }
  .gt-now { grid-template-rows: auto 260px auto; }
  .gt-list { max-height: 360px; }
  .gt-foot .sp { display: none; }
}

/* Auswahl, welches Gerät getestet wird („Was fehlt“ mit mehreren Modellen) */
.dlg-models { display: grid; gap: 8px; }
.dlg-models .btn { justify-content: flex-start; min-height: 52px; }

/* LED-Schritte: erwartete Farbe als Feld vor dem Titel; Hinweise aus der Prüfung */
.gt-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; margin-right: 10px; vertical-align: -3px; border: 1px solid #ffffff40; }
.gt-diag { font-size: 13.5px; color: #ffd27a !important; }
