.tool-lab-band {
  background:
    radial-gradient(circle at 88% 4%, rgba(116, 89, 63, 0.12), transparent 34%),
    #f2eee7;
}

.tool-lab {
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(54px, 8vw, 110px);
}

.tool-lab-intro {
  max-width: 800px;
  margin-bottom: clamp(30px, 5vw, 62px);
}

.tool-lab-intro h2 {
  max-width: 14em;
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tool-lab-intro > p:last-child {
  max-width: 62ch;
  color: #5c574f;
  line-height: 1.9;
}

.tool-lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.tool-form,
.tool-result {
  border: 1px solid rgba(45, 41, 35, 0.16);
  background: rgba(255, 253, 249, 0.86);
}

.tool-form {
  padding: clamp(24px, 4vw, 46px);
}

.tool-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 34px;
  border: 0;
}

.tool-fieldset + .tool-fieldset {
  padding-top: 30px;
  border-top: 1px solid rgba(45, 41, 35, 0.12);
}

.tool-fieldset legend {
  display: flex;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  margin-bottom: 18px;
  color: #26231f;
  font-size: 20px;
  font-weight: 600;
}

.tool-fieldset legend span {
  color: #8c7762;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.tool-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-option {
  position: relative;
  display: flex;
  min-height: 112px;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(45, 41, 35, 0.16);
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-option:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 41, 35, 0.42);
}

.tool-option:has(input:checked) {
  border-color: #293a34;
  background: #e7ece8;
  box-shadow: inset 0 0 0 1px #293a34;
}

.tool-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tool-option:has(input:focus-visible) {
  outline: 3px solid rgba(64, 102, 89, 0.34);
  outline-offset: 3px;
}

.tool-option span {
  color: #27231f;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.tool-option small {
  color: #746e65;
  font-size: 12px;
  line-height: 1.65;
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.tool-actions .button {
  min-width: 160px;
  justify-content: center;
}

.tool-result {
  position: sticky;
  top: 96px;
  padding: clamp(26px, 4vw, 42px);
  background: #25342f;
  color: #f8f5ef;
}

.tool-result > span {
  display: block;
  margin-bottom: 30px;
  color: #c7b8a5;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.tool-result h3 {
  margin: 0 0 16px;
  color: inherit;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.18;
}

.tool-result > p,
.tool-result-body p {
  color: rgba(248, 245, 239, 0.78);
  line-height: 1.85;
}

.tool-result-body {
  margin-top: 24px;
}

.tool-result-body ul,
.tool-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tool-result-body li,
.tool-checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 10px;
  border-top: 1px solid rgba(248, 245, 239, 0.14);
  color: rgba(248, 245, 239, 0.9);
  line-height: 1.65;
}

.tool-checklist input {
  margin-top: 5px;
  accent-color: #cfb997;
}

.tool-result-links {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.tool-result-links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(248, 245, 239, 0.18);
  color: #f8f5ef;
  text-decoration: none;
}

.tool-evidence-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(58px, 8vw, 104px) 0 26px;
}

.tool-evidence-head h2 {
  max-width: 17em;
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

.tool-evidence-head > strong {
  flex: none;
  color: #6f665c;
  font-size: 13px;
  font-weight: 500;
}

.tool-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tool-work-card[hidden] {
  display: none;
}

.tool-work-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tool-work-card figure {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0 0 16px;
  overflow: hidden;
  background: #ddd7cd;
}

.tool-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.tool-work-card:hover img {
  transform: scale(1.025);
}

.tool-work-card span {
  color: #82786d;
  font-size: 11px;
}

.tool-work-card h3 {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.45;
}

.tool-work-card p {
  margin: 0;
  color: #716a61;
  font-size: 12px;
  line-height: 1.6;
}

.tool-boundary {
  max-width: 78ch;
  margin: 30px 0 0;
  color: #746e65;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .tool-lab-layout {
    grid-template-columns: 1fr;
  }

  .tool-result {
    position: static;
  }

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

@media (max-width: 640px) {
  .tool-options {
    grid-template-columns: 1fr;
  }

  .tool-option {
    min-height: 0;
  }

  .tool-actions,
  .tool-actions .button {
    width: 100%;
  }

  .tool-evidence-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-work-grid {
    gap: 12px;
  }

  .tool-work-card h3 {
    font-size: 15px;
  }
}
