:root {
  --web-red: #b42335;
  --web-green: #18724d;
  --web-amber: #a15c07;
}

[hidden] {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-switch {
  height: 36px;
  display: inline-grid;
  grid-template-columns: 42px 42px;
  border: 1px solid var(--edge-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.language-switch button {
  width: 42px;
  min-width: 42px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--edge);
  border-radius: 0;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.language-switch button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.web-check-band {
  border-bottom: 1px solid var(--edge);
  background: var(--white);
}

.web-check-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 50px 0 34px;
}

.web-check-intro {
  max-width: 840px;
  margin-bottom: 28px;
}

.web-check-intro h1 {
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: 52px;
  font-weight: 760;
  line-height: 1.04;
}

.web-check-intro > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

.web-checker {
  padding: 26px;
  border: 1px solid var(--edge-strong);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 47, 54, 0.06);
}

.web-checker label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.web-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: 10px;
}

.web-url-row input,
.web-checker button {
  min-height: 48px;
  border-radius: 6px;
  font: inherit;
}

.web-url-row input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--edge-strong);
  background: var(--white);
  color: var(--ink);
}

.web-url-row input:focus {
  outline: 3px solid rgba(7, 139, 150, 0.17);
  border-color: var(--teal);
}

.web-checker button {
  padding: 0 18px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  font-weight: 750;
}

.web-checker button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.web-checker button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.web-checker button.web-secondary {
  background: var(--white);
  color: var(--teal-dark);
}

.web-checker button.web-secondary:hover {
  background: var(--paper);
}

.web-signin-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
}

.web-signin-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

#google-button {
  min-height: 1px;
  margin-top: 12px;
}

.web-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.web-status[data-tone="error"] {
  color: var(--web-red);
}

.web-status[data-tone="success"] {
  color: var(--web-green);
}

.web-queue-status {
  margin-top: 10px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 14px;
}

.web-result {
  margin-top: 38px;
  padding: 30px 0 0;
  border-top: 1px solid var(--edge-strong);
  min-width: 0;
  overflow-wrap: anywhere;
}

.web-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.web-result-head > div,
.web-result-meta,
.web-audit,
.web-findings,
.web-finding,
.web-finding p {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.web-result-label {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.web-result h2 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.2;
}

.web-score {
  flex: 0 0 94px;
  min-height: 68px;
  display: grid;
  place-items: center;
  border-left: 4px solid var(--teal);
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.web-result-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.web-audit {
  max-width: 840px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.web-findings {
  margin-top: 28px;
}

.web-finding {
  padding: 20px 0 20px 18px;
  border-top: 1px solid var(--edge);
  border-left: 3px solid var(--web-red);
}

.web-finding:first-child {
  border-top: 0;
}

.web-finding h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.web-finding p {
  margin: 7px 0 0;
  line-height: 1.55;
}

.web-finding .excerpt {
  color: var(--ink-soft);
}

.web-finding .why {
  color: var(--muted);
  font-style: italic;
}

.web-finding[data-severity="medium"] {
  border-left-color: var(--web-amber);
}

.web-finding[data-severity="low"] {
  border-left-color: var(--web-green);
}

.web-empty-findings {
  padding: 18px 0;
  border-top: 1px solid var(--edge);
  color: var(--muted);
}

.web-privacy-note {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.product-title {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 84px;
  font-weight: 760;
  line-height: 0.98;
}

@media (max-width: 900px) {
  .header-actions {
    gap: 10px;
  }

  .product-title {
    font-size: 68px;
  }
}

@media (max-width: 620px) {
  .header-actions {
    gap: 7px;
  }

  .language-switch {
    grid-template-columns: 37px 37px;
  }

  .language-switch button {
    width: 37px;
    min-width: 37px;
  }

  .header-download {
    min-width: 0;
    padding: 0 12px;
  }

  .web-check-inner {
    width: min(calc(100% - 28px), var(--content));
    padding: 32px 0 26px;
  }

  .web-check-intro {
    margin-bottom: 22px;
  }

  .web-check-intro h1 {
    font-size: 36px;
  }

  .web-check-intro > p {
    font-size: 16px;
  }

  .web-checker {
    padding: 20px 16px;
  }

  .web-url-row {
    grid-template-columns: 1fr;
  }

  .web-result {
    margin-top: 30px;
  }

  .web-score {
    flex-basis: 76px;
    font-size: 29px;
  }

  .product-title {
    font-size: 52px;
  }
}

@media (max-width: 430px) {
  .header-download {
    display: none;
  }
}
