:root {
  color-scheme: dark;
  --bg: #0c1015;
  --panel: #141b23;
  --line: #29333e;
  --text: #e6edf3;
  --muted: #a3b1bf;
  --accent: #a9edbd;
  --warm: #ffd28b;
  font:
    16px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 0%, #16302b 0, transparent 40%), var(--bg);
  color: var(--text);
}
header {
  max-width: 1160px;
  margin: auto;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--accent);
}
.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.tag,
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}
.hero {
  padding: 55px 0 25px;
}
.recognition {
  box-sizing: border-box;
  width: 100%;
  margin: 25px 0 0;
  padding: 18px 20px;
  color: #86efac;
  background: #123326;
  border: 1px solid #287449;
  border-radius: 7px;
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.recognition.unavailable {
  color: var(--muted);
  background: transparent;
  border-color: var(--muted);
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 20px 0 25px;
  font-weight: 650;
}
h1 span {
  color: var(--accent);
}
.intro {
  font-size: 1.1rem;
  max-width: 680px;
  color: #c7d2dc;
}
.notice {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 760px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  align-items: flex-start;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.page-search { flex: 1 1 290px; min-width: 0; }
.search-entry, .search-navigation { display: flex; gap: 6px; align-items: center; }
.search-entry input[type="search"] { min-width: 0; width: 100%; font-size: 0.88rem; }
#search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-navigation { margin-top: 6px; color: var(--muted); font-size: 0.76rem; }
.search-navigation span { flex: 1; }
.search-navigation button { padding: 3px 10px; }
mark { color: #122218; background: #b1f0b8; border-radius: 2px; }
.result.search-current { outline: 2px solid var(--accent); outline-offset: 3px; }
.result { scroll-margin-top: 24px; }
#search-empty { color: var(--muted); padding: 18px 0; }
button,
.button,
select,
input {
  font: inherit;
  border-radius: 7px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0f2118;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
}
.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
button:hover,
.button:hover {
  filter: brightness(1.15);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible,
select:focus-visible,
.button:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 25px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.summary > div {
  padding: 17px 24px;
  border-right: 1px solid var(--line);
}
.summary > div:last-child {
  border: 0;
}
.summary strong {
  font-size: 2rem;
  display: block;
  line-height: 1.3;
}
.summary span {
  font-size: 0.8rem;
  color: var(--muted);
}
#progress,
#saved {
  color: var(--accent);
  font-size: 0.85rem;
}
.identity {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 22px;
  margin: 25px 0;
}
.identity span,
.identity small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.identity code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: var(--accent);
  margin: 8px 0;
}
.limits {
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.limits summary {
  cursor: pointer;
  color: var(--text);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 30px 0 20px;
}
.toolbar label {
  font-size: 0.8rem;
  color: var(--muted);
}
input[type="search"],
select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
}
input[type="search"] {
  flex: 1;
  min-width: 160px;
}
h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--accent);
}
.result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 9px;
  overflow: hidden;
}
.result summary {
  padding: 14px 17px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.title {
  flex: 1;
  overflow-wrap: anywhere;
}
.probe-id {
  font-size: 0.7rem;
  color: var(--muted);
}
.badge {
  font-size: 0.7rem;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--warm);
  white-space: nowrap;
}
.badge.ok {
  color: var(--accent);
}
.badge.pending {
  color: var(--muted);
}
.result pre {
  margin: 0;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  max-height: 480px;
  overflow: auto;
}
.result p {
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.result button {
  margin: 0 18px 15px;
  font-size: 0.8rem;
  padding: 6px 12px;
}
#comparison {
  font-size: 0.85rem;
  color: var(--warm);
}
.changed {
  border-color: var(--warm);
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 25px 0 45px;
  margin-top: 35px;
}
@media (max-width: 600px) {
  main {
    padding: 0 17px;
  }
  header {
    padding: 20px 17px;
  }
  .tag {
    display: none;
  }
  .hero {
    padding-top: 30px;
  }
  .summary > div {
    padding: 14px 10px;
  }
  .summary strong {
    font-size: 1.6rem;
  }
  .summary span {
    font-size: 0.66rem;
  }
  .result summary {
    flex-wrap: wrap;
  }
  .title {
    flex-basis: 70%;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar label {
    width: 100%;
  }
  .identity {
    padding: 15px;
  }
  button,
  .button {
    padding: 10px 13px;
  }
}
