:root {
  --ink: #15233a;
  --muted: #5b6b82;
  --line: #d9e2ec;
  --bg: #f5f8fb;
  --card: #ffffff;
  --accent: #0b6e6e;
  --high: #b42318;
  --medium: #b54708;
  --low: #067647;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; font-size: 19px; color: var(--accent); text-decoration: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 13px;
}
.chip-guest { background: #e7f6f2; color: var(--accent); }

.wrap { max-width: 960px; margin: 32px auto; padding: 0 20px 40px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 19px; margin: 24px 0 8px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
.lead { font-size: 18px; color: var(--muted); max-width: 700px; }
.small { font-size: 13px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: 12px; color: var(--accent); font-weight: 700; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; }

.hero { padding: 28px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }

.button, .link-button {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.button.primary { background: var(--accent); color: #fff; }
.button.secondary { background: #fff; color: var(--accent); border-color: var(--accent); }
.small-button { padding: 9px 16px; background: var(--accent); color: #fff; }
.link-button { background: none; color: var(--accent); padding: 6px 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card p { margin: 6px 0; color: var(--muted); }
.narrow { max-width: 560px; }
.notice { border-left: 4px solid var(--accent); background: #e7f6f2; padding: 14px 18px; border-radius: 8px; }

.flash { background: #fff7e6; border: 1px solid #f2d08a; border-radius: 8px; padding: 10px 16px; }

.sample-bar label { font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
select, input {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
fieldset.field { border: 1px solid var(--line); border-radius: 8px; }
legend { font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 15px; }

.result-card { border-top: 5px solid var(--line); }
.result-card.risk-high { border-top-color: var(--high); }
.result-card.risk-medium { border-top-color: var(--medium); }
.result-card.risk-low { border-top-color: var(--low); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.risk-high .badge, td.risk-high { background: #fee4e2; color: var(--high); }
.risk-medium .badge, td.risk-medium { background: #fef0c7; color: var(--medium); }
.risk-low .badge, td.risk-low { background: #dcfae6; color: var(--low); }
.recommendation { font-size: 18px; font-weight: 600; }

.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
