.tools-page .premium-hero-note {
  max-width: 64ch;
}

.tool-card-grid,
.tool-shell-grid,
.tool-question-grid,
.tool-support-grid,
.tool-result-grid,
.tool-link-grid,
.tool-mini-grid,
.tool-stat-grid {
  display: grid;
  gap: 14px;
}

.tool-card-grid,
.tool-question-grid,
.tool-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-shell-grid,
.tool-support-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.tool-result-grid,
.tool-link-grid,
.tool-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card,
.tool-panel,
.tool-result-card,
.tool-question-card,
.tool-note-card,
.tool-signal-card,
.tool-legal-card {
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(15, 36, 52, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(246, 249, 252, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(15, 36, 52, 0.05);
}

.tool-card,
.tool-panel,
.tool-question-card,
.tool-note-card,
.tool-signal-card,
.tool-legal-card {
  display: grid;
  gap: 14px;
}

.tool-card h3,
.tool-panel h2,
.tool-panel h3,
.tool-question-card h3,
.tool-note-card h3,
.tool-signal-card h3,
.tool-legal-card h3 {
  margin: 0;
  color: var(--premium-navy);
  overflow-wrap: anywhere;
}

.tool-card p,
.tool-panel p,
.tool-question-card p,
.tool-note-card p,
.tool-signal-card p,
.tool-legal-card p {
  margin: 0;
  color: var(--premium-copy);
  line-height: 1.65;
}

.tool-card {
  align-content: start;
}

.tool-card-top {
  display: grid;
  gap: 10px;
}

.tool-card-top h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.tool-card-top p {
  max-width: 42ch;
}

.tool-card-meta {
  display: grid;
  gap: 10px;
}

.tool-card-meta span,
.tool-badge,
.tool-audience-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.tool-card-meta span,
.tool-audience-pill {
  border: 1px solid rgba(15, 36, 52, 0.08);
  background: rgba(28, 147, 209, 0.08);
  color: var(--premium-navy);
}

.tool-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tool-card-actions .btn {
  width: fit-content;
}

.tool-panel-head {
  display: grid;
  gap: 8px;
}

.tool-panel-head p {
  max-width: 62ch;
}

.tool-disclaimer {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 36, 52, 0.08);
  background: linear-gradient(180deg, rgba(243, 248, 251, 1) 0%, rgba(235, 243, 248, 1) 100%);
  color: var(--premium-copy);
  line-height: 1.6;
}

.tool-form-grid {
  display: grid;
  gap: 14px;
}

.tool-form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-field {
  display: grid;
  gap: 8px;
}

.tool-field label {
  color: var(--premium-navy);
  font-weight: 700;
}

.tool-field input,
.tool-field select,
.tool-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 36, 52, 0.12);
  background: #fff;
  color: var(--premium-navy);
}

.tool-field textarea {
  min-height: 124px;
}

.tool-help {
  margin: 0;
  color: var(--premium-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.tool-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 36, 52, 0.08);
  background: linear-gradient(180deg, rgba(248, 251, 253, 1) 0%, rgba(242, 247, 250, 1) 100%);
}

.tool-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.tool-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--premium-navy);
  line-height: 1.3;
}

.tool-option span {
  color: var(--premium-copy);
  font-size: 0.94rem;
  line-height: 1.55;
}

.tool-progress {
  display: grid;
  gap: 8px;
}

.tool-progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.tool-progress-head strong {
  color: var(--premium-navy);
}

.tool-progress-head span {
  color: var(--premium-muted);
  font-size: 0.92rem;
}

.tool-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 36, 52, 0.08);
}

.tool-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--premium-orange) 0%, var(--premium-blue) 100%);
  transition: width 0.22s ease;
}

.tool-result-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.tool-result-card h3 {
  margin: 0;
  color: var(--premium-navy);
  font-size: 1.14rem;
}

.tool-result-card p {
  margin: 0;
  color: var(--premium-copy);
  line-height: 1.65;
}

.tool-badge {
  border: 1px solid transparent;
  background: rgba(28, 147, 209, 0.1);
  color: var(--premium-navy);
}

.tool-badge.is-blue {
  background: rgba(28, 147, 209, 0.1);
  border-color: rgba(28, 147, 209, 0.14);
  color: #0d5277;
}

.tool-badge.is-green {
  background: rgba(74, 211, 138, 0.12);
  border-color: rgba(74, 211, 138, 0.18);
  color: #0d6c41;
}

.tool-badge.is-yellow {
  background: rgba(241, 112, 37, 0.12);
  border-color: rgba(241, 112, 37, 0.2);
  color: #9b430f;
}

.tool-badge.is-red {
  background: rgba(194, 39, 57, 0.12);
  border-color: rgba(194, 39, 57, 0.18);
  color: #922336;
}

.tool-range {
  display: grid;
  gap: 6px;
}

.tool-range span {
  color: var(--premium-muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-range strong {
  color: var(--premium-navy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.tool-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-list li {
  position: relative;
  padding-left: 18px;
  color: var(--premium-copy);
  line-height: 1.6;
}

.tool-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--premium-orange) 0%, var(--premium-blue) 100%);
  transform: translateY(-50%);
}

.tool-inline-note {
  color: var(--premium-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tool-password-output {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(241, 112, 37, 0.18), transparent 28%),
    linear-gradient(135deg, #0f2434 0%, #14344a 100%);
  color: #fff;
}

.tool-password-output strong,
.tool-password-output span,
.tool-password-output p {
  color: inherit;
}

.tool-password-value {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.12rem;
  line-height: 1.55;
  word-break: break-all;
}

.tool-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-copy-row .btn {
  width: fit-content;
}

.tool-status-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.tool-hero-surface {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(241, 112, 37, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.tool-hero-surface strong {
  color: #fff;
  font-size: 1.05rem;
}

.tool-hero-surface p,
.tool-hero-surface li {
  color: rgba(255, 255, 255, 0.78);
}

.tool-hero-surface .tool-list li::before {
  background: linear-gradient(135deg, rgba(241, 112, 37, 1) 0%, rgba(28, 147, 209, 1) 100%);
}

.tool-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-cta-row .btn {
  width: fit-content;
}

.tool-link-grid .premium-link-card {
  min-height: 100%;
}

@media (max-width: 1120px) {
  .tool-card-grid,
  .tool-question-grid,
  .tool-mini-grid,
  .tool-result-grid,
  .tool-link-grid,
  .tool-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-shell-grid,
  .tool-support-grid {
    grid-template-columns: 1fr;
  }

  .tool-result-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .tool-card-grid,
  .tool-question-grid,
  .tool-mini-grid,
  .tool-result-grid,
  .tool-link-grid,
  .tool-stat-grid,
  .tool-form-grid.two-col,
  .tool-option-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-actions .btn,
  .tool-cta-row .btn,
  .tool-copy-row .btn {
    width: 100%;
  }
}
