:root {
  --navy: #0e1b2a;
  --graphite: #2f3542;
  --line: #d9dee8;
  --paper: #f7f9fc;
  --accent: #b68a2e;
  --ok: #1e7f5c;
  --warn: #965f00;
  --bad: #9f2d2d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
nav a { color: var(--navy); text-decoration: none; font-weight: 650; margin-left: 16px; }
.brand { font-weight: 800; letter-spacing: 0.02em; }
main { max-width: 1180px; margin: 0 auto; padding: 34px 24px 70px; }
.hero {
  padding: 46px 0 28px;
  border-bottom: 1px solid var(--line);
}
h1 { font-size: clamp(2.3rem, 4vw, 4.8rem); line-height: 1; margin: 0 0 18px; letter-spacing: 0; }
h2 { font-size: 1.55rem; margin: 36px 0 14px; }
h3 { margin: 20px 0 8px; }
.lede { max-width: 820px; font-size: 1.15rem; color: var(--graphite); }
.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--paper);
  font-size: 0.9rem;
  margin: 10px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.warning { border-left: 4px solid var(--warn); background: #fffaf0; }
.danger { border-left: 4px solid var(--bad); background: #fff7f7; }
.success { border-left: 4px solid var(--ok); background: #f3fbf7; }
label { display: block; margin: 12px 0 6px; font-weight: 650; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
button {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 8px 0 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.secondary { background: #465161; }
pre {
  background: #f3f5f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
  max-height: 460px;
}
.output {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  white-space: pre-wrap;
}
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 9px; vertical-align: top; }
footer { border-top: 1px solid var(--line); color: var(--graphite); padding: 22px 24px; }
@media (max-width: 720px) {
  nav { align-items: flex-start; flex-direction: column; }
  nav a { margin: 0 12px 0 0; display: inline-block; }
}
