﻿:root {
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #0b1720;
  --muted: #465a70;
  --line: #cfdce6;
  --accent: #075766;
  --accent-soft: #e7f5f5;
  --accent-mid: #bfe4e7;
  --success: #0f766e;
  --warning: #8a5a00;
  --warning-soft: #fff5d7;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
button, input { font: inherit; }
a { color: var(--accent); }
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 64px;
}
.hero, .tool-panel, .summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 26px;
}
.eyebrow {
  color: #2f455c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 8px; }
h2 { font-size: 1.35rem; margin-bottom: 8px; }
h3 { font-size: 1.05rem; margin-bottom: 6px; }
.subtitle { color: #30445d; font-size: 1.08rem; margin: 0 0 14px; }
.last-reviewed { color: #53677e; margin: 12px 0; }
.notice {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  margin: 0;
  padding: 12px 14px;
}
.privacy-strip {
  align-items: center;
  background: #eefaf5;
  border: 1px solid #b6e5d5;
  border-radius: 8px;
  color: #064e3b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0 0;
  padding: 11px 14px;
}
.privacy-strip strong { font-weight: 800; }
.section-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head p { color: #3c5168; margin: 0; }
.section-head.compact { align-items: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-button, .secondary-button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
}
.primary-button { background: var(--accent); color: #fff; }
.secondary-button { background: #e8eef4; color: var(--ink); }
.profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-card {
  background: var(--accent-soft);
  border: 1px solid #8ac7d1;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  min-height: 150px;
  padding: 18px;
  text-align: left;
}
.profile-card[aria-pressed="true"] {
  box-shadow: inset 0 0 0 3px rgba(7, 87, 102, 0.22);
  border-color: var(--accent);
}
.profile-card span {
  background: #d9f4e8;
  border-radius: 999px;
  color: #07503e;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 5px 10px;
}
.profile-card p { color: #40556d; margin-bottom: 0; }
.summary-panel {
  display: grid;
  gap: 18px;
}
.summary-panel p { color: #40556d; margin-bottom: 0; }
.summary-main {
  max-width: 760px;
}
.score-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
}
.score-card {
  background: var(--accent-soft);
  border: 1px solid #8ac7d1;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
}
.score-card.secondary { background: #f7fafc; border-left-color: #9cb2c3; }
.score-card.status-card strong { font-size: 1.35rem; }
.score-card span { color: #40556d; display: block; }
.score-card strong { display: block; font-size: 1.8rem; line-height: 1.1; margin-top: 4px; }
.score-card small { color: #40556d; display: block; margin-top: 8px; }
.focus-card {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.focus-card h3 { margin-bottom: 8px; }
.focus-card ul { margin: 0; padding-left: 22px; }
.focus-card li + li { margin-top: 5px; }
.checklist { display: grid; gap: 14px; }
.check-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.check-section-header {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.check-section-header p { color: #40556d; margin: 4px 0 0; }
.check-list { display: grid; gap: 0; }
.check-item {
  align-items: start;
  border-bottom: 1px solid #edf2f7;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 13px 16px;
}
.check-item:last-child { border-bottom: 0; }
.check-item input { margin-top: 4px; width: 18px; height: 18px; }
.check-item strong { display: block; }
.check-item small { color: #52677d; display: block; margin-top: 3px; }
.check-item.is-done { background: #f6fffb; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  background: #eef3f7;
  border-radius: 999px;
  color: #33485e;
  font-size: 0.75rem;
  padding: 3px 8px;
}
.warning-panel {
  border-color: #a8d6dd;
}
.safety-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.source-box, .fine-note {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}
.official-link-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
.official-link-grid a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  display: block;
  font-weight: 700;
  padding: 12px;
  text-decoration: none;
}
.official-link-grid a:hover { text-decoration: underline; }
.plain-list, .source-box ul, .safety-grid ul { padding-left: 22px; }
.toast {
  background: var(--accent);
  border-radius: 999px;
  bottom: 18px;
  color: white;
  left: 50%;
  padding: 10px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 10;
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 20px, 1120px); margin-top: 12px; }
  .hero, .tool-panel, .summary-panel { padding: 18px; }
  .profile-grid, .score-strip, .safety-grid, .official-link-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .actions { margin-top: 14px; }
}

@media print {
  body { background: #fff; }
  .hero, .tool-panel, .summary-panel { box-shadow: none; break-inside: avoid; }
  .profile-grid, .actions, #reset-tool, #copy-summary, #print-tool { display: none; }
  .page-shell { width: auto; margin: 0; }
}
