.ts-tool-shell {
  --ts-ink: #0b132b;
  --ts-ink-2: #121d3a;
  --ts-cloud: #f7f9fc;
  --ts-azure: #2563eb;
  --ts-teal: #0f9f8f;
  --ts-amber: #f59e0b;
  --ts-red: #dc3545;
  --ts-azure-light: #8bb4ff;
  --ts-teal-light: #67e8d0;
  --ts-amber-light: #fbbf24;
  --ts-red-light: #ff8994;
  --bg: var(--ts-ink);
  --bg2: var(--ts-ink-2);
  --surface: var(--ts-ink-2);
  --surface2: var(--ts-ink);
  --accent: var(--ts-azure);
  --accent-bright: var(--ts-azure);
  --accent-dim: rgba(37, 99, 235, 0.13);
  --accent-mid: rgba(37, 99, 235, 0.34);
  --accent-glow: rgba(37, 99, 235, 0.22);
  --critical: var(--ts-red-light);
  --critical-dim: rgba(220, 53, 69, 0.13);
  --high: var(--ts-red-light);
  --high-dim: rgba(220, 53, 69, 0.13);
  --warn: var(--ts-amber-light);
  --warn-dim: rgba(245, 158, 11, 0.13);
  --pass: var(--ts-teal-light);
  --pass-dim: rgba(15, 159, 143, 0.13);
  --info: var(--ts-azure-light);
  --info-dim: rgba(37, 99, 235, 0.13);
  --blue: var(--ts-azure);
  --blue-dim: rgba(37, 99, 235, 0.13);
  --text: var(--ts-cloud);
  --muted: rgba(247, 249, 252, 0.68);
  --border: rgba(247, 249, 252, 0.12);
  background: var(--ts-ink);
  color: var(--ts-cloud);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ts-tool-shell :where(button, input, select, textarea) {
  font-family: inherit !important;
}

.ts-tool-shell::before {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
}

.ts-tool-shell > nav {
  background: rgba(11, 19, 43, 0.94);
  border-bottom-color: rgba(247, 249, 252, 0.12);
}

.ts-tool-shell .nav-logo rect {
  fill: var(--ts-teal) !important;
}

.ts-tool-shell .nav-logo path {
  stroke: var(--ts-ink) !important;
}

.ts-tool-shell .btn-nav,
.ts-tool-shell .btn-connect,
.ts-tool-shell .btn-sm,
.ts-tool-shell .scan-btn,
.ts-tool-shell .btn-primary,
.ts-tool-shell .btn-cta {
  background: var(--ts-azure);
  color: var(--ts-cloud);
  box-shadow: none;
}

.ts-tool-shell .btn-nav:hover,
.ts-tool-shell .btn-connect:hover,
.ts-tool-shell .btn-sm:hover,
.ts-tool-shell .scan-btn:hover,
.ts-tool-shell .btn-primary:hover,
.ts-tool-shell .btn-cta:hover {
  background: #1848b8;
  opacity: 1;
  transform: translateY(-1px);
}

.ts-tool-shell .hero-badge,
.ts-tool-shell .nav-badge,
.ts-tool-shell .alt-you,
.ts-tool-shell .section-eyebrow,
.ts-tool-shell .cat-card-name,
.ts-tool-shell .trust-item span,
.ts-tool-shell .step-num,
.ts-tool-shell .cta-proof span::before {
  color: var(--ts-teal);
}

.ts-tool-shell .hero-badge,
.ts-tool-shell .nav-badge {
  background: rgba(15, 159, 143, 0.13);
  border-color: rgba(15, 159, 143, 0.34);
}

.ts-tool-shell .step-num {
  background: var(--ts-teal);
  color: var(--ts-ink);
}

.ts-tool-shell .screen,
.ts-tool-shell main,
.ts-tool-shell .section,
.ts-tool-shell .hero {
  color: var(--ts-cloud);
}

.ts-tool-shell .cat-card,
.ts-tool-shell .score-card,
.ts-tool-shell .run-cat,
.ts-tool-shell .finding,
.ts-tool-shell .results-cta,
.ts-tool-shell .scan-card,
.ts-tool-shell .stack-card,
.ts-tool-shell .cat-tile {
  border-color: rgba(247, 249, 252, 0.12);
  box-shadow: none;
}

.ts-tool-shell .tile-orange,
.ts-tool-shell .tile-yellow {
  --tile-color: var(--ts-amber);
  --tile-dim: rgba(245, 158, 11, 0.1);
  --tile-border: rgba(245, 158, 11, 0.28);
}

.ts-tool-shell .tile-blue,
.ts-tool-shell .tile-purple {
  --tile-color: var(--ts-azure);
  --tile-dim: rgba(37, 99, 235, 0.1);
  --tile-border: rgba(37, 99, 235, 0.28);
}

.ts-tool-shell .tile-teal,
.ts-tool-shell .tile-green {
  --tile-color: var(--ts-teal);
  --tile-dim: rgba(15, 159, 143, 0.1);
  --tile-border: rgba(15, 159, 143, 0.28);
}

.ts-tool-shell .tile-pink {
  --tile-color: var(--ts-red);
  --tile-dim: rgba(220, 53, 69, 0.1);
  --tile-border: rgba(220, 53, 69, 0.28);
}

.ts-tool-shell .icon-pass,
.ts-tool-shell .badge-pass,
.ts-tool-shell .si-good {
  color: var(--ts-teal-light);
}

.ts-tool-shell .icon-warn,
.ts-tool-shell .badge-warn,
.ts-tool-shell .si-mid {
  color: var(--ts-amber-light);
}

.ts-tool-shell .icon-fail,
.ts-tool-shell .badge-fail,
.ts-tool-shell .tag-critical {
  color: var(--ts-red-light);
}

.ts-tool-shell .icon-info,
.ts-tool-shell .badge-info {
  color: var(--ts-azure-light);
}

.ts-tool-shell .scanner-badge,
.ts-tool-shell .scan-hint a,
.ts-tool-shell .stack-card.stack-ts .stack-card-label,
.ts-tool-shell .finding-fix a,
.ts-tool-shell .connect-sub a,
.ts-tool-shell .nav-back:hover,
.ts-tool-shell .btn-secondary:hover {
  color: var(--ts-azure-light);
}

.ts-tool-shell .btn-cta-ghost {
  min-height: 44px;
}

.ts-tool-shell .check-icon svg {
  stroke: currentColor !important;
}

.ts-tool-shell :where(a, button, input):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ts-azure);
}

