[hidden] { display: none !important; }

.cw-growth-tool .cw-c2l-hero { text-align: left; }
.cw-growth-tool .cw-c2l-hero h1 { max-width: 21ch; }
.cw-growth-tool .cw-c2l-sub { margin-inline: 0; }
.cw-growth-tool .cw-sol-editor { width: 100%; min-height: 12rem; box-sizing: border-box; }
.cw-tool-fieldset { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.cw-tool-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.cw-tool-field { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.cw-tool-field :is(input:not([type="range"]), select) {
  width: 100%;
  padding: .6rem .75rem;
  color: #e4f5ff;
  background: #102234;
  border: 1px solid #44708d;
  border-radius: .55rem;
  box-sizing: border-box;
}
.cw-tool-field input[type="range"] { width: 100%; accent-color: #84dbff; }
.cw-growth-tool :focus-visible { outline: 2px solid #84dbff; outline-offset: 4px; }
.cw-tool-result { margin-top: 1rem; min-width: 0; }
.cw-tool-result li { overflow-wrap: anywhere; }
.cw-tool-result pre {
  margin-block: .7rem;
  padding: .85rem;
  max-height: 20rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d9f1ff;
  border: 1px solid #37566d;
  background: #0d1a28;
  border-radius: .65rem;
}
.cw-tool-table-wrap { overflow-x: auto; }
.cw-tool-status { min-height: 1.5em; color: #a8dbff; }
.cw-tool-status[data-tone="error"] { color: #ffc1a9; }
.cw-growth-tool .btn:disabled { opacity: .55; cursor: not-allowed; }
.cw-tool-funnel { margin-top: 1rem; }
.cw-tool-funnel .btn { max-width: 100%; white-space: normal; }
.cw-tool-run.is-busy::before {
  content: "";
  width: .8em;
  height: .8em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: cw-tool-spin .7s linear infinite;
}
@keyframes cw-tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cw-tool-run.is-busy::before { animation: none; }
}

.cw-growth-tool[data-growth-tool="quantum-risk-check"] input[aria-invalid="true"] {
  border-color: #fb806d;
  outline: 2px solid #b84f45;
  outline-offset: 2px;
}
.cw-growth-tool[data-growth-tool="quantum-risk-check"] .cw-tool-status[data-tone="error"] {
  border: 1px solid #b84f45;
  border-radius: .55rem;
  padding: .6rem .75rem;
}
