/* Eigener Schlüssel (Stufe 4): Hinweise, Dialoge (Einrichtung, Freischaltung, Umschlüsseln) und Seite „Eigener Schlüssel“. */
[data-e2-note][hidden] { display: none; }
.as-e2-note {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line, rgba(127, 127, 127, 0.3));
  border-radius: var(--ui-radius-m, 0.5rem);
  background: var(--bg-soft, rgba(127, 127, 127, 0.08));
  color: var(--muted, inherit);
  font-size: 0.875rem;
  line-height: 1.4;
}
.as-e2-note__icon { flex: none; margin-top: 0.15rem; }
.as-e2-note__text { flex: 1 1 14rem; min-width: 0; }
.as-e2-note__more { white-space: nowrap; }
.as-e2-note--warn { border: 2px solid var(--as-warn, #8a5300); color: inherit; font-weight: 600; }
.as-e2-way { margin: 12px 0; padding: 4px 14px 12px; border: 1px solid var(--line, rgba(127, 127, 127, 0.4)); border-radius: var(--ui-radius-m, 0.5rem); }
.as-e2-way h3 { margin-top: 10px; }
.as-e2-steps { margin: 6px 0 10px; padding-left: 1.3rem; }
.as-e2-lose { margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--as-warn, #8a5300); background: var(--bg-soft, rgba(127, 127, 127, 0.08)); border-radius: 0 10px 10px 0; }
.as-e2-dlg { --as-danger: #b3261e; --as-warn: #8a5300; --as-ok: #14653a; }
:root[data-theme="dark"] .as-e2-dlg, [data-theme="dark"] .as-e2-dlg { --as-danger: #f87171; --as-warn: #fbbf24; --as-ok: #4ade80; }
.as-e2-dlg [data-e2-title]:focus { outline: none; box-shadow: none; }
.as-e2-dlg .as-dialog__form { max-width: 100%; }
.as-e2-dlg h3, .as-e2-h3 { font-size: 1rem; margin: 16px 0 4px; }
.as-e2-dlg .as-actions .btn { min-height: 44px; }
.as-e2-dlg .as-actions--start { justify-content: flex-start; }
.as-e2-dlg .as-hint { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.as-e2-dlg .as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.as-e2-dlg .as-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-e2-dlg .as-field input[type="text"] { width: 100%; min-height: 44px; box-sizing: border-box; }
.as-e2-dlg .as-check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 8px; }
.as-e2-dlg .as-check input { width: 22px; height: 22px; flex: none; }
.as-e2-dlg .as-code { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.1em; text-align: center; margin: 8px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.as-e2-dlg .as-notice { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--as-ok); color: var(--as-ok); font-weight: 600; }
.as-e2-dlg .as-error { margin: 8px 0 0; }
.as-e2-dlg .as-sr, .as-e2-page .as-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-e2-ws { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0 4px; padding: 14px 8px; border: 2px solid var(--ink, currentColor); border-radius: 12px; background: var(--bg-soft, rgba(127, 127, 127, 0.08)); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.08em; user-select: all; }
.as-e2-ws span { white-space: nowrap; }
.as-e2-progress { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.as-e2-progress li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.3)); }
.as-e2-list { margin: 6px 0 12px; padding-left: 1.2rem; }
.as-e2-plain { padding: 10px 12px; border-left: 4px solid var(--as-ok, #14653a); background: var(--bg-soft, rgba(127, 127, 127, 0.08)); border-radius: 0 10px 10px 0; margin: 12px 0; }
.as-e2-page { max-width: 56rem; margin: 0 auto; padding: 0 16px 48px; min-width: 0; --as-danger: #b3261e; --as-warn: #8a5300; --as-ok: #14653a; }
[data-theme="dark"] .as-e2-page { --as-danger: #f87171; --as-warn: #fbbf24; --as-ok: #4ade80; }
.as-e2-page *, .as-e2-dlg * { box-sizing: border-box; }
.as-e2-page .as-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--as-danger); color: var(--as-danger); overflow-wrap: anywhere; }
.as-e2-page .as-notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--as-ok); color: var(--as-ok); font-weight: 600; }
.as-e2-page .as-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.as-e2-page .btn { min-height: 44px; }
.as-e2-page .as-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-e2-page .as-field input[type="text"] { width: 100%; min-height: 44px; box-sizing: border-box; }
.as-e2-page .as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.as-e2-page .as-hint { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.as-e2-sec { margin: 28px 0 0; }
.as-e2-sec h2 { font-size: 1.125rem; margin: 0 0 8px; }
.as-e2-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 16px 0; }
.as-e2-facts dt { color: var(--muted); }
.as-e2-facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.as-e2-page .as-tablewrap { overflow-x: auto; max-width: 100%; }
.as-e2-devices { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.as-e2-devices th, .as-e2-devices td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.3)); vertical-align: top; }
.as-e2-num { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.05em; }
.as-e2-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.as-e2-page .as-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.8125rem; font-weight: 600; }
.as-e2-dlg :focus-visible, .as-e2-page :focus-visible { outline: 3px solid var(--ink, currentColor); outline-offset: 2px; }
.as-e2-print { display: none; }
@media (max-width: 640px) {
  .as-e2-dlg .as-grid, .as-e2-page .as-grid { grid-template-columns: minmax(0, 1fr); }
  .as-e2-dlg .as-actions .btn { flex: 1 1 8rem; }
  .as-e2-ws { font-size: 1.125rem; letter-spacing: 0.04em; }
  .as-e2-devices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .as-e2-devices, .as-e2-devices tbody, .as-e2-devices tr, .as-e2-devices td { display: block; }
  .as-e2-devices tr { padding: 8px 0; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.3)); }
  .as-e2-devices td { border: 0; padding: 2px 0; }
  .as-e2-devices td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media print {
  body > *:not(.as-e2-print) { display: none !important; }
  .as-e2-print { display: block !important; position: static; color: #000; background: #fff; font-family: system-ui, sans-serif; padding: 20mm; }
  .as-e2-print h1 { font-size: 20pt; margin: 0 0 12pt; }
  .as-e2-print dl { display: grid; grid-template-columns: max-content 1fr; gap: 4pt 12pt; margin: 0 0 16pt; }
  .as-e2-print dd { margin: 0; }
  .as-e2-print__key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22pt; font-weight: 700; letter-spacing: 0.1em; border: 2pt solid #000; padding: 12pt; text-align: center; line-height: 1.6; }
}
