/* Shared connection tools. Existing documentation and provider layouts retain their styles. */
.website-check-panel {
  background: #fff;
  border: 1px solid #cddcf1;
  border-radius: 14px;
  padding: 26px;
}
.website-check-panel label {
  display: block;
  font-weight: 650;
  margin-bottom: 10px;
}
.website-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.website-input-row input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #bacbdf;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdff;
  font: 16px var(--mono);
}
.website-input-row button {
  white-space: nowrap;
}
.website-input-row input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.website-error {
  color: #a82b3a;
  font-size: 14px;
}
.website-result {
  border-top: 1px solid #dbe4ed;
  margin-top: 22px;
  padding-top: 22px;
}
.website-result-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.website-result[data-status='responded'] h2 {
  color: #176748;
}
.website-result[data-status='running'] h2 {
  color: var(--accent);
}
.website-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.website-metrics dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.website-metrics dd {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.device-check {
  margin: 28px 0;
  scroll-margin-top: 20px;
  border: 1px solid #dbe4ed;
  border-radius: 12px;
  padding: 20px;
}
.device-check > summary {
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
}
.device-check > summary span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
@media (max-width: 600px) {
  .website-check-panel {
    padding: 18px;
  }
  .website-input-row input {
    flex-basis: 100%;
  }
  .website-input-row .button-primary {
    flex: 1;
  }
  .website-metrics {
    gap: 16px;
  }
  .website-metrics dd {
    font-size: 15px;
  }
  .device-check {
    padding: 16px;
  }
  .device-check > summary span {
    display: block;
    margin: 6px 0 0;
  }
}
body {
  background: #f5f8fc;
}
.tool-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  border-bottom: 1px solid #dbe4ed;
}
.tool-header .nav-links {
  flex-wrap: nowrap;
  gap: 28px;
}
.tool-header .nav-links a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.tool-header .brand {
  font-size: 24px;
}
.tool-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 72px;
}
.tool-footer p {
  color: var(--muted);
  flex: 1;
  font-size: 13px;
}
.tool-footer .brand {
  font-size: 19px;
}
.tool-footer .footer-links {
  flex-wrap: wrap;
}
.tool-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.connection-site h1 {
  font-family: var(--display);
  max-width: none;
  font-size: clamp(30px, 3.7vw, 42px);
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.15;
  text-wrap: wrap;
  margin: 12px 0 20px;
}
.connection-site h2 {
  font-family: var(--body);
  font-size: 21px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0;
}
.connection-site h3 {
  font-family: var(--body);
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 10px 0;
}
.connection-site p {
  margin: 8px 0 0;
}
.connection-site .section-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.home-intro {
  padding: 44px 0 28px;
}
.home-intro h1 {
  font-size: clamp(30px, 3.7vw, 42px);
}
.intro-lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 650px;
  line-height: 1.5;
}
.page-intro {
  padding: 32px 0 24px;
}
.docs-shell {
  padding-top: 44px;
}
.docs-shell h1,
.not-found h1 {
  max-width: none;
  font-size: clamp(28px, 3.3vw, 36px);
  line-height: 1.2;
  letter-spacing: -1px;
  text-wrap: wrap;
}
.provider-hero {
  padding-top: 44px;
  row-gap: 24px;
}
.provider-intro {
  grid-column: 1 / -1;
}
.provider-hero h1 {
  max-width: none;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.2;
  letter-spacing: -1px;
  text-wrap: wrap;
}
.breadcrumb {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.ip-card {
  background: #fff;
  border: 1px solid #cddcf1;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px 14px;
  box-shadow: 0 6px 28px #10212b04;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.ip-card h2 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.quiet-status {
  font-size: 12px;
  color: var(--muted);
}
.ip-value-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
}
.ip-value {
  font-family: var(--mono);
  font-size: clamp(23px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -1.4px;
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.4;
}
.ip-context {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0;
}
.ip-context div {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.ip-context dt {
  font-size: 12px;
  color: var(--muted);
}
.ip-context dd {
  font-family: var(--mono);
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}
.full-context {
  gap: 12px 24px;
}
.full-context div {
  min-width: 180px;
}
.ip-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.copy-feedback {
  font-size: 12px;
  color: var(--verified);
}
.copy-feedback:empty {
  display: none;
}
.connection-site button {
  cursor: pointer;
  font-family: var(--body);
}
.small-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid #bacbdc;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
}
.small-button:hover {
  background: #edf3fe;
  border-color: var(--accent);
}
.small-button:disabled {
  cursor: default;
  opacity: 0.5;
}
.text-button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}
.connection-site .button-primary {
  border: 0;
  border-radius: 7px;
  padding: 14px 23px;
  font-size: 15px;
  line-height: 1.2;
  min-height: 46px;
}
.connection-site button:focus-visible,
.connection-site a:focus-visible,
.connection-site summary:focus-visible,
.connection-site textarea:focus-visible {
  outline: 3px solid #6790ff;
  outline-offset: 4px;
}
.connection-site [hidden] {
  display: none !important;
}
.technical-details {
  border-top: 1px solid #e4ebf3;
  margin-top: 12px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.technical-details summary {
  cursor: pointer;
  width: fit-content;
}
.technical-details p {
  margin: 12px 0;
}
.browser-checks {
  margin-top: 28px;
}
.checks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.checks-heading p {
  color: var(--muted);
  font-size: 13px;
}
.primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.primary-action {
  flex: 1 1 200px;
  max-width: 225px;
  min-width: 0;
}
.primary-action .button {
  width: 100%;
}
.checks-heading .action-scope {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.check-card {
  border: 1px solid #d6e1ed;
  background: #fff;
  border-radius: 10px;
  padding: 21px;
  min-width: 0;
}
.check-card h2 {
  font-size: 17px;
}
.check-status {
  font-size: 11px;
  border-radius: 20px;
  background: #f0f4f8;
  color: var(--muted);
  padding: 4px 9px;
  white-space: nowrap;
}
.check-card[data-state='running'] {
  border-color: #81a4ff;
}
.check-card[data-state='running'] .check-status {
  background: #e5edff;
  color: #194cc8;
}
.check-card[data-state='passed'] .check-status {
  background: #ddf4e8;
  color: #076742;
}
.check-card[data-arrival='close_together'] .check-status {
  background: #fff0d5;
  color: #795000;
}
.stream-result {
  margin: 12px 0;
  padding: 12px 14px;
  background: #f3f6fa;
  border-radius: 6px;
  font-size: 13px;
}
.stream-result dl {
  margin: 0;
}
.stream-result dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 4px 0;
}
.stream-result dt {
  color: var(--muted);
}
.stream-result dd {
  margin: 0;
  font-weight: 600;
}
.stream-result p {
  margin: 10px 0 0;
  font-size: 12px;
}
.check-card[data-arrival='close_together'] .stream-result {
  background: #fff6e5;
}
.check-card[data-state='failed'] .check-status,
.check-card[data-state='timeout'] .check-status {
  background: #fff0e9;
  color: #a33714;
}
.check-description {
  color: var(--muted);
  font-size: 13px;
}
.check-message {
  font-size: 14px;
  min-height: 44px;
  padding-top: 14px;
}
.check-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
}
.scope-note {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 0;
  max-width: 880px;
}
.scope-note > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}
.event-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.event-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.event-timeline span {
  border: 1px solid #bdd6cd;
  background: #effaf5;
  color: #22664f;
  padding: 2px 6px;
  border-radius: 3px;
}
.event-timeline:empty {
  display: none;
}
.compare-entry {
  display: block;
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.compare-entry strong {
  color: var(--accent);
  font-weight: 600;
}
.terminal-entry {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.terminal-entry .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.more-tools {
  border-top: 1px solid #dbe4ed;
  margin-top: 30px;
  padding-top: 36px;
}
.more-tools .section-heading {
  display: block;
  margin-bottom: 20px;
}
.more-tools h2 {
  margin-top: 8px;
}
.tool-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tool-links.tools-catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-links > a {
  display: block;
  text-decoration: none;
  padding: 24px;
  background: #edf3fa;
  border: 1px solid #dbe5f0;
  border-radius: 9px;
  color: var(--ink);
}
.tool-links > a:hover {
  border-color: #82a5ff;
  background: #e8f0fc;
}
.tool-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.tool-links p {
  font-size: 14px;
  color: var(--muted);
}
.tool-link-action {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 26px;
}
.next-step {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: center;
  border-top: 1px solid #dbe4ed;
  margin-top: 44px;
  padding-top: 28px;
}
.next-step > div {
  max-width: 620px;
}
.next-step h2 {
  margin-top: 8px;
}
.next-step p:not(.section-label) {
  color: var(--muted);
  font-size: 14px;
}
.next-step .text-link {
  flex-shrink: 0;
  font-size: 14px;
}
.explanation {
  max-width: 800px;
  margin-top: 36px;
}
.explanation p {
  color: var(--muted);
  font-size: 15px;
}
.single-check {
  max-width: 800px;
}
.single-check .check-message {
  font-size: 17px;
  min-height: 60px;
}
.single-check [data-run-check] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  padding: 12px 24px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.compare-grid > *,
.compare-observations {
  min-width: 0;
}
.compare-observations .comparison-result {
  margin-top: 0;
  padding: 22px;
}
.compare-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.terminal-panel .compare-actions .button {
  margin: 0;
}
.compare-grid .ip-value-row {
  flex-wrap: wrap;
  gap: 8px;
}
.compare-grid .ip-value {
  font-size: 28px;
}
.compare-grid .ip-context {
  flex-direction: column;
  gap: 8px;
}
.step-label {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  padding-bottom: 14px;
}
.terminal-panel h2 {
  font-size: 18px;
}
.command-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: #e9f0f8;
  border: 1px solid #d1deed;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.command-block code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.command-block span {
  font-size: 12px;
}
.terminal-panel form {
  margin-top: 22px;
}
.terminal-panel label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 9px;
}
.terminal-panel textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid #b4c6db;
  border-radius: 7px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--mono);
  background: #fff;
  color: var(--ink);
}
.terminal-panel textarea[aria-invalid='true'] {
  border-color: #ba3817;
}
.terminal-panel .button {
  margin-top: 12px;
}
.input-error {
  color: #a93217;
  font-size: 13px;
}
.privacy-note {
  font-size: 12px;
  color: var(--muted);
  padding: 20px 0;
}
.comparison-result {
  border: 1px solid #b8ccec;
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  margin-top: 20px;
  scroll-margin-top: 20px;
}
.comparison-result h2 {
  margin-top: 8px;
}
.comparison-result p {
  font-size: 14px;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}
