.tools-page-visual {
  min-height: 430px;
}

.page-hero-actions {
  margin-top: 1.25rem;
}

.tools-grid {
  align-items: stretch;
}

.tools-stage {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 12, 0.9);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.tools-stage-main {
  inset: 10% 24% 14% 7%;
}

.tools-stage-side {
  top: 12%;
  right: 7%;
  width: 22%;
  height: 34%;
}

.tools-stage-bottom {
  right: 12%;
  bottom: 12%;
  width: 34%;
  height: 28%;
}

.tools-stage .visual-chip {
  position: absolute;
  top: 16px;
  left: 18px;
}

.tools-stage-lines,
.tools-stage-pulses,
.tools-stage-rings,
.tools-stage-bars {
  position: absolute;
  inset: 0;
}

.tools-stage-lines span {
  position: absolute;
  left: 9%;
  right: 10%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 91, 96, 0.08), rgba(255, 91, 96, 0.26), rgba(255, 255, 255, 0.2));
  opacity: 0.95;
  overflow: hidden;
}

.tools-stage-lines span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 246, 0.86), transparent);
  transform: translateX(-120%);
  animation: tool-lane-sweep 3s linear infinite;
}

.tools-stage-lines span:nth-child(1) { top: 24%; width: 62%; }
.tools-stage-lines span:nth-child(2) { top: 39%; width: 76%; animation-delay: 0.35s; }
.tools-stage-lines span:nth-child(3) { top: 56%; width: 68%; animation-delay: 0.7s; }
.tools-stage-lines span:nth-child(4) { top: 72%; width: 52%; animation-delay: 1.05s; }

.tools-stage-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 110, 115, 0.94);
  box-shadow: 0 0 0 14px rgba(255, 110, 115, 0.1);
  animation: tool-node-glow 2.2s ease-in-out infinite;
}

.tools-stage-pulse-a { left: 22%; top: 26%; }
.tools-stage-pulse-b { left: 48%; top: 54%; animation-delay: 0.4s; }
.tools-stage-pulse-c { right: 16%; top: 38%; animation-delay: 0.8s; }

.tools-stage-rings::before,
.tools-stage-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-stage-rings::before {
  inset: 24% 22%;
}

.tools-stage-rings::after {
  inset: 34% 32%;
  box-shadow: 0 0 0 18px rgba(255, 88, 94, 0.06);
  animation: tool-ring-breathe 2.8s ease-in-out infinite;
}

.tools-stage-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 26% 16% 14%;
}

.tools-stage-bars span {
  flex: 1;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 111, 116, 0.96), rgba(110, 17, 21, 0.82));
  box-shadow: 0 0 24px rgba(255, 103, 110, 0.22);
  animation: tool-bar-breathe 2.8s ease-in-out infinite;
}

.tools-stage-bars span:nth-child(1) { height: 34%; }
.tools-stage-bars span:nth-child(2) { height: 58%; animation-delay: 0.2s; }
.tools-stage-bars span:nth-child(3) { height: 44%; animation-delay: 0.4s; }
.tools-stage-bars span:nth-child(4) { height: 74%; animation-delay: 0.6s; }

.tool-workbench,
.tool-lead-layout {
  gap: 1.4rem;
}

.tool-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.tool-form,
.tool-lead-form {
  display: grid;
  gap: 1rem;
}

.tool-questionnaire {
  display: grid;
  gap: 1rem;
}

.tool-question-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tool-question-card strong {
  display: block;
  margin-bottom: 0.85rem;
}

.tool-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-choice {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.tool-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tool-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #f0e8e8;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.tool-choice:hover span,
.tool-choice:focus-within span {
  transform: translateY(-2px);
  border-color: rgba(255, 102, 109, 0.28);
  background: linear-gradient(135deg, rgba(255, 72, 88, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 26px rgba(11, 10, 14, 0.26);
  color: #fff3f4;
}

.tool-choice input:checked + span {
  border-color: rgba(255, 95, 109, 0.45);
  background: linear-gradient(135deg, rgba(255, 72, 88, 0.2), rgba(123, 18, 28, 0.12));
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(16, 13, 17, 0.26);
}

.tool-field-help,
.tool-privacy-note,
.tool-result-meta,
.tool-consent span {
  color: var(--muted);
  line-height: 1.7;
}

.tool-privacy-note {
  margin: -0.2rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.tool-result-shell {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.tool-result-eyebrow {
  margin: 0;
  color: #d2c8c8;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-score-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.tool-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.tool-score-badge small {
  font-size: 1rem;
  color: #d6cbcc;
}

.tool-risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f5eded;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-risk-pill.is-strong,
.tool-risk-pill.is-low,
.tool-risk-pill.is-ready {
  border-color: rgba(93, 190, 122, 0.34);
  background: rgba(93, 190, 122, 0.1);
}

.tool-risk-pill.is-warning,
.tool-risk-pill.is-moderate,
.tool-risk-pill.is-improvement {
  border-color: rgba(255, 184, 77, 0.34);
  background: rgba(255, 184, 77, 0.1);
}

.tool-risk-pill.is-danger,
.tool-risk-pill.is-exposed,
.tool-risk-pill.is-high {
  border-color: rgba(255, 95, 109, 0.42);
  background: rgba(255, 95, 109, 0.12);
}

.tool-result-grid,
.tool-recommendation-list {
  display: grid;
  gap: 0.85rem;
}

.tool-finding {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.tool-finding-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.tool-finding-head strong {
  margin: 0;
}

.tool-finding-status {
  color: #f4c8cb;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-finding p,
.tool-recommendation-list li,
.tool-detail-list li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tool-recommendation-list,
.tool-detail-list {
  padding-left: 1.2rem;
  margin: 0;
}

.admin-form-row {
  display: grid;
  gap: 0.95rem;
}

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

.admin-label {
  display: grid;
  gap: 0.55rem;
  color: rgba(247, 238, 240, 0.9);
}

.admin-input,
.admin-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #f7eef0;
  padding: 14px 16px;
  font: inherit;
}

.admin-textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-status {
  min-height: 1.5em;
  margin: 0;
}

.admin-status.is-error {
  color: #ffb8c0;
}

.admin-status.is-success {
  color: #ccebd2;
}

.tool-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tool-consent input {
  margin-top: 0.25rem;
}

.tool-scope-section {
  padding-top: 0;
}

.tool-scope-card {
  display: grid;
  gap: 1rem;
}

.tool-scope-card h3 {
  margin: 0;
}

.tool-scope-card p {
  margin: 0;
}

@keyframes tool-lane-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes tool-node-glow {
  0%, 100% { transform: scale(0.96); box-shadow: 0 0 0 12px rgba(255, 110, 115, 0.1); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(255, 110, 115, 0.16); }
}

@keyframes tool-ring-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes tool-bar-breathe {
  0%, 100% { transform: scaleY(0.94); opacity: 0.9; }
  50% { transform: scaleY(1.04); opacity: 1; }
}

@media (max-width: 1024px) {
  .tools-stage-main {
    inset: 8% 10% 30% 7%;
  }

  .tools-stage-side,
  .tools-stage-bottom {
    width: 34%;
  }
}

@media (max-width: 780px) {
  .tool-choice-grid,
  .admin-form-row.two {
    grid-template-columns: 1fr;
  }

  .tools-page-visual {
    min-height: 360px;
  }

  .tools-stage-main {
    inset: 8% 7% 34% 7%;
  }

  .tools-stage-side {
    top: auto;
    bottom: 12%;
    right: 7%;
    width: 38%;
    height: 22%;
  }

  .tools-stage-bottom {
    display: none;
  }
}
