/* NullPoint Signal Deck — static demo. No CDN fonts, no purple, no emoji. */
:root {
  --ink: #0b100e;
  --field: #101612;
  --panel: #141c17;
  --panel-2: #1a241e;
  --line: #2a3a32;
  --text: #e8f0ea;
  --muted: #8fa398;
  --faint: #5e7368;
  --brass: #c4a574;
  --brass-dim: #9a7d52;
  --signal: #2ec27e;
  --danger: #e85d5d;
  --warn: #e0a84a;
  --font: "Avenir Next", "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(196,165,116,.08), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(46,194,126,.06), transparent 50%);
}
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--text); }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex: none; background: #0e1411;
  border-right: 1px solid var(--line); padding: 20px 14px;
}
.brand { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass); font-weight: 700; font-size: 13px;
}
.name { font-weight: 700; letter-spacing: .04em; }
.sub { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nav-label {
  color: var(--faint); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  margin: 16px 8px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); padding: 7px 8px; border-radius: 3px;
}
.nav-item:hover, .nav-item.active { color: var(--text); background: var(--panel); }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.nav-item.active .dot { background: var(--signal); }
.main { flex: 1; padding: 28px 32px 64px; max-width: 980px; }
.kicker { color: var(--brass-dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.lede { color: var(--muted); max-width: 62ch; margin-bottom: 22px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 28px; }
.metric { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; }
.metric h3 { color: var(--brass); font-size: 11px; letter-spacing: .12em; margin-bottom: 6px; }
.metric .big { font-family: var(--mono); font-size: 28px; }
.gate { display: inline-block; margin-top: 8px; padding: 2px 8px; background: #0e2d1e; color: #3a8c5c; font-size: 10px; font-weight: 700; }
.metric .sub { font-size: 11px; color: var(--faint); margin-top: 6px; }
.card {
  background: #111810; border: 1px solid #1e2a22; border-radius: 4px; overflow: hidden; margin-bottom: 14px;
}
.hd { padding: 16px 20px 12px; border-bottom: 1px solid #1e2a22; }
.sender { font-weight: 600; font-size: 13px; }
.badge {
  display: inline-block; padding: 2px 8px; background: #3a1a1a; color: #c45c52;
  font-size: 10px; font-weight: 700; letter-spacing: .8px; border-radius: 2px; margin-left: 8px;
}
.badge.safe { background: #0e2d1e; color: #3a8c5c; }
.meta { color: #5a6a60; font-size: 12px; margin-top: 2px; font-family: var(--mono); }
.body { padding: 14px 20px 12px; }
.subj { color: #c8c8c8; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.prev { color: #5a6a60; font-size: 12px; font-family: var(--mono); overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; }
.pill {
  display: inline-block; padding: 3px 10px; border: 1px solid #2a3a2e; color: #8a9e90;
  font-size: 11px; border-radius: 20px; width: max-content; max-width: 28ch;
}
.foot {
  padding: 12px 20px 14px; border-top: 1px solid #1e2a22;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.triage { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  padding: 7px 14px; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  border-radius: 3px; border: 1px solid transparent; background: transparent; cursor: pointer;
  font-family: inherit;
}
.btn-block { border-color: #c45c52; color: #c45c52; }
.btn-review { border-color: #8a7a50; color: #c4a574; }
.btn-safe { border-color: #3a8c5c; color: #3a8c5c; }
.btn.done { opacity: .45; pointer-events: none; }
.btn-report {
  display: flex; align-items: center; gap: 5px; background: none; border: none;
  color: #4a5a50; font-size: 12px; cursor: pointer; padding: 6px 2px; font-family: inherit;
}
.btn-report:hover { color: #8a9e90; }
.note { color: var(--faint); font-size: 12px; margin-top: 18px; }
.flow {
  background: var(--panel); border: 1px solid #1c5730; padding: 16px 18px;
  font-family: var(--mono); font-size: 12px; white-space: pre-wrap; color: #a8b8ae; margin: 16px 0 24px;
}
.term-grid { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid #1a241e; }
.term-name { padding: 16px 18px; font-weight: 600; font-size: 13px; font-family: var(--mono); border-bottom: 1px solid #101612; border-right: 1px solid #1a241e; }
.term-body { padding: 16px 18px; color: #c8d0cb; border-bottom: 1px solid #101612; font-size: 13px; }
.search {
  width: 100%; max-width: 420px; background: #141c17; border: 1px solid #1c5730;
  color: var(--text); padding: 9px 14px; font-size: 13px; outline: none; font-family: inherit; margin: 12px 0 20px;
}
.phone {
  width: 280px; background: #0a0f0c; border: 1px solid var(--line); border-radius: 28px; padding: 18px 14px 22px;
}
.phone h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.call-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1a241e; font-size: 13px; }
.call-row .who { font-weight: 600; }
.call-row .lab { color: var(--danger); font-size: 11px; }
.footer-links { margin-top: 36px; color: var(--faint); font-size: 12px; }
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr; }
  .term-grid { grid-template-columns: 1fr; }
  .term-name { border-right: none; }
  .main { padding: 20px 16px 48px; }
}
#npr-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 300; align-items: center; justify-content: center; padding: 16px;
}
#npr-overlay.open { display: flex; }
#npr-modal {
  background: #111810; border: 1px solid #1e2a22; border-radius: 6px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow: auto;
}
.npr-header { padding: 20px 24px 16px; border-bottom: 1px solid #1a241e; display: flex; justify-content: space-between; }
.npr-title { font-size: 15px; font-weight: 600; }
.npr-step { font-size: 11px; color: #4a5a50; margin-top: 2px; }
.npr-close { background: none; border: none; color: #4a5a50; cursor: pointer; font-size: 18px; }
.npr-body { padding: 20px 24px; }
.steps { display: flex; gap: 4px; margin-bottom: 18px; }
.step-dot { height: 3px; flex: 1; background: #1e2a22; border-radius: 2px; }
.step-dot.active { background: #1f9a62; }
.step-dot.complete { background: #1a5e3a; }
.step-panel { display: none; }
.step-panel.active { display: block; }
.question { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.subq { font-size: 12px; color: #5a6a60; margin-bottom: 16px; }
.yn-row { display: flex; gap: 10px; }
.btn-yn {
  flex: 1; padding: 10px; border-radius: 4px; border: 1px solid #2a3a2e;
  background: #0e1510; color: #c8c8c8; cursor: pointer; font-family: inherit;
}
.btn-yn.selected { border-color: #1f9a62; background: #0e2318; color: #3acc88; }
.reason-chip {
  display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #1e2a22;
  border-radius: 4px; background: #0e1510; cursor: pointer; margin-bottom: 7px;
}
.reason-chip.selected { border-color: #1f9a62; background: #0e1f16; }
.chip-icon { width: 16px; height: 16px; border: 1.5px solid #2a3a2e; border-radius: 50%; flex: none; margin-top: 2px; }
.reason-chip.selected .chip-icon { background: #1f9a62; border-color: #1f9a62; }
textarea#report-detail {
  width: 100%; min-height: 88px; background: #0e1510; border: 1px solid #2a3a2e;
  color: var(--text); padding: 10px; font-family: inherit; resize: vertical;
}
.npr-footer { padding: 12px 24px 18px; display: flex; justify-content: space-between; }
.btn-primary {
  background: #1f9a62; color: #041208; border: none; padding: 9px 16px;
  font-weight: 700; letter-spacing: .06em; cursor: pointer; font-family: inherit;
}
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-back { background: none; border: none; color: #8a9e90; cursor: pointer; font-family: inherit; }
.success-title { font-size: 16px; font-weight: 600; margin: 8px 0 6px; }
.success-sub { color: #5a6a60; font-size: 13px; }
.examples { margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.ex {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--brass);
  padding: 4px 10px; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 12px;
}
.ex:hover { border-color: var(--brass); color: var(--text); }
.analyze-form { display: grid; gap: 12px; max-width: 640px; margin-bottom: 22px; }
.analyze-form label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.analyze-form input[type="text"], .analyze-form textarea {
  background: var(--field); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; font-family: inherit; font-size: 14px; text-transform: none; letter-spacing: 0;
}
.analyze-form textarea { resize: vertical; min-height: 120px; }
.chk { display: flex !important; flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px !important; color: var(--text) !important; }
.chk input { width: auto; }
.why { margin: 10px 0 0 18px; color: var(--muted); }
.why li { margin-bottom: 4px; }
