:root {
  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --surface-muted: #EDF1F3;
  --border: #DDE2E6;
  --border-strong: #B9C1C8;
  --accent: #146C7A;
  --accent-bg: #E4F1F3;
  --accent-text: #0E4A54;
  --text-primary: #1E2428;
  --text-secondary: #5B6670;
  --text-muted: #8A939B;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 100vh;
}

.header { margin: 4px 0 16px; }
.eyebrow { font-size: 12px; color: var(--text-muted); margin: 0 0 2px; }
h1 { font-size: 19px; font-weight: 600; margin: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent-text);
}

.stack { display: flex; flex-direction: column; gap: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.card.option:active { border-color: var(--border-strong); }
.card.selected { border: 1.5px solid var(--accent); }
.card.disabled { cursor: default; opacity: 0.55; display: flex; align-items: center; justify-content: space-between; }

.radio-row { display: flex; align-items: flex-start; gap: 10px; }
.radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.radio-dot.selected { border-color: var(--accent); }
.radio-dot-inner { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.radio-text { flex: 1; }
.option-title { font-size: 14.5px; font-weight: 500; margin: 0; }
.option-label { font-size: 14.5px; font-weight: 500; }
.option-hint { font-size: 13px; color: var(--text-secondary); margin: 3px 0 0; line-height: 1.5; }
.muted { font-weight: 400; color: var(--text-secondary); }

.badge { font-size: 11px; color: var(--text-muted); background: var(--surface-muted); padding: 2px 8px; border-radius: 20px; }

.group-label { font-size: 12px; color: var(--text-muted); margin: 12px 0 8px 2px; }

.note {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--accent-bg); color: var(--accent-text);
  border-radius: var(--radius); padding: 10px 12px; font-size: 13px; line-height: 1.5;
}
.note i { margin-top: 1px; }

.expand { margin-top: 8px; padding-left: 28px; }
.expand-toggle {
  font-size: 12.5px; color: var(--accent); background: none; border: none; padding: 2px 0;
  cursor: pointer; text-decoration: underline;
}
.expand ul { margin: 8px 0 0; padding-left: 16px; }
.expand li { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.check-row span { font-size: 14px; }

select, input[type="text"] {
  margin-top: 8px;
  font-size: 13px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--surface);
  color: var(--text-primary);
}
.inline-fields { display: flex; gap: 8px; margin-top: 8px; }

.risk-table { width: 100%; font-size: 11px; border-collapse: collapse; margin-top: 8px; }
.risk-table th, .risk-table td { padding: 5px 4px; text-align: left; border-bottom: 1px solid var(--border); }
.risk-table th { color: var(--text-muted); font-weight: 500; }

.result-block { margin-top: 8px; }
.result-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; font-size: 14px; line-height: 1.6; margin-bottom: 12px;
}

.nav-row { display: flex; gap: 10px; margin-top: 20px; }
.primary-btn, .secondary-btn {
  flex: 1; height: 44px; border-radius: var(--radius); font-size: 14.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer;
}
.primary-btn { background: var(--accent); color: #fff; }
.primary-btn:active { opacity: 0.85; }
.secondary-btn { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border); }

.result-block .primary-btn { width: 100%; }