.ts-tool-shell--external-scan .domain-input {
  border-color: rgba(247, 249, 252, 0.48) !important;
}

.ts-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ts-tool-conversion,
.ts-tool-footer {
  position: relative;
  z-index: 2;
}

.ts-tool-conversion {
  padding: 72px 24px;
  background: var(--ts-cloud);
  color: var(--ts-ink);
}

.ts-tool-conversion__inner,
.ts-tool-footer__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.ts-tool-conversion__inner {
  padding: 48px;
  border-radius: 24px;
  background: var(--ts-ink-2);
  color: var(--ts-cloud);
  box-shadow: 0 22px 55px rgba(11, 19, 43, 0.16);
}

.ts-tool-conversion__eyebrow {
  margin: 0 0 10px;
  color: var(--ts-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ts-tool-conversion h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ts-cloud);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ts-tool-conversion h2 + p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(247, 249, 252, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.ts-tool-conversion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ts-tool-conversion__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.ts-tool-conversion__primary {
  background: var(--ts-azure);
  color: var(--ts-cloud);
}

.ts-tool-conversion__primary:hover {
  background: #1848b8;
}

.ts-tool-conversion__secondary {
  border: 1px solid rgba(247, 249, 252, 0.24);
  color: var(--ts-cloud);
}

.ts-tool-conversion__secondary:hover {
  border-color: var(--ts-teal);
}

.ts-tool-footer {
  padding: 42px 24px;
  border-top: 1px solid rgba(247, 249, 252, 0.12);
  background: var(--ts-ink);
  color: rgba(247, 249, 252, 0.68);
}

.ts-tool-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px 40px;
}

.ts-tool-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ts-cloud);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.ts-tool-footer__brand span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--ts-teal);
  color: var(--ts-ink);
  font-size: 12px;
  letter-spacing: -0.03em;
}

.ts-tool-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.ts-tool-footer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(247, 249, 252, 0.78);
  font-size: 14px;
  text-decoration: none;
}

.ts-tool-footer__links a:hover {
  color: var(--ts-cloud);
}

