/* Security and privacy (module 34-security). Prefix sp-. */
.sp-ref { white-space: nowrap; font-weight: 700; }
.sp-nowrap { white-space: nowrap; }
.sp-mini { font-size: 12px; color: var(--muted, #5d6f82); }
.sp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.sp-saved { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sp-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e0e7ed; }
.sp-bulk select { max-width: 260px; }
.sp-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.sp-toolbar > * { min-width: 0; }
.sp-sandbox { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: #fff4dc; color: #8a5a00; border: 1px solid #f1d38f; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.sp-checks { list-style: none; margin: 0; padding: 0; }
.sp-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 2px; border-bottom: 1px solid #eef2f6; font-size: 13px; }
.sp-checks li:last-child { border-bottom: 0; }
.sp-checks .ok { color: #12865d; } .sp-checks .off { color: #9aa8b6; } .sp-checks .warn { color: #c07a00; }
.sp-checks small { display: block; color: var(--muted, #5d6f82); font-size: 11.5px; overflow-wrap: anywhere; }
.sp-feed { list-style: none; margin: 0; padding: 0; }
.sp-feed li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f6; font-size: 12.5px; }
.sp-feed li:last-child { border-bottom: 0; }
.sp-feed .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #e9f2fd; color: #1a6fd0; font-size: 13px; }
.sp-feed .dot.warn { background: #fff3dc; color: #b26b00; } .sp-feed .dot.bad { background: #fde8ec; color: #c01d47; }
.sp-feed b { font-weight: 600; } .sp-feed small { display: block; color: var(--muted, #5d6f82); }
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.sp-tile { border: 1px solid #e3eaf1; border-radius: 10px; padding: 9px 11px; background: #fbfdff; min-width: 0; }
.sp-tile .l { display: block; font-size: 11.5px; color: var(--muted, #5d6f82); }
.sp-tile b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-tile small { color: var(--muted, #5d6f82); font-size: 11.5px; }
.sp-code { background: #0f2340; color: #e4f0ff; border-radius: 8px; padding: 10px 12px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; position: relative; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-hit { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e3eaf1; font-size: 12.5px; flex-wrap: wrap; }
.sp-hit:last-child { border-bottom: 0; }
.sp-hit .what { min-width: 0; flex: 1; }
.sp-hit code { background: #f3f6fa; padding: 1px 5px; border-radius: 4px; }
.sp-msg { background: #f7f9fc; border: 1px solid #e3eaf1; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 320px; overflow-y: auto; }
.sp-diff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sp-diff > div { min-width: 0; }
.sp-diff h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5d6f82); }
.sp-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.sp-ip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #eef6ff; border: 1px solid #cfe2fb; font-weight: 600; }
.sp-perm { display: inline-block; margin: 1px 3px 1px 0; padding: 0 6px; border-radius: 4px; background: #eef2f7; font-size: 11.5px; white-space: nowrap; }
.sp-perm.on { background: #e3f6ee; color: #0d6e4b; }
.sp-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.sp-flow div { border: 1px solid #e3eaf1; border-radius: 10px; padding: 10px; background: #fff; font-size: 12.5px; min-width: 0; }
.sp-flow div:before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-primary, #1a7fe0); color: #fff; font-size: 11px; font-weight: 700; margin-right: 6px; }
.sp-public { max-width: 520px; }
.sp-public .sp-btnlist { display: grid; gap: 10px; margin: 16px 0; }
.sp-public .sp-btnlist a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) {
    .sp-diff, .sp-flow { grid-template-columns: minmax(0, 1fr); }
    .sp-checks li { grid-template-columns: 22px minmax(0, 1fr); }
    .sp-checks li > :last-child { grid-column: 2; }
}
