/* Report card shared by the extension popup and the website. */
.nr-card {
  --nr-surface: #141b31;
  --nr-surface-2: #1b2440;
  --nr-border: #2a3558;
  --nr-border-strong: #3a4a7a;
  --nr-text: #eaeef8;
  --nr-text-2: #c5cde0;
  --nr-muted: #a7b1c9;
  --nr-accent: #ffb938;
  --nr-pass: #5ee0c0;
  --nr-caution: #ffb938;
  --nr-fail: #ff8a80;
  --nr-unknown: #a7b1c9;
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
  border-radius: 18px;
  color: var(--nr-text);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.nr-card * { box-sizing: border-box; }
.nr-card p { margin: 0; }
.nr-card h2, .nr-card h3 { margin: 0; }
.nr-card a { color: var(--nr-text); }

.nr-icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.nr-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nr-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 6px; border-radius: 8px;
  background: transparent; border: 1px solid transparent; color: var(--nr-muted); cursor: pointer;
}
.nr-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nr-icon-btn:hover { color: var(--nr-text); border-color: var(--nr-border-strong); }
.nr-icon-btn.is-copied { color: var(--nr-pass); border-color: var(--nr-pass); }
.nr-icon-btn:focus-visible, .nr-btn:focus-visible, .nr-seg-btn:focus-visible, .nr-card a:focus-visible, .nr-card input:focus-visible {
  outline: 3px solid var(--nr-accent); outline-offset: 2px;
}

/* Header */
.nr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nr-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--nr-surface-2); }
.nr-logo--text { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--nr-accent); border: 1px solid var(--nr-border-strong); }
.nr-title { flex: 1 1 180px; min-width: 0; }
.nr-title h2 { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.nr-sym { color: var(--nr-muted); font-weight: 500; font-size: 15px; }
.nr-meta { display: flex; align-items: center; gap: 6px; color: var(--nr-muted); font-size: 13px; flex-wrap: wrap; }
.nr-meta code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.nr-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nr-links a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--nr-border-strong); font-size: 13px; text-decoration: none; color: var(--nr-text-2);
}
.nr-links a:hover { color: var(--nr-text); border-color: var(--nr-text-2); }
.nr-links .nr-icon { width: 14px; height: 14px; }

/* Verdict */
.nr-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--nr-surface-2); border: 1px solid var(--nr-border-strong); }
.nr-verdict strong { display: block; font-size: 17px; }
.nr-verdict p { color: var(--nr-text-2); font-size: 14px; }
.nr-verdict-icon { width: 28px; height: 28px; margin-top: 1px; }
.nr-v-standard, .nr-v-established { border-color: color-mix(in srgb, var(--nr-pass) 55%, transparent); }
.nr-v-standard .nr-verdict-icon, .nr-v-established .nr-verdict-icon { color: var(--nr-pass); }
.nr-v-caution { border-color: color-mix(in srgb, var(--nr-caution) 60%, transparent); }
.nr-v-caution .nr-verdict-icon { color: var(--nr-caution); }
.nr-v-high { border-color: var(--nr-fail); background: color-mix(in srgb, var(--nr-fail) 12%, var(--nr-surface-2)); }
.nr-v-high .nr-verdict-icon { color: var(--nr-fail); }
.nr-v-unknown .nr-verdict-icon { color: var(--nr-unknown); }

.nr-pump { display: flex; gap: 12px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--nr-accent) 14%, var(--nr-surface-2)); border: 1px solid color-mix(in srgb, var(--nr-accent) 60%, transparent); }
.nr-pump .nr-icon { color: var(--nr-accent); }
.nr-pump p { font-size: 14px; color: var(--nr-text-2); }

