:root {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #14171c; --muted: #5d6470; --line: #e2e0da;
  --accent: #2f4a6d; --accent-soft: #e7edf5; --warn: #8a4b14; --warn-soft: #f6ece2;
  --hi: #2e6b46; --med: #8a6d14; --lo: #8a2e2e;
  --radius: 10px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
.top { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; padding: 12px 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { font-weight: 650; letter-spacing: .02em; }
.tag { font-size: 11px; font-weight: 500; opacity: .6; margin-left: 6px; text-transform: uppercase; }
.steps { display: flex; gap: 4px; flex-wrap: wrap; }
.steps a { color: #c9ced6; text-decoration: none; font-size: 13px; padding: 6px 10px; border-radius: 6px; }
.steps a.on { background: #2a3039; color: #fff; }
.steps a.done::before { content: "✓ "; color: #8fc3a2; }
.view { max-width: 920px; margin: 28px auto; padding: 0 20px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input[type=text], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
button, .btn { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; }
button.ghost { background: transparent; color: var(--accent); }
button:disabled { opacity: .4; cursor: not-allowed; }
.group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.src { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.src:first-of-type { border-top: 0; }
.src input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.src .name { font-weight: 600; }
.src .desc { color: var(--muted); font-size: 13px; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.pill.high { background: #e3f0e7; color: var(--hi); } .pill.medium { background: #f4eed9; color: var(--med); }
.pill.low { background: #f4e2e2; color: var(--lo); } .pill.kind { background: var(--accent-soft); color: var(--accent); }
.finding { padding: 12px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; }
.finding .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.finding .dir { font-weight: 600; font-size: 13px; }
.dir.for { color: var(--hi); } .dir.against { color: var(--lo); } .dir.neutral { color: var(--muted); }
.lead { border-left: 4px solid var(--accent); }
.challenge { border-left: 4px solid var(--lo); }
ul.tight { margin: 6px 0; padding-left: 20px; } ul.tight li { margin: 4px 0; }
.meter { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 8px 0 4px; }
.meter span { display: block; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
.empty { color: var(--muted); font-style: italic; }
.brief h1 { font-size: 20px; } .brief .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-top: 16px; }
@media print {
  .top, .foot, .actions { display: none; }
  body { background: #fff; } .view { margin: 0; max-width: none; }
  .card { border: 0; padding: 0; }
  .brief::after { content: "Confidential · All rights reserved to Limor Ostrowski"; display: block; margin-top: 24px; font-size: 11px; color: #666; }
}
