* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(107, 142, 117, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 15%, rgba(31, 79, 60, 0.16), transparent 55%),
    #fbfcfb;
  color: rgba(31, 41, 55, 0.9);
}

.shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  gap: 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, rgba(47, 93, 72, 0.92), rgba(107, 142, 117, 0.92));
  box-shadow: 0 12px 30px rgba(47, 93, 72, 0.22);
}

.name {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.tagline {
  font-size: 12px;
  color: rgba(31, 41, 55, 0.62);
  margin-top: 2px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggleUi {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.14);
  border: 1px solid rgba(31, 41, 55, 0.12);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition: background 180ms ease, border-color 180ms ease;
}

.toggleDot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(31, 41, 55, 0.16);
  transform: translateX(0);
  transition: transform 180ms ease;
}

.toggle input:checked + .toggleUi {
  background: linear-gradient(90deg, rgba(107, 142, 117, 0.92), rgba(127, 154, 134, 0.92));
  border-color: rgba(31, 41, 55, 0.06);
}

.toggle input:checked + .toggleUi .toggleDot {
  transform: translateX(24px);
}

.toggleText {
  font-weight: 900;
  font-size: 12.5px;
  color: rgba(31, 41, 55, 0.86);
}

.searchCard,
.resultCard {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(31, 41, 55, 0.08);
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.searchTitle {
  font-weight: 900;
  font-size: 14px;
}

.searchSub {
  margin-top: 6px;
  color: rgba(31, 41, 55, 0.6);
  font-size: 12.5px;
}

.searchRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.searchInput {
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  font-weight: 700;
}

.searchInput:focus {
  border-color: rgba(107, 142, 117, 0.6);
  box-shadow: 0 0 0 4px rgba(107, 142, 117, 0.16);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(90deg, #2f5d48, #1f4f3c);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(47, 93, 72, 0.22);
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.hintLine {
  margin-top: 10px;
  color: rgba(31, 41, 55, 0.58);
  font-size: 12px;
  min-height: 16px;
}

.resultHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resultTitle {
  font-weight: 900;
  font-size: 14px;
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(31, 41, 55, 0.12);
  background: rgba(31, 41, 55, 0.05);
}

.pill.loading {
  background: rgba(245, 166, 35, 0.10);
  border-color: rgba(245, 166, 35, 0.26);
  color: rgba(138, 90, 0, 0.92);
}

.pill.ok {
  background: rgba(43, 213, 118, 0.10);
  border-color: rgba(43, 213, 118, 0.28);
  color: rgba(18, 97, 54, 0.92);
}

.pill.warn {
  background: rgba(245, 166, 35, 0.10);
  border-color: rgba(245, 166, 35, 0.26);
  color: rgba(138, 90, 0, 0.92);
}

.pill.idle {
  color: rgba(31, 41, 55, 0.7);
}

.resultBody {
  margin-top: 12px;
}

.placeholder {
  color: rgba(31, 41, 55, 0.6);
  font-size: 12.5px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 10px;
}

.rowK {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: baseline;
}

.k {
  font-weight: 900;
  color: rgba(31, 41, 55, 0.74);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.v {
  font-weight: 800;
  color: rgba(31, 41, 55, 0.9);
}

.footer {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.footerLink {
  color: rgba(31, 41, 55, 0.72);
  font-weight: 900;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
