:root {
  --paper: #F3EBE0;
  --sheet: #FFF9F0;
  --sand: #E6D5BE;
  --ink: #2A221A;
  --muted: #6A5E52;
  --olive: #4F5E32;
  --line: #D3C4B0;
  --bad: #9C4030;
  --ochre: #B87A1F;
  --ok: #2F5D3A;
  --radius: 12px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
.sheet {
  max-width: 880px;
  margin: 32px auto;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 36px;
}
.logo { width: 240px; height: auto; display: block; }
h1 {
  margin: 18px 0 16px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
}
.progress {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.figures {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.figures li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
}
.figures .name { font-weight: 600; }
.figures .unit,
.field .unit {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92em;
}
.choice-inline {
  display: block;
  margin: 6px 0;
  font-weight: 400;
}
.fieldset.field,
fieldset.field {
  border: none;
  padding: 0;
  margin: 16px 0;
}
.fieldset.field legend,
fieldset.field legend {
  font-weight: 600;
  margin-bottom: 4px;
}
.figures .value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.figures .empty { color: var(--muted); font-weight: 400; }
label.field {
  display: block;
  max-width: 360px;
  margin: 0 0 14px;
}
label.field.wide { max-width: 520px; }
label.field span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
label.field input,
label.field select,
label.field textarea {
  width: 100%;
  font: 16px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
label.field textarea {
  min-height: 96px;
  resize: vertical;
  font-variant-numeric: normal;
}
.help { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.trouble { margin: 6px 0 0; color: var(--bad); font-size: 13px; }
button,
a.btn-primary,
a.btn-secondary {
  font: 600 15px/1 var(--font);
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-confirm { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.btn-secondary {
  background: var(--sheet);
  color: var(--ink);
  border-color: var(--line);
}
form { margin: 0 0 28px; }
.nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.nav-bottom .btn-secondary { order: -1; }
.links { margin: 0 0 22px; }
.links a,
.quiet {
  color: var(--olive);
  font-weight: 600;
  text-decoration: none;
}
.links a + a { margin-left: 16px; }
.ideas {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.ideas a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.files {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.files li {
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
}
.files a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink);
  vertical-align: middle;
}
.badge-order { background: #E7E3D6; }
.badge-open { background: #F3E6C8; }
.badge-from-text { background: #E8EDE3; }
.badge-order { background: #D4E4F7; }
.badge-own { background: #E5DFF0; }
.badge-own { background: #E4EBD8; }
.sample { margin-top: 8px; }
.sample-note { margin: 0 0 10px; }
.banner {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 0 0 12px;
}
.banner-early {
  background: #EFE6D4;
  border: 1px solid var(--sand);
}
.banner-warn {
  background: #F6EBD4;
  border: 1px solid var(--ochre);
  margin-bottom: 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-intro {
  margin: 0 0 16px;
  max-width: 42em;
}
.home-new-hero {
  margin: 0 0 28px;
  padding: 24px 22px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #fff 0%, var(--sheet) 55%, #f5ebe0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 28px rgba(42, 34, 26, 0.07);
  position: relative;
  overflow: hidden;
}
.home-new-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--olive), var(--ochre));
}
.home-new-hero-head {
  margin-bottom: 18px;
  max-width: 40em;
}
.home-new-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
}
.home-new-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}
.home-new-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.home-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.home-start-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 100%;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-start-card:hover {
  border-color: var(--olive);
  box-shadow: 0 6px 20px rgba(42, 34, 26, 0.08);
  transform: translateY(-1px);
}
.home-start-card--featured {
  border-width: 2px;
  border-color: var(--olive);
  background: #fff;
  box-shadow: 0 4px 16px rgba(79, 94, 50, 0.12);
}
.home-start-card--featured:hover {
  box-shadow: 0 8px 24px rgba(79, 94, 50, 0.18);
}
.home-start-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.home-start-tag--muted {
  background: var(--sand);
  color: var(--muted);
}
.home-start-name {
  display: block;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
}
.home-start-desc {
  margin: 0 0 14px;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.home-start-cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--olive);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.home-start-cta--quiet {
  background: transparent;
  color: var(--olive);
  border: 1px solid var(--line);
  padding: 9px 15px;
}
.home-start-card:hover .home-start-cta--quiet {
  border-color: var(--olive);
  background: rgba(79, 94, 50, 0.06);
}
.home-new-jump {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.home-new-jump:hover {
  color: var(--olive);
  text-decoration: underline;
}
.home-radar {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(79, 94, 50, 0.04);
}
.home-radar-inner {
  max-width: 640px;
}
.home-radar-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-radar-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.home-radar-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
}
.home-radar-cta {
  display: inline-block;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.home-radar-cta--quiet {
  background: transparent;
  color: var(--olive);
  border: 1px solid var(--line);
}
.home-radar-meta {
  margin-top: 10px;
}
.home-radar-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 12px;
  font-weight: 600;
}
.radar-title {
  margin: 12px 0 8px;
  font-size: 24px;
}
.radar-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}
.radar-score {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.radar-score-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.radar-score-value {
  font-size: 20px;
}
.radar-block {
  margin: 20px 0;
}
.radar-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.radar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.radar-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.radar-history li {
  margin: 8px 0;
}
.radar-leader-row {
  background: rgba(79, 94, 50, 0.08);
}
.home-list-head {
  margin: 20px 0 0;
}
.home-saved-heading {
  margin: 0;
  grid-column: 1;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
}
@media (max-width: 720px) {
  .home-start-grid {
    grid-template-columns: 1fr;
  }
  .home-new-hero {
    padding: 20px 16px 18px;
  }
}
.home-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 12px;
}
.home-head-row h1 {
  margin: 0;
}
.home-trash-badge {
  display: inline-block;
  min-width: 1.4em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.trash-banner {
  margin-bottom: 16px;
}
.home-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 12px;
  padding: 10px 0 12px;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(42, 34, 26, 0.04);
}
.home-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  grid-column: 2;
}
.home-search-bar--solo {
  flex: 1 1 100%;
}
.home-search-field {
  display: flex;
  align-items: stretch;
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.home-search-field input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 12px;
  font-size: 15px;
  background: transparent;
}
.home-search-field input[type="search"]:focus {
  outline: none;
}
.home-search-field:focus-within {
  border-color: var(--olive);
  box-shadow: 0 0 0 2px rgba(92, 107, 60, 0.15);
}
.home-search-submit {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
  padding: 10px 18px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.home-search-reset {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.home-search-reset:hover {
  color: var(--olive);
}
.home-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  grid-column: 3;
}
.home-trash-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.home-trash-link:hover {
  border-color: var(--olive);
  color: var(--olive);
}
.home-logout {
  margin: 40px 0 0;
  text-align: right;
}
@media (max-width: 900px) {
  .home-toolbar {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
  }
  .home-saved-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .home-toolbar-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .home-search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 480px) {
  .home-toolbar-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}
.home-section-heading {
  font-size: 18px;
  margin: 20px 0 10px;
}
.home-trash-hits {
  margin-bottom: 24px;
}
.trash-toolbar {
  margin-bottom: 16px;
}
.home-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.home-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
}
.home-table th,
.home-table td {
  vertical-align: middle;
}
.home-name a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.home-name a:hover {
  color: var(--olive);
}
.home-status {
  max-width: 14rem;
  line-height: 1.35;
}
.home-col-npv {
  white-space: nowrap;
}
.home-col-action {
  white-space: nowrap;
}
.home-btn-continue {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
}
.home-col-more {
  width: 2.5rem;
  text-align: center;
}
.home-row-menu {
  position: relative;
  display: inline-block;
}
.home-row-menu-trigger {
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  user-select: none;
}
.home-row-menu-trigger::-webkit-details-marker {
  display: none;
}
.home-row-menu-trigger:hover {
  background: var(--sand);
}
.home-row-menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 3;
  min-width: 10rem;
  margin-top: 4px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.home-row-menu-panel a,
.home-row-menu-panel span {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
}
.home-row-menu-panel a:hover {
  background: var(--sand);
}
.idea-link-muted {
  color: var(--muted);
  padding: 8px 14px;
  display: block;
  font-size: 14px;
}
@media (max-width: 720px) {
  .home-col-country,
  .home-col-date {
    display: none;
  }
  .home-table {
    min-width: 480px;
  }
}
.intake-form .help { margin: 8px 0 0; }
.composer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 34, 26, 0.06);
  padding: 10px 10px 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.composer:focus-within { border-color: var(--olive); }
.composer--rec,
.composer--rec:focus-within {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(156, 64, 48, 0.12);
}
.composer--drop {
  border: 2px dashed var(--olive);
  background: rgba(79, 94, 50, 0.05);
}
.composer--busy { opacity: 0.6; pointer-events: none; }
.composer-text {
  display: block;
  width: 100%;
  min-height: 48px;
  border: none;
  outline: none;
  resize: none;
  overflow-y: hidden;
  padding: 4px 4px 6px;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: transparent;
}
.composer-text:focus-visible { outline: none; }
.composer-text::placeholder { color: #b5a898; }
.composer-drop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 249, 240, 0.92);
  color: var(--olive);
  font-weight: 600;
  pointer-events: none;
}
.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.composer-grow { flex: 1 1 auto; }
.composer-meta { font-size: 12px; color: var(--muted); }
.composer-meta--bad { color: var(--bad); font-weight: 600; }
.composer-icon,
.composer-send,
.composer-stop {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.composer-icon { background: transparent; border: none; }
.composer-icon:hover { background: var(--paper); }
.composer-icon svg,
.composer-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.composer-icon svg { stroke: var(--muted); }
.composer-mic svg { stroke: var(--olive); }
.composer-send { background: var(--olive); border: none; }
.composer-send svg { stroke: #fff; stroke-width: 2.5; width: 18px; height: 18px; }
.composer-send:disabled { background: var(--sand); cursor: default; }
.composer-stop { background: var(--bad); border: none; }
.composer-stop span { width: 12px; height: 12px; border-radius: 3px; background: #fff; }
.composer-cancel {
  background: none;
  border: none;
  padding: 6px;
  color: var(--muted);
  font: 600 13px/1 var(--font);
}
.composer-cancel:hover { color: var(--bad); }
.rec-dot {
  width: 9px;
  height: 9px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--bad);
  animation: rec-pulse 1s infinite;
}
@keyframes rec-pulse { 50% { opacity: 0.3; } }
.rec-time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-wave {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  overflow: hidden;
}
.rec-wave i {
  display: block;
  flex: 0 0 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--bad);
  opacity: 0.75;
  transition: height 0.07s linear;
}
.rec-busy {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.rec-spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--sand);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: rec-spin 0.8s linear infinite;
}
@keyframes rec-spin { to { transform: rotate(360deg); } }
.composer-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
}
.composer-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 4px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
}
.composer-chip--bad { border-color: var(--bad); background: #F6E4DF; }
.chip-type {
  padding: 2px 5px;
  border-radius: 4px;
  background: #E8EDE3;
  color: var(--olive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.chip-name { font-weight: 600; overflow-wrap: anywhere; }
.chip-size { color: var(--muted); white-space: nowrap; }
.chip-reason { color: var(--bad); font-weight: 600; }
.chip-x {
  padding: 0 4px;
  border: none;
  background: none;
  color: var(--muted);
  font: 700 16px/1 var(--font);
}
.chip-x:hover { color: var(--bad); }
.composer-chip--image { padding: 3px; }
.composer-chip--image .chip-x {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  opacity: 0;
}
.composer-chip--image:hover .chip-x,
.composer-chip--image .chip-x:focus-visible { opacity: 1; }
.chip-thumb {
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sand);
}
.chip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.composer-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.saved-chip {
  padding: 3px 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--olive);
  font: 600 13px/1.4 var(--font);
}
.saved-chip:hover { border-color: var(--olive); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(42, 34, 26, 0.75);
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.draft-heading {
  margin: 24px 0 12px;
  font-size: 18px;
}
.draft-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  cursor: pointer;
}
.draft-row input { margin-top: 4px; }
.draft-quote { display: block; margin-top: 4px; }
.badge-assumption { background: #F3E6C8; }
.ok-text { color: var(--ok); font-weight: 600; }
.bad-text { color: var(--bad); font-weight: 600; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.kpi .name { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.kpi .value {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.kpi .plain { margin: 8px 0 0; font-size: 13px; color: var(--ink); }
.project-nav {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--sand);
}
.project-nav-hint {
  margin: 0 0 8px;
  display: none;
}
.project-stepper {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
.step-pill {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.step-pill:hover {
  border-color: var(--olive);
  color: var(--olive);
}
.step-pill--current {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.step-pill--current:hover {
  color: #fff;
}
.step-pill--done:not(.step-pill--current) {
  border-color: var(--ok);
  color: var(--ok);
}
.nav-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn-nav-secondary {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn-nav-secondary:hover {
  border-color: var(--olive);
  color: var(--olive);
}
.btn-nav-secondary--accent {
  border-color: var(--sand);
  background: var(--sheet);
}
.btn-nav-quiet {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.btn-nav-quiet:hover {
  color: var(--olive);
  border-color: transparent;
}
@media (max-width: 800px) {
  .project-nav-hint { display: block; }
  .btn-nav-quiet { margin-left: 0; width: 100%; text-align: center; }
}
.bm-unit-block { margin: 20px 0 28px; }
.bm-headline {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 12px 0 16px;
  font-variant-numeric: tabular-nums;
}
.bm-tables {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) {
  .bm-tables { grid-template-columns: 1fr 1fr; }
}
.bm-table-title { font-size: 1rem; margin: 0 0 8px; }
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.report-table th,
.report-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.report-table thead th { background: var(--sand); font-weight: 600; }
.report-table .num { text-align: right; font-weight: 600; }
.report-table th[scope="row"] { font-weight: 500; }
.bm-story-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .bm-story-grid { grid-template-columns: 1fr 1fr; }
}
.bm-story .bm-section h3 { font-size: 1rem; margin: 0 0 6px; }

.cf-scroll { overflow-x: auto; margin: 16px 0 24px; }
.cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cf-table th,
.cf-table td {
  border: 1px solid var(--sand);
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}
.cf-table th:first-child,
.cf-table td:first-child { text-align: left; }
.cf-table thead th { background: var(--sand); font-weight: 600; }
.cf-table tr.cf-total td,
.cf-table tr.cf-total th { font-weight: 650; background: #F3E6C8; }
.cf-table tr.cf-group th {
  background: var(--sand);
  font-weight: 650;
  text-align: left;
  padding-top: 14px;
  font-size: 0.92rem;
}
.cf-table tbody tr:not(.cf-group):nth-child(even) td,
.cf-table tbody tr:not(.cf-group):nth-child(even) th.cf-sticky-col {
  background: rgba(0, 0, 0, 0.02);
}
.cf-sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  min-width: 12rem;
  max-width: 18rem;
}
.cf-table thead .cf-sticky-col { background: var(--sand); }
.cf-table tr.cf-total .cf-sticky-col { background: #F3E6C8; }
.cf-table tr.cf-group .cf-sticky-col { background: var(--sand); }
.bm-section { margin: 0 0 20px; }
.bm-section h2 { font-size: 18px; margin: 0 0 8px; }
.secondary-kpi { margin-top: 12px; }
.results-kpis { margin: 0 0 28px; }
.memo-actions { margin: 18px 0 0; }
.results-base,
.results-sensitivity { margin: 0 0 28px; }
.results-base h2,
.results-sensitivity h2 { font-size: 20px; margin: 0 0 8px; }
.results-verdict {
  margin: 16px 0 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sheet);
}
.results-verdict-ok { border-color: var(--ok); }
.results-verdict-bad { border-color: var(--bad); }
.results-verdict-label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
}
.results-verdict-npv {
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.compare th,
.compare td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sand);
}
.compare thead th { background: var(--sand); font-weight: 600; text-align: left; }
.compare .num { text-align: right; font-variant-numeric: tabular-nums; }
.compare th[scope="row"] { font-weight: 500; text-align: left; }
.sens-whatif { margin: 0 0 16px; }
.sens-form { margin: 0 0 16px; }
.sens-fieldset {
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  margin: 0 0 14px;
  padding: 12px 14px;
}
.sens-fieldset legend { font-weight: 600; padding: 0 6px; }
.sens-checks,
.sens-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.sens-check,
.sens-radio { font-size: 14px; cursor: pointer; }
.sens-step { max-width: 280px; margin-bottom: 14px; }
.sens-metric { display: block; font-weight: 600; }
.sens-metric-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
.sens-chart-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--sheet);
}
.sens-chart { display: block; max-width: 100%; height: auto; }
@media (max-width: 800px) {
  .sheet { margin: 16px; padding: 20px 16px 28px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