.connection-site table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.connection-site th,
.connection-site td {
  text-align: left;
  border-bottom: 1px solid #e0e8f1;
  padding: 10px;
  overflow-wrap: anywhere;
  min-width: 55px;
}
.guide-entry {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  padding: 30px;
  border: 1px solid #d4e0ee;
  border-radius: 10px;
}
.guide-entry h2 {
  margin-top: 10px;
}
.guide-entry p {
  color: var(--muted);
}
.guide-entry .text-link {
  display: block;
  margin-top: 25px;
}
.developer-content {
  max-width: 850px;
}
.developer-content > .target-builder {
  margin: 28px 0;
  width: 100%;
}
.developer-content > .start-section {
  padding: 24px 0;
  margin: 0;
}
.ip-switch-panel,
.guide-tool-callout,
.target-entry {
  margin-top: 28px;
  padding: 24px;
  background: #edf3fa;
  border: 1px solid #d1deee;
  border-radius: 10px;
}
.ip-switch-panel h2,
.guide-tool-callout h2,
.target-entry h2 {
  margin-top: 8px;
}
.ip-switch-panel p,
.guide-tool-callout p,
.target-entry p {
  font-size: 14px;
  color: var(--muted);
}
.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 18px;
}
.scenario-actions .text-link,
.result-next .text-link {
  font-size: 13px;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.snapshot-grid > section {
  background: #fff;
  padding: 16px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  min-width: 0;
}
.snapshot-grid strong {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  overflow-wrap: anywhere;
}
.snapshot-grid dt {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.snapshot-grid dd {
  font-size: 12px;
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.result-next {
  border-top: 1px solid #dce6f1;
  margin-top: 16px;
  padding-top: 10px;
}
.result-next p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.scenario-guide {
  max-width: 930px;
}
.scenario-guide .explanation {
  margin-top: 36px;
}
.guide-tool-callout .text-link,
.target-entry .text-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}
.guide-steps {
  padding-left: 24px;
  color: var(--muted);
  font-size: 15px;
}
.guide-steps li {
  margin: 12px 0;
  padding-left: 4px;
}
.guide-code {
  padding: 18px;
  border-radius: 8px;
  background: #e9f0f8;
  border: 1px solid #d4e0ef;
  overflow-x: auto;
  font-size: 12px;
}
.partner-card {
  border-top: 1px solid #dbe4ed;
  margin-top: 40px;
  padding-top: 24px;
  max-width: 800px;
}
.partner-card p {
  font-size: 14px;
  color: var(--muted);
}
.partner-card .partner-disclosure {
  margin: 16px 0 8px;
  font-size: 13px;
}
.website-tool .target-builder {
  margin: 24px 0;
}
.website-tool .target-command code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.website-tool .page-intro h1 {
  max-width: 870px;
}
@media (max-width: 720px) {
  .snapshot-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }
  .ip-switch-panel,
  .guide-tool-callout,
  .target-entry {
    padding: 18px;
  }
  .tool-header {
    margin: 0 20px;
    padding: 15px 0;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tool-header .brand {
    font-size: 21px;
  }
  .tool-header .brand-mark {
    width: 23px;
    height: 23px;
  }
  .tool-header .nav-links {
    gap: 18px;
    width: 100%;
    justify-content: space-between;
  }
  .tool-header .nav-links a {
    font-size: 12px;
    padding: 0;
  }
  .tool-shell {
    padding: 0 20px;
  }
  .home-intro {
    padding: 25px 0 20px;
  }
  .connection-site h1,
  .home-intro h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
    margin: 9px 0 13px;
  }
  .intro-lede {
    font-size: 15px;
  }
  .ip-card {
    padding: 15px 17px 10px;
  }
  .ip-value-row {
    gap: 9px;
  }
  .ip-value {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .ip-context {
    gap: 8px 15px;
    margin: 10px 0;
  }
  .ip-context div {
    gap: 5px;
  }
  .ip-context dt,
  .ip-context dd {
    font-size: 11px;
  }
  .ip-bottom .muted {
    font-size: 11px;
  }
  .quiet-status {
    font-size: 10px;
  }
  .browser-checks {
    margin-top: 20px;
  }
  .checks-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .checks-heading h2 {
    font-size: 19px;
  }
  .checks-heading p {
    margin-top: 4px;
  }
  .primary-actions {
    flex-wrap: wrap;
  }
  .primary-action {
    flex-basis: 160px;
    max-width: none;
  }
  .primary-actions .button {
    flex: 1 1 160px;
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
  }
  .check-grid,
  .tool-links,
  .tool-links.tools-catalog,
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .check-card {
    padding: 18px;
  }
  .compare-entry {
    font-size: 13px;
  }
  .compare-entry strong {
    display: block;
    margin-top: 3px;
  }
  .more-tools {
    margin-top: 16px;
  }
  .next-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .tool-footer {
    margin: 48px 20px 0;
    padding: 24px 0;
    gap: 14px;
  }
  .tool-footer p {
    flex-basis: 100%;
    order: 3;
    margin: 0;
  }
  .tool-footer .footer-links {
    gap: 18px;
  }
  .tool-footer .footer-links a {
    font-size: 12px;
  }
  .page-intro {
    padding: 28px 0 24px;
  }
  .comparison-result {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .connection-site *,
  .connection-site *::before,
  .connection-site *::after {
    animation: none !important;
    transition: none !important;
  }
}

.connection-site .button-primary {
  box-shadow: none;
}
@media (max-width: 420px) {
  .tool-header {
    padding: 10px 0;
    gap: 0;
  }
  .home-intro {
    padding-top: 20px;
  }
}
