:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5a6872;
  --line: #d9e0e5;
  --soft: #f5f7f8;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  line-height: 1.55;
}
a { color: inherit; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 22px; font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; }
main { padding: 32px clamp(16px, 4vw, 48px); }
.hero { max-width: 760px; margin-bottom: 28px; }
h1 { font-size: 36px; line-height: 1.15; margin: 0 0 12px; }
.lead, .hero p { color: var(--muted); font-size: 18px; }
.search { display: flex; gap: 8px; max-width: 560px; margin-top: 20px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 110px; }
button, .primary, .visit {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .primary:hover, .visit:hover { background: var(--accent-dark); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.tool-card h2 { margin: 4px 0 8px; font-size: 20px; }
.tool-card h2 a { text-decoration: none; }
.meta { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tags a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 3px 8px;
  text-decoration: none;
  font-size: 13px;
}
.detail, .panel { max-width: 760px; }
.panel.wide { max-width: 920px; }
dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 16px; }
dt { color: var(--muted); }
.section-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
label { display: grid; gap: 6px; margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.error { color: var(--danger); font-weight: 700; }
.danger { background: var(--danger); margin-top: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
@media (max-width: 640px) {
  .topbar, .section-head, .search { flex-direction: column; align-items: stretch; }
  h1 { font-size: 30px; }
}
