:root { color-scheme: light; --w: 980px; --bd: #ddd; --muted:#666; --bg:#fff; --card:#fff; --soft:#f7f7f7; }
*{ box-sizing:border-box; }
body{ margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height:1.55; background:var(--bg); color:#111; }
a{ color:inherit; }
.nw-header{ border-bottom:1px solid var(--bd); position:sticky; top:0; background:rgba(255,255,255,.95); backdrop-filter: blur(6px); z-index:10; }
.nw-header__inner{ max-width:var(--w); margin:0 auto; padding:10px 16px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.nw-brand{ font-weight:800; }
.nw-nav a{ margin-left:10px; text-decoration:none; border-bottom:1px dotted #999; }
.nw-main{ max-width:var(--w); margin:0 auto; padding:16px; display:grid; gap:16px; }
.nw-grid{ display:grid; gap:16px; grid-template-columns: 1fr; }
@media (min-width: 960px){ .nw-grid{ grid-template-columns: 1.05fr .95fr; } }
.nw-card{ border:1px solid var(--bd); border-radius:16px; padding:14px; background:var(--card); }
.nw-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.nw-row > *{ flex: 0 0 auto; }
label{ font-size: 12px; color: var(--muted); display:block; margin: 0 0 6px; }
textarea, select, input[type="text"]{ width:100%; padding:10px 12px; border:1px solid #bbb; border-radius:12px; background:#fff; font-size:14px; }
textarea{ min-height: 220px; resize: vertical; }
button{ padding:10px 12px; border-radius:12px; border:1px solid #aaa; background:#fff; cursor:pointer; font-weight:600; }
button[disabled]{ opacity:.5; cursor:not-allowed; }
.nw-pill{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--bd); border-radius:999px; background:#fff; font-size:12px; }
.nw-kbd{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:12px; padding:2px 6px; border:1px solid #bbb; border-radius:6px; background:#fff; }
.nw-muted{ color:var(--muted); }
.nw-pre{ white-space: pre-wrap; background:var(--soft); border:1px solid #e5e5e5; border-radius:12px; padding:12px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:12px; }
.nw-badge{ display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid var(--bd); background:#fff; font-weight:700; font-size:12px; }
.nw-badge--high{ border-color:#c33; color:#c33; }
.nw-badge--med{ border-color:#c90; color:#a60; }
.nw-badge--low{ border-color:#2a7; color:#2a7; }
.nw-badge--unk{ border-color:#999; color:#666; }
.findings{ display:grid; gap:10px; }
.finding{ border:1px solid var(--bd); border-radius:14px; padding:12px; background:#fff; }
.finding__top{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center; }
.finding__title{ font-weight:800; }
.finding__sev{ font-weight:800; font-size:12px; padding:3px 10px; border-radius:999px; border:1px solid var(--bd); }
.sev-HIGH{ border-color:#c33; color:#c33; }
.sev-MED{ border-color:#c90; color:#a60; }
.sev-LOW{ border-color:#2a7; color:#2a7; }
.sev-INFO{ border-color:#999; color:#666; }
hr{ border:none; border-top:1px solid var(--bd); margin:12px 0; }
.nw-footer{ border-top:1px solid var(--bd); margin-top: 18px; }
.nw-footer__inner{ max-width:var(--w); margin:0 auto; padding:12px 16px; display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.nw-doc a{ border-bottom: 1px dotted #999; text-decoration:none; }
.nw-toast{ position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); background:#111; color:#fff; padding:10px 12px; border-radius:12px; font-size:13px; display:none; max-width: calc(100% - 24px); }
.nw-acc details{ border:1px solid var(--bd); border-radius:12px; padding:10px 12px; background:#fff; margin-top:8px; }
.nw-acc summary{ cursor:pointer; font-weight:800; }
.nw-acc p{ margin:8px 0 0; color:#222; }
.ad-slot{ border:1px dashed #ccc; border-radius:14px; padding:12px; color:var(--muted); background:#fafafa; text-align:center; font-size:13px; }
.notice-card{ border:1px solid #e0c36a; background:#fffaf0; border-radius:14px; padding:12px 14px; margin-bottom:16px; }
.notice-card h2{ margin:0 0 8px; font-size:16px; }
.notice-card p{ margin:6px 0; }
.risk-why{ white-space:pre-line; }
.finding__cat{ display:inline-block; margin-top:6px; padding:2px 8px; border:1px solid #ddd; border-radius:999px; color:var(--muted); font-size:12px; background:#fafafa; }
.nw-donate-text{ margin:0 0 10px; color:#333; }
.nw-donate-links{ display:flex; gap:10px; flex-wrap:wrap; }
.nw-donate-links a{ display:inline-block; padding:8px 12px; border:1px solid var(--bd); border-radius:999px; text-decoration:none; background:#fff; font-weight:700; }
.nw-links a{ text-decoration:none; border-bottom:1px dotted #999; }
@media (max-width:480px){
  .nw-main{ padding:12px; }
  .nw-header__inner{ align-items:flex-start; }
  .nw-nav{ display:flex; flex-wrap:wrap; gap:8px; }
  .nw-nav a{ margin-left:0; }
  .action-row{ flex-direction:column; align-items:stretch; }
  .action-row button{ width:100%; }
  textarea{ min-height:180px; }
  .nw-pill{ border-radius:12px; align-items:flex-start; }
}