.ts-tool-footer__links button {
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(247, 249, 252, 0.78);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ts-tool-footer__links button:hover {
  color: var(--ts-cloud);
}

.ts-tool-footer p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 249, 252, 0.1);
  font-size: 12px;
  line-height: 1.6;
}

.ts-tool-shell .finding-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ts-tool-shell .finding { cursor: default; }
.ts-tool-shell .finding-name,
.ts-tool-shell .finding-detail { display: block; }

.ts-tool-shell .consent-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  width: min(720px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: #081022;
  box-shadow: 0 24px 70px rgba(5, 11, 28, 0.42);
  color: #fff;
}

.ts-tool-shell .consent-banner[hidden],
.ts-tool-shell .consent-dialog:not([open]) { display: none; }
.ts-tool-shell .consent-banner h2 { margin: 0; color: #fff; font-size: 20px; }
.ts-tool-shell .consent-banner p { margin: 8px 0 4px; color: #c3cde0; font-size: 14px; line-height: 1.55; }
.ts-tool-shell .consent-banner a,
.ts-tool-shell .consent-button-link { color: #b9fff3; }
.ts-tool-shell .consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ts-tool-shell .consent-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.ts-tool-shell .consent-button-primary { border-color: var(--ts-azure); background: var(--ts-azure); color: #fff; }
.ts-tool-shell .consent-button-link { border-color: transparent; }
.ts-tool-shell .consent-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #0b132b;
  box-shadow: 0 30px 90px rgba(5, 11, 28, 0.4);
}
.ts-tool-shell .consent-dialog::backdrop { background: rgba(5, 11, 28, 0.72); backdrop-filter: blur(4px); }
.ts-tool-shell .consent-dialog-card { padding: 28px; }
.ts-tool-shell .consent-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.ts-tool-shell .consent-dialog-header h2 { margin: 0; color: #0b132b; font-size: 28px; }
.ts-tool-shell .consent-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  background: #fff;
  color: #516078;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.ts-tool-shell .consent-option { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 18px 0; border-top: 1px solid #dce3ed; }
.ts-tool-shell .consent-option strong { display: block; color: #0b132b; font-size: 15px; }
.ts-tool-shell .consent-option p { margin: 5px 0 0; color: #516078; font-size: 13px; line-height: 1.55; }
.ts-tool-shell .consent-option-toggle { cursor: pointer; }
.ts-tool-shell .consent-option-toggle input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--ts-azure); }
.ts-tool-shell .consent-always-on { color: #096f64; font-size: 12px; font-weight: 850; white-space: nowrap; }
.ts-tool-shell .consent-dialog-actions { display: flex; justify-content: flex-end; padding-top: 20px; border-top: 1px solid #dce3ed; }
.ts-tool-shell .consent-dialog .consent-button { color: #0b132b; border-color: #dce3ed; }
.ts-tool-shell .consent-dialog .consent-button-primary { color: #fff; border-color: var(--ts-azure); }

@media (max-width: 720px) {
  .ts-tool-shell--browser-checker > nav {
    height: 64px;
    padding: 0 12px;
    gap: 10px;
  }

  .ts-tool-shell--browser-checker .nav-right > a:not(.btn-nav) { display: none; }
  .ts-tool-shell--browser-checker .nav-right { gap: 8px; }
  .ts-tool-shell--browser-checker .btn-nav { padding: 0.45rem 0.7rem; font-size: 0.75rem; }

  .ts-tool-shell .consent-banner {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
  .ts-tool-shell .consent-actions { justify-content: flex-start; }
  .ts-tool-shell .consent-actions .consent-button { flex: 1 1 auto; }
  .ts-tool-shell .consent-dialog-card { padding: 22px; }
  .ts-tool-shell .consent-option { align-items: flex-start; }

  .ts-tool-conversion {
    padding: 48px 20px;
  }

  .ts-tool-conversion__inner {
    padding: 32px 24px;
  }

  .ts-tool-conversion__actions a {
    width: 100%;
  }

  .ts-tool-footer__inner {
    grid-template-columns: 1fr;
  }

  .ts-tool-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .ts-tool-shell--browser-checker .nav-badge { display: none; }
  .ts-tool-shell--browser-checker .nav-logo-text { font-size: 0.85rem; }
}

@media print {
  .ts-tool-conversion,
  .ts-tool-footer {
    display: none !important;
  }
}
