:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #16202a;
  --muted: #627184;
  --line: #dce3ec;
  --accent: #1b6b7a;
  --accent-strong: #0e4d5d;
  --green: #16825d;
  --amber: #a66a00;
  --red: #b42318;
  --blue-soft: #e9f5f7;
  --green-soft: #eaf7f1;
  --amber-soft: #fff4de;
  --red-soft: #fff0ee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.tool-panel,
.section-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-panel {
  padding: 24px;
}

.title-row,
.summary-band,
.search-row,
.reason-columns {
  display: grid;
  gap: 16px;
}

.title-row {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-button {
  min-width: 56px;
  min-height: 36px;
  padding: 0 12px;
  background: #eef2f6;
  color: var(--text);
}

.lang-button.is-active {
  background: var(--text);
  color: white;
}

.search-row {
  grid-template-columns: 1fr auto;
  margin-top: 22px;
}

.search-row input {
  min-height: 52px;
  font-size: 1.05rem;
}

.search-row button {
  min-width: 112px;
  min-height: 52px;
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.result-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.is-hidden {
  display: none;
}

.summary-band {
  grid-template-columns: minmax(120px, 180px) minmax(120px, 180px) 1fr;
  align-items: stretch;
  background: var(--text);
  color: white;
  border-radius: 8px;
  padding: 18px;
}

.summary-band > div {
  min-width: 0;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.summary-band strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1.2;
}

.section-block {
  padding: 20px;
}

.section-block p {
  margin: 0;
  line-height: 1.7;
}

.disclaimer {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.92rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.info-grid div {
  min-width: 0;
  background: white;
  padding: 12px;
}

.info-grid dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.info-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.reason-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 120px 1fr;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.source-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.badge {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.badge.ok,
.badge.cache,
.badge.low,
.badge.no,
.badge.not_found,
.badge.clear {
  background: var(--green-soft);
  color: var(--green);
}

.badge.medium,
.badge.suspicious,
.badge.partial {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.high,
.badge.yes,
.badge.hit,
.badge.listed,
.badge.error {
  background: var(--red-soft);
  color: var(--red);
}

.badge.unavailable,
.badge.not_configured,
.badge.missing,
.badge.skipped,
.badge.unknown {
  background: #eef2f6;
  color: var(--muted);
}

.feedback-form {
  display: grid;
  grid-template-columns: 180px 220px 1fr auto;
  gap: 10px;
  align-items: start;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .title-row,
  .search-row,
  .summary-band,
  .reason-columns,
  .feedback-form,
  .source-item {
    grid-template-columns: 1fr;
  }

  .tool-panel,
  .section-block {
    padding: 16px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    justify-content: start;
  }
}