/* Checks */
.nr-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nr-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--nr-border); }
.nr-check:first-child { border-top: 0; padding-top: 2px; }
.nr-check-body { flex: 1; min-width: 0; }
.nr-check-body strong { font-size: 15px; }
.nr-check-body p { color: var(--nr-muted); font-size: 14px; }
.nr-pill { flex: none; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.nr-pass > .nr-icon, .nr-pass .nr-pill { color: var(--nr-pass); }
.nr-caution > .nr-icon, .nr-caution .nr-pill { color: var(--nr-caution); }
.nr-fail > .nr-icon, .nr-fail .nr-pill { color: var(--nr-fail); }
.nr-unknown > .nr-icon, .nr-unknown .nr-pill { color: var(--nr-unknown); }

/* Stats */
.nr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--nr-border); border: 1px solid var(--nr-border); border-radius: 12px; overflow: hidden; }
.nr-stat { background: var(--nr-surface); padding: 10px 12px; min-width: 0; }
.nr-stat dt { font-size: 12px; color: var(--nr-muted); }
.nr-stat dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nr-up { color: var(--nr-pass); }
.nr-down { color: var(--nr-fail); }

/* Blocks */
.nr-block { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--nr-border); }
.nr-block h3 { font-size: 15px; }
.nr-muted { color: var(--nr-muted); font-size: 14px; }
.nr-fine { color: var(--nr-muted); font-size: 12px; }
.nr-warn { font-size: 13px; color: var(--nr-caution); }
.nr-label { font-size: 13px; color: var(--nr-muted); }

.nr-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--nr-muted); }
.nr-field input {
  min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--nr-border-strong);
  background: var(--nr-surface-2); color: var(--nr-text); font: inherit; font-size: 16px; width: 100%;
}
.nr-slip-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.nr-slip-row .nr-field { flex: 1 1 140px; }
.nr-seg { display: inline-flex; border: 1px solid var(--nr-border-strong); border-radius: 10px; overflow: hidden; }
.nr-seg-btn { min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; background: transparent; color: var(--nr-text-2); font: inherit; cursor: pointer; }
.nr-seg-btn[aria-pressed="true"] { background: var(--nr-accent); color: #0b1020; font-weight: 600; }
.nr-slip-big { display: flex; align-items: center; gap: 6px; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--nr-accent); font-variant-numeric: tabular-nums; }

.nr-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--nr-accent); background: var(--nr-accent); color: #0b1020;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; align-self: flex-start;
}
.nr-btn:disabled { opacity: .6; cursor: default; }
.nr-btn--ghost { background: transparent; color: var(--nr-text); border-color: var(--nr-border-strong); }
.nr-card a.nr-btn { color: #0b1020; }
.nr-card a.nr-btn--ghost { color: var(--nr-text); }

.nr-plan-grid { display: flex; flex-direction: column; gap: 4px; }
.nr-check-row { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.nr-check-row input { width: 18px; height: 18px; accent-color: var(--nr-accent); }
.nr-sl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nr-chip { position: relative; cursor: pointer; }
.nr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.nr-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--nr-border-strong); color: var(--nr-text-2); font-size: 14px; }
.nr-chip input:checked + span { background: var(--nr-surface-2); border-color: var(--nr-accent); color: var(--nr-text); }
.nr-chip input:focus-visible + span { outline: 3px solid var(--nr-accent); outline-offset: 2px; }
.nr-plan-list { margin: 0; padding-left: 18px; color: var(--nr-text-2); font-size: 14px; }

.nr-foot { border-top: 1px solid var(--nr-border); padding-top: 12px; }
.nr-foot p { font-size: 12px; color: var(--nr-muted); }

/* Loading and errors */
.nr-loading { display: flex; align-items: center; gap: 12px; padding: 20px; color: #c5cde0; }
.nr-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #2a3558; border-top-color: #ffb938; animation: nr-spin .8s linear infinite; }
@keyframes nr-spin { to { transform: rotate(360deg); } }
.nr-error { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid #ff8a80; color: #eaeef8; background: #2a1d2b; }
.nr-error .nr-icon { color: #ff8a80; }
@media (prefers-reduced-motion: reduce) { .nr-spinner { animation-duration: 2.4s; } }

@media (max-width: 420px) {
  .nr-card { padding: 16px; }
  .nr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
