.tools-hero {
  padding-bottom: 14px !important;
}

.tools-playground {
  max-width: 1040px !important;
  padding-top: 10px !important;
}

.gummy-tool-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}

.gummy-bear-toggle {
  appearance: none;
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  min-height: 170px;
  padding: 14px 10px 16px;
  color: var(--ink);
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gummy-bear-toggle:hover,
.gummy-bear-toggle.is-active {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(40, 35, 65, 0.13);
}

.bear-button {
  width: 92px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.bear-button img {
  width: 112px;
  height: 112px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(40, 35, 65, 0.16));
}

.bear-label {
  max-width: 150px;
  font-weight: 900;
  line-height: 1.15;
}

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

.gummy-panel {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url('/assets/brand/guhmy-page-background.png') !important;
  background-repeat: repeat, repeat !important;
  background-size: auto, 360px 360px !important;
  background-position: center, left top !important;
  border: 1px solid rgba(255, 63, 134, 0.16) !important;
  box-shadow: 0 20px 46px rgba(40, 35, 65, 0.12) !important;
}

.gummy-panel[hidden] {
  display: none !important;
}

.tool-coming-soon,
.result-box {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid rgba(255, 63, 134, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

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

.result-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.result-metric {
  padding: 14px;
  border: 1px solid rgba(255, 63, 134, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.result-metric strong,
.result-metric span {
  display: block;
}

.result-metric strong {
  color: var(--pink-dark);
  font-size: 1.25rem;
  line-height: 1.1;
}

.result-metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.formula-line {
  margin: 14px 0;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid rgba(255, 63, 134, 0.12);
  border-radius: 14px;
  background: rgba(255, 249, 251, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
}

.formula-line strong {
  color: var(--ink);
}

.result-detail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0 20px;
  padding: 0;
  color: var(--muted);
}

.result-detail-list li {
  line-height: 1.55;
}

.result-detail-list strong {
  color: var(--ink);
}

.result-note {
  margin-bottom: 0;
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.palette-swatch {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(40, 35, 65, 0.14);
}

@media (max-width: 900px) {
  .gummy-tool-picker,
  .calculator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gummy-tool-picker,
  .calculator-grid,
  .result-metrics {
    grid-template-columns: 1fr;
  }

  .gummy-bear-toggle {
    min-height: auto;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .bear-button {
    width: 72px;
    height: 76px;
  }

  .bear-button img {
    width: 88px;
    height: 88px;
  }
}
