/* Module devctl: bediening van het beeldscherm en schermafbeelding */
.devctl-status { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 14px; }
.devctl-status .status { white-space: normal; text-align: left; }
.devctl-chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--muted); background: var(--head); }
.devctl-chip.warn { color: #8a5a00; border-color: #e0a100; background: color-mix(in srgb, #e0a100 12%, var(--card)); }
.devctl-err { color: var(--bad); font-size: 13.5px; width: 100%; margin: 4px 0; overflow-wrap: anywhere; }
.devctl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }

.devctl-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.devctl-row:first-child { border-top: 0; padding-top: 2px; }
.devctl-label { font-weight: 700; }
.devctl-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.devctl-ctl input[type=range] { flex: 1; min-width: 140px; max-width: 360px; accent-color: var(--blue-d); height: 28px; }
.devctl-ctl output { min-width: 46px; font-variant-numeric: tabular-nums; font-weight: 600; }
.devctl-ctl select { border: 1px solid var(--field-line); border-radius: 8px; padding: 5px 8px; background: var(--field); color: var(--text); }
.devctl-note { color: var(--muted); font-size: 13.5px; margin-right: 4px; }
.devctl-sub { display: block; width: 100%; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.devctl-pres { color: #8a5a00; }
.devctl-test { min-width: 52px; justify-self: end; }
.devctl-use button:disabled, .devctl-use input:disabled { opacity: .55; cursor: wait; }
.devctl-result { min-height: 22px; margin: 10px 0 4px; padding: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.devctl-result:empty { display: none; }
.devctl-result.ok { color: var(--ok); } .devctl-result.bad { color: var(--bad); } .devctl-result.busy { color: var(--muted); }
.devctl-miss { margin: 10px 0 0; max-width: none; }
.devctl-log { margin-top: 12px; font-size: 13.5px; } .devctl-log summary { cursor: pointer; font-weight: 600; } .devctl-log ul { margin: 6px 0 0 18px; color: var(--muted); }

.devctl-shotbar { justify-content: space-between; align-items: center; margin: 0 0 12px; }
.devctl-shot { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.devctl-thumb { border: 1px solid var(--line); border-radius: 6px; padding: 0; background: #000; cursor: zoom-in; overflow: hidden; vertical-align: middle; line-height: 0; }
.devctl-thumb img { display: block; width: 96px; height: 54px; object-fit: contain; }

.devctl-cfg .bform > .wide { grid-column: 1 / -1; }
.devctl-cfg .bform h4 { margin: 10px 0 -4px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.devctl-cfg .bform p.hint { margin: 0; max-width: none; }
.devctl-cfg .bf small { line-height: 1.4; }
.devctl-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; padding: 3px 0; }
.devctl-check input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.devctl-hex { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.devctl-help { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--head); font-size: 13.5px; }
.devctl-help summary { cursor: pointer; font-weight: 600; } .devctl-help p { margin: 8px 0; } .devctl-help .actions { margin-top: 6px; }
.devctl-bulk { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.devctl-bgroup { padding: 6px 0; border-top: 1px solid var(--line); } .devctl-bgroup:first-child { border-top: 0; }
.devctl-bgroup > .devctl-check:not(.devctl-bhead) { padding-left: 24px; }

html[data-theme=dark] .devctl-chip.warn, html[data-theme=dark] .devctl-pres { color: #f0c36a; }

@media (max-width: 820px) {
  .devctl-row { grid-template-columns: 1fr auto; }
  .devctl-label { grid-column: 1; } .devctl-row .devctl-test { grid-column: 2; grid-row: 1; }
  .devctl-ctl { grid-column: 1 / -1; }
  .devctl-ctl input[type=range] { max-width: none; min-width: 60%; }
  .devctl-cfg .bform { grid-template-columns: 1fr; }
  .devctl-shotbar { flex-direction: column; align-items: stretch; gap: 8px; }
}
dd .devctl-thumb + small { display: block; margin-top: 3px; }
