:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #dde2e8;
  --brand: #1f3a5f;
  --brand-2: #2f6fb3;
  --pass: #1d7a46;
  --pass-bg: #e6f4ec;
  --fail: #b3261e;
  --fail-bg: #fbeaea;
  --warn-bg: #fff6e0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--brand-2); }
header.site {
  background: var(--brand);
  color: #fff;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
header.site a.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
header.site nav a { color: #dce6f2; text-decoration: none; margin-left: 16px; font-size: .95rem; }
header.site nav a:hover { color: #fff; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
main { padding: 28px 0 48px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 18px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tool-card { display: block; text-decoration: none; color: var(--text); }
.tool-card:hover { border-color: var(--brand-2); }
.tool-card h3 { margin: 0 0 6px; color: var(--brand); }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select {
  width: 100%; padding: 10px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
button.primary, a.button {
  display: inline-block; background: var(--brand-2); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 16px;
}
button.primary:hover, a.button:hover { background: var(--brand); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
th { background: #eef1f5; }
.table-scroll { overflow-x: auto; }
.pass { color: var(--pass); font-weight: 700; }
.fail { color: var(--fail); font-weight: 700; }
.banner { border-radius: 10px; padding: 16px; margin: 16px 0; font-size: 1.05rem; }
.banner.pass { background: var(--pass-bg); }
.banner.fail { background: var(--fail-bg); }
.note { background: var(--warn-bg); border-radius: 8px; padding: 12px 14px; font-size: .9rem; }
.cta { background: #eaf2fb; border: 1px solid #c9dcf1; border-radius: 10px; padding: 18px; margin-top: 18px; }
.cta h3 { margin-top: 0; }
.hidden { display: none; }
footer.site { border-top: 1px solid var(--line); padding: 20px 0 36px; color: var(--muted); font-size: .85rem; }
footer.site a { color: var(--muted); }
.row > div, .grid > * { min-width: 0; }
h1 { overflow-wrap: break-word; }
html, body { max-width: 100%; overflow-x: hidden; }
table.week td, table.week th { font-size: .85rem; vertical-align: top; }
table.week td.t { font-weight: 600; color: var(--brand); }
.focus { background: #f2f4f7; padding: 8px 12px; border-radius: 6px; }
.logo .tag { display: block; font-size: .72rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #9fc2e8; margin-top: 2px; }
