:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #d8d8d8;
  --dark: #000000;
  --shadow: 0 18px 45px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--dark); color: #fff; padding: 28px 0; }
.nav, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(32px, 5vw, 58px); letter-spacing: -0.06em; line-height: 0.95; }
h2 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -0.075em; line-height: 0.92; margin-bottom: 22px; }
h3 { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 8px; }
code { background: #eee; border: 1px solid #ddd; border-radius: 6px; padding: 1px 5px; }
.eyebrow { color: #999; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; margin-bottom: 8px; }
.nav-link, .site-footer a { color: inherit; text-decoration: none; opacity: 0.75; }
.nav-link:hover, .site-footer a:hover { opacity: 1; }
.hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: stretch; padding: 64px 0 28px; }
.hero p, .notes li, .hint, #resultMeta, .json-status { color: var(--muted); line-height: 1.7; }
.status-card, .panel, .results, .notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.status-card { padding: 26px; align-self: center; }
.status-dot { display: inline-block; width: 12px; height: 12px; background: #111; border-radius: 50%; margin-right: 8px; }
.panel { padding: 24px; margin: 18px 0; }
.notice { box-shadow: none; border-style: dashed; }
label { display: block; font-weight: 700; margin-bottom: 10px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: #fff;
  color: #111;
}
button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
button:hover { transform: translateY(-1px); }
summary { cursor: pointer; font-weight: 700; }
.manual-grid { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 18px; }
.message {
  border-radius: 18px;
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.message.error { border-color: #111; color: #111; }
.hidden { display: none; }
.results { margin: 22px 0; overflow: hidden; }
.result-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.range-box { background: #0d0d0d; color: #f7f7f7; padding: 22px; overflow: auto; }
pre { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.mapping-table { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mapping-row { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: #fafafa; }
.mapping-row strong { display: block; margin-bottom: 4px; }
.notes { padding: 24px; margin: 24px 0 56px; }
.site-footer { background: #000; color: #aaa; padding: 24px 0; }
@media (max-width: 780px) {
  .hero, .input-row, .manual-grid, .mapping-table { grid-template-columns: 1fr; }
  .result-header { display: block; }
  .button-row { margin-top: 18px; }
}
