/* Vorschau „nameplate“ – Digitales Typenschild */
.xd-np .xd-steps { grid-template-columns: repeat(2, 1fr); }
.xd-np-form { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px 10px; }
.xd-np-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xd-np-f label { font: 600 11.5px var(--display); color: var(--muted); }
.xd-np-f input[type="text"], .xd-np-f input[type="number"] { font: 500 14px var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; min-height: 36px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.xd-np-f input[readonly] { background: var(--steel); }
.xd-np-f-range { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
.xd-np-f-range label { white-space: nowrap; } .xd-np-f-range input { flex: 1; accent-color: var(--amber); min-width: 0; }
.xd-np-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xd-np-list li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.xd-np-list li.on { border-color: var(--amber); background: var(--amber-soft); }
.xd-np-list .xd-row-main strong { font: 700 13.5px var(--display); font-variant-numeric: tabular-nums; }
.xd-np-list button { border: 1px solid var(--line); background: #fff; border-radius: 8px; min-height: 32px; padding: 0 10px; font: 600 12.5px var(--display); cursor: pointer; }
.xd-np-list button:hover { border-color: var(--ink); }
/* Beide Schritte gleich hoch */
.xd-np .xd-panel { min-height: 500px; }
/* IEC-61406-Rahmen: quadratischer Rahmen, Dreieck unten rechts */
.xd-np-qr { position: relative; flex: none; width: 40px; height: 40px; box-sizing: border-box; padding: 4px; border: 2px solid var(--ink); background: #fff; line-height: 0; }
.xd-np-qr svg { width: 100%; height: 100%; display: block; }
.xd-np-qr::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 34%; height: 34%; background: var(--ink); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.xd-np-qr-m { width: 64px; height: 64px; padding: 7px; }
.xd-np-sel { display: flex; align-items: center; gap: 14px; }
.xd-np-sel strong { font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
.xd-np-addr { font-size: 11px; word-break: break-all; }
.xd-np-view { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.xd-np-view label { position: relative; }
.xd-np-view input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.xd-np-view span { display: block; padding: 6px 14px; font: 600 13px var(--display); background: #fff; }
.xd-np-view input:checked + span { background: var(--ink); color: #fff; }
.xd-np-view input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: -3px; }
.xd-np-scan, .xd-np-json { height: 246px; box-sizing: border-box; }
.xd-np-scan .xd-ph-body { gap: 4px; padding-top: 8px; }
.xd-np-scan { border: 6px solid #0B131A; border-radius: 18px; overflow: hidden; background: var(--steel); width: 100%; max-width: 300px; align-self: center; }
.xd-np-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; }
.xd-np-doc { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }
.xd-np-doc > span { color: var(--amber-dark); } .xd-np-doc div { display: flex; flex-direction: column; line-height: 1.2; } .xd-np-doc b { font-weight: 600; font-size: 12px; } .xd-np-doc small { font-size: 10.5px; color: var(--muted); }
.xd-np-json { margin: 0; background: var(--ink); color: #E6EBEF; border-radius: 10px; padding: 12px 14px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.xd-np-json .k { color: var(--amber); }
@media (max-width: 480px) { .xd-np-form { grid-template-columns: 1fr; } }
.xd-np { min-width: 0; contain: inline-size; }
