* { box-sizing: border-box; }
:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f6f7f9;
}
body { margin: 0; }
.container { max-width: 920px; margin: 0 auto; padding: 40px 20px 56px; }
h1 { margin-bottom: 8px; font-size: 2rem; }
h2 { margin: 0; font-size: 1.2rem; }
.lead { margin-top: 0; color: #5b6472; line-height: 1.6; }

.mode-switch {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.mode-button {
  background: #e9edf1;
  color: #222;
  border: 1px solid #d7dce1;
}
.mode-button.active {
  background: #222;
  color: #fff;
  border-color: #222;
}
.beta {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: .72rem;
  background: rgba(255,255,255,.22);
}
.mode-button:not(.active) .beta {
  background: #fff3cd;
}

.panel {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.mode-notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f3f5f7;
  color: #59636f;
  line-height: 1.45;
  font-size: .92rem;
}
label { display: block; font-weight: 650; margin-bottom: 8px; }
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #ccd2d8;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
}
textarea:focus { outline: 2px solid #9ec5fe; border-color: #6ea8fe; }
.actions, .result-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.result-header { justify-content: space-between; margin-top: 0; margin-bottom: 12px; }
button {
  border: 0;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 650;
  cursor: pointer;
  background: #222;
  color: #fff;
}
button.secondary {
  background: #eef1f4;
  color: #222;
}
button:hover { filter: brightness(.96); }

.results.empty { color: #7a838f; }
.result-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) 135px;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #edf0f2;
  align-items: start;
}
.result-row:first-child { border-top: 0; }
.name, .output { word-break: break-word; }
.output { font-weight: 700; }
.badge {
  display: inline-block;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1f4;
  font-size: .82rem;
  white-space: nowrap;
}
.badge.verified { background: #e9f7ef; }
.badge.auto { background: #fff3cd; }
.badge.notfound { background: #f3f4f6; }
.note { margin-top: 5px; color: #6b7280; font-size: .84rem; }

footer { color: #7a838f; font-size: .9rem; margin-top: 20px; text-align: center; }

@media (max-width: 700px) {
  .result-row { grid-template-columns: 1fr; gap: 5px; }
  .mode-switch { flex-direction: column; }
  .mode-button { width: 100%; }
}
