#ai-visibility-check {
  color: #171514;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aiv-shell {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem;
  border: 1px solid #dccfbc;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 22px 52px rgba(72, 54, 32, 0.1);
}

.aiv-copy h2 {
  max-width: 780px;
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.03;
}

.aiv-copy p,
.aiv-note,
.aiv-live p,
.aiv-live-result p {
  color: #3a342e;
}

.aiv-eyebrow {
  margin: 0 0 0.8rem;
  color: #7d5127;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.aiv-form label,
.aiv-fields label {
  display: grid;
  gap: 0.35rem;
  color: #675f55;
  font-size: 0.84rem;
  font-weight: 800;
}

.aiv-row,
.aiv-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.aiv-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aiv-form input,
.aiv-fields input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdbb9f;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: #fffdf8;
  color: #171514;
  font: inherit;
}

.aiv-form button,
.aiv-live button,
.aiv-book {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: #171514;
  color: #fffdf8;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.aiv-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.aiv-results section,
.aiv-live,
.aiv-live-result {
  padding: 1rem;
  border-radius: 8px;
  background: #f4ede2;
}

.aiv-results h3,
.aiv-live h3,
.aiv-live-result h3 {
  margin: 0 0 0.8rem;
}

.aiv-results ul,
.aiv-competitors {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiv-results li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.aiv-results strong,
.aiv-results em,
.aiv-results small {
  display: block;
}

.aiv-results em,
.aiv-results small {
  color: #675f55;
  font-style: normal;
}

.aiv-status {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  color: #fffdf8;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.aiv-pass { background: #5e7367; }
.aiv-warn { background: #b77a38; }
.aiv-fail { background: #b76345; }
.aiv-info { background: #3f6571; }

.aiv-live {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.aiv-live-result {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.aiv-live-result details {
  border-top: 1px solid #dccfbc;
  padding: 0.8rem 0;
}

.aiv-live-result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0.7rem 0 0;
  color: #3a342e;
}

.aiv-error {
  color: #8f3929;
  font-weight: 800;
}

.aiv-fallback {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #dccfbc;
  background: #f4ede2;
}

.aiv-fallback-lead {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #171514;
}

.aiv-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.aiv-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.aiv-book-alt {
  background: #fffdf8;
  color: #171514;
  border: 1px solid #171514;
}

@media (max-width: 760px) {
  .aiv-row,
  .aiv-fields,
  .aiv-results {
    grid-template-columns: 1fr;
  }
}
