.zoom-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(2, 6, 23, 0.92); display: none; overflow: auto; cursor: zoom-out; -webkit-overflow-scrolling: touch; }
.zoom-overlay.open { display: block; }
.zoom-overlay img { display: block; margin: 0 auto; max-width: none; width: min(1536px, max(96vw, 1100px)); height: auto; padding: 24px 0; }
.zoom-close { position: fixed; top: 14px; right: 18px; z-index: 10001; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.5); background: rgba(15, 23, 42, 0.85); color: #e2e8f0; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.lx-code {
  position: relative;
  background: rgba(4, 19, 36, 0.7);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 16px 18px;
  padding-right: 84px;
  margin-top: 14px;
  overflow-x: auto;
}
.lx-code pre { margin: 0; font-family: var(--font-mono); font-size: 0.84rem; color: #e2f4ff; white-space: pre; }
.lx-copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(56, 189, 248, 0.12); border: 1px solid var(--border-accent);
  color: var(--accent-cyan); border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; padding: 5px 12px; cursor: pointer;
}

/* Audit-report sample: the paper look of a printed / PDF-saved report. The report's own
   styles (same as the generated file's) are scoped under .rs-report so they can't leak. */
.rs-report-wrap { margin: 40px auto 0; max-width: 900px; }
.rs-report-scroll { overflow-x: auto; padding: 10px 0 8px; -webkit-overflow-scrolling: touch; }
.rs-report { display: flex; flex-direction: column; align-items: center; gap: 22px; width: max-content; min-width: 100%; }
.rs-report-en { display: none; }
html:not([lang="ja"]) .rs-report-ja { display: none; }
html:not([lang="ja"]) .rs-report-en { display: flex; }
.rs-report .rp-sheet { position: relative; box-sizing: border-box; width: 794px; min-height: 1123px; padding: 42px 34px 64px; background: #fff; color: #1a1a1a;
  border-radius: 2px; box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  font-family: -apple-system, 'Segoe UI', 'Hiragino Sans', 'Noto Sans CJK JP', sans-serif; font-size: 9.5px; line-height: 1.5; text-align: left; }
.rs-report .rp-sheet * { box-sizing: border-box; }
.rs-report h1 { font-size: 19px; margin: 0 0 12px; color: #1a1a1a; font-weight: 700; letter-spacing: 0; }
.rs-report h2 { font-size: 13px; margin: 22px 0 6px; border-bottom: 2px solid #333; padding-bottom: 4px; color: #1a1a1a; font-weight: 700; letter-spacing: 0; }
.rs-report table { border-collapse: collapse; width: 100%; margin: 8px 0; background: #fff; }
/* Unlike the generated file (word-break: break-word), normal words are kept whole so a narrow A4 column
   doesn't shatter a timestamp or MAC address into fragments; only genuinely over-long tokens break. */
.rs-report th, .rs-report td { border: 1px solid #bbb; padding: 3px 5px; text-align: left; vertical-align: top; overflow-wrap: break-word; word-break: normal; color: #1a1a1a; background: #fff; font-size: 9.5px; }
.rs-report th { background: #eee; font-weight: 700; }
.rs-report .rp-nw { white-space: nowrap; }
.rs-report .rp-any { overflow-wrap: anywhere; }
.rs-report .rp-head th { white-space: nowrap; width: 1%; }
.rs-report .rp-ok { color: #0a6b2d; font-weight: 600; }
.rs-report .rp-bad { color: #b00020; font-weight: 600; }
.rs-report .rp-muted { color: #666; }
.rs-report .rp-pageno { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #888; font-size: 10px; }
.rs-report-cap { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.lx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.lx-feat h4 { font-size: 0.98rem; color: var(--accent-cyan); margin-bottom: 6px; }
.lx-feat p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.7; }
.lx-feat-server { border-color: rgba(245, 158, 11, 0.35) !important; background: rgba(245, 158, 11, 0.05) !important; }
.lx-feat-server h4 { color: #f59e0b; }
.lx-feat-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-full); background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #f59e0b; font-size: 0.68rem; font-weight: 700; vertical-align: middle; }
.lx-feat-client { border-color: rgba(56, 189, 248, 0.35) !important; background: rgba(56, 189, 248, 0.05) !important; }
.lx-feat-client h4 { color: var(--accent-cyan); }
.lx-feat-badge-client { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: var(--radius-full); background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.4); color: var(--accent-cyan); font-size: 0.68rem; font-weight: 700; vertical-align: middle; }
.lx-env-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.88rem; }
.lx-env-table th, .lx-env-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-accent); }
.lx-env-table th { color: var(--accent-cyan); font-weight: 600; }
.sensor-flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 28px; }
.sensor-node { width: 100%; max-width: 420px; padding: 18px 20px; border-radius: 14px; background: rgba(15, 23, 42, 0.55); border: 1px solid var(--border-accent); text-align: center; }
.sensor-node.sensor-node-center { border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.08); }
.sensor-node h4 { font-size: 0.92rem; color: var(--text-primary); margin-bottom: 6px; }
.sensor-node p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.sensor-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 10px; }
.sensor-arrow .arrow-line { width: 1px; height: 22px; background: var(--border-accent); position: relative; }
.sensor-arrow .arrow-line::after { content: '▾'; position: absolute; left: -8px; bottom: -10px; color: var(--accent-cyan); font-size: 0.9rem; }
.sensor-arrow span.arrow-label { font-size: 0.74rem; color: var(--accent-cyan); text-align: center; line-height: 1.5; }
