.website-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.website-tool-card {
  min-height: 260px;
  padding: 18px;
}

.website-tool-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.website-tool-card p {
  font-size: .9rem;
  line-height: 1.6;
}

.website-tool-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.tool-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: .9rem;
  font-weight: 560;
  letter-spacing: -.03em;
}

.website-subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.website-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
}

.website-subnav a:hover,
.website-subnav a.active {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.tool-page {
  max-width: 940px;
}

.tool-page.rule-page {
  max-width: 760px;
}

.tool-page .tool-panel {
  padding: 18px;
}

.tool-page .tool-panel h2 {
  font-size: 1.25rem;
}

.tool-page textarea {
  min-height: 180px;
}

.tool-page .form-grid {
  margin-top: 10px;
}

.tool-page pre {
  min-height: 112px;
}

.tool-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.checker-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.checker-summary div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.checker-summary small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
}

.checker-summary strong {
  display: block;
  margin-top: 3px;
  font-size: .84rem;
}

.rule-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text);
}

.rule-checkbox input {
  width: auto;
  flex: 0 0 auto;
}

.status-text {
  min-height: 1.4em;
}

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

.dual-result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-solid) 96%, var(--bg));
  box-shadow: 0 12px 32px rgba(12, 20, 38, .08);
}

.tone-border-success { border-color: color-mix(in srgb, var(--success) 48%, var(--line)); }
.tone-border-warning { border-color: color-mix(in srgb, #e5a63b 55%, var(--line)); }
.tone-border-failed { border-color: color-mix(in srgb, var(--danger) 52%, var(--line)); }

.result-overview {
  margin: 0;
}

.result-overview > div {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1.55fr);
  gap: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.result-overview dt {
  color: var(--muted);
  font-size: .75rem;
}

.result-overview dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-size: .78rem;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.tone-success { color: var(--success) !important; }
.tone-warning { color: #d79120 !important; }
.tone-failed { color: var(--danger) !important; }

.result-verdict {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}

.result-verdict h3 {
  margin: 0 0 4px;
  font-size: .98rem;
  font-weight: 560;
}

.result-verdict p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.verdict-success h3 { color: var(--success); }
.verdict-warning h3 { color: #d79120; }
.verdict-failed h3 { color: var(--danger); }

.access-path {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.access-path span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: .68rem;
  font-weight: 520;
}

.access-path i {
  color: var(--muted);
  font-style: normal;
  font-size: .7rem;
}

.access-path .path-success { color: var(--success); }
.access-path .path-warning { color: #d79120; }
.access-path .path-failed { color: var(--danger); }

.analysis-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 14px 12px 10px;
}

.analysis-heading h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.analysis-heading > small {
  color: var(--muted);
  font-size: .68rem;
}

.dual-point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.point-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-2));
}

.point-card.is-success {
  border-color: color-mix(in srgb, var(--success) 52%, var(--line));
}

.point-card.is-failed {
  border-color: color-mix(in srgb, var(--danger) 52%, var(--line));
}

.point-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.point-header h4 {
  margin: 0;
  font-size: .84rem;
  font-weight: 580;
}

.point-header span {
  color: var(--muted);
  font-size: .68rem;
}

.point-card.is-success .point-header span { color: var(--success); }
.point-card.is-failed .point-header span { color: var(--danger); }

.point-highlight {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.point-highlight small {
  color: var(--muted);
  font-size: .66rem;
}

.point-highlight strong {
  color: var(--brand-2);
  font-size: .77rem;
  font-weight: 580;
  overflow-wrap: anywhere;
  text-align: right;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 8px 0;
  padding: 7px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  overflow-x: auto;
  scrollbar-width: thin;
}

.route-line span {
  min-width: 0;
  max-width: 145px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
  font-size: .62rem;
  font-weight: 520;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-line i {
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
}

.point-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

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

.point-stage {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: center;
}

.point-stage b {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: .65rem;
  font-weight: 560;
}

.point-stage b i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.point-stage.is-success b i { background: var(--success); }
.point-stage.is-failed b i { background: var(--danger); }

.point-stage small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.point-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.5;
}

.point-note code {
  color: var(--brand);
  font-size: inherit;
}

.comparison-conclusion {
  margin: 0 12px 12px;
  padding: 10px;
  border-left: 3px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.comparison-conclusion strong {
  display: block;
  font-size: .72rem;
  font-weight: 580;
}

.comparison-conclusion p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.conclusion-success { border-left-color: var(--success); }
.conclusion-warning { border-left-color: #d79120; }
.conclusion-failed { border-left-color: var(--danger); }
.conclusion-success strong { color: var(--success); }
.conclusion-warning strong { color: #d79120; }
.conclusion-failed strong { color: var(--danger); }

.result-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
  font-size: .8rem;
}

.loading-pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--glow);
  animation: checker-pulse 1.2s infinite;
}

@keyframes checker-pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 760px) {
  .website-tools-grid,
  .dual-point-grid {
    grid-template-columns: 1fr;
  }

  .website-tool-card {
    min-height: 0;
  }

  .checker-summary {
    grid-template-columns: 1fr;
  }

  .result-overview > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .result-overview dd {
    text-align: left;
  }

  .analysis-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 470px) {
  .point-stages,
  .point-stages.server-stages {
    grid-template-columns: 1fr;
  }
}
