:root {
  color-scheme: light;
  --ink: #0b0d12;
  --muted: #6b707a;
  --line: #dfe1e5;
  --accent: #92ff4f;
  --page: #f4f5f6;
  --surface: #ffffff;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100svh;
  padding: 14px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(1100px, 100%);
  min-height: calc(100svh - 28px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(11, 13, 18, .08);
  border-radius: 22px;
  box-shadow: 0 12px 38px rgba(16, 20, 28, .08);
}

.site-header {
  min-height: 88px;
  padding: 0 clamp(24px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 5px;
}

main {
  width: min(950px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) clamp(24px, 6vw, 64px) 72px;
}

h1 {
  margin: 0 0 50px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

h2 {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.3;
}

.data-block { margin-bottom: 40px; }

.data-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.data-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(110px, 23%) 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

dt, dd { margin: 0; }
dt { color: var(--muted); font-size: 15px; }
dd { font-size: 16px; overflow-wrap: anywhere; }

.query-section {
  padding-top: 2px;
  margin-bottom: 42px;
}

.query-form {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 14px;
}

input,
button { font: inherit; }

input {
  min-width: 0;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #cbd0d8;
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input::placeholder { color: #9299a4; }

input:focus {
  border-color: #58b91f;
  outline: none;
  box-shadow: 0 0 0 4px rgba(109, 226, 40, .18);
}

button {
  min-height: 58px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: var(--accent);
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

button:hover { transform: translateY(-1px); background: #82f63b; }
button:active { transform: translateY(0) scale(.99); }
button:disabled { cursor: wait; opacity: .65; transform: none; }

.hint,
.status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.status.is-error { color: var(--danger); }

:focus-visible {
  outline: 3px solid rgba(68, 176, 8, .42);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  body { padding: 0; background: var(--surface); }

  .page {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header { min-height: 72px; padding: 0 24px; }
  .brand { font-size: 20px; letter-spacing: .04em; }

  main { padding: 48px 28px 54px; }
  h1 { margin-bottom: 42px; font-size: 40px; }
  h2 { font-size: 19px; }

  .data-row {
    grid-template-columns: minmax(82px, 34%) 1fr;
    gap: 18px;
  }

  .query-form { grid-template-columns: 1fr; }
  button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
