.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 28px;
  font-size: 13px;
}

.tool-nav a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.tool-nav a:hover,
.tool-nav a.active {
  color: #fff;
}

.assessment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 28px 0;
}

.field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(220, 220, 242, 0.14);
  border-radius: var(--radius-2);
  background: rgba(220, 220, 242, 0.045);
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.field .hint {
  display: block;
  min-height: 18px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.52);
}

.custom-select {
  position: relative;
}

.select-trigger,
.number-stepper {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(220, 220, 242, 0.24);
  border-radius: var(--radius-1);
  background: var(--rodan-navy-elev);
  color: #fff;
  box-shadow: 0 10px 24px rgba(4, 4, 24, 0.14);
}

.select-trigger {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 44px 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
}

.select-trigger::after {
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--rodan-lavender);
  border-bottom: 2px solid var(--rodan-lavender);
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.custom-select.is-open .select-trigger::after {
  transform: translateY(3px) rotate(225deg);
}

.select-trigger:hover {
  border-color: rgba(220, 220, 242, 0.42);
}

.select-trigger:focus-visible,
.number-stepper:focus-within {
  border-color: var(--rodan-lavender);
  outline: 2px solid var(--rodan-lavender);
  outline-offset: 2px;
}

.select-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(220, 220, 242, 0.24);
  border-radius: var(--radius-1);
  background: #171738;
  box-shadow: 0 20px 48px rgba(4, 4, 24, 0.38);
  list-style: none;
}

.select-list[hidden] {
  display: none;
}

.select-option {
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.select-option:hover,
.select-option:focus-visible {
  outline: none;
  background: rgba(220, 220, 242, 0.1);
  color: #fff;
}

.select-option[aria-selected="true"] {
  background: var(--rodan-lavender);
  color: var(--rodan-ink);
  font-weight: 600;
}

.number-stepper {
  display: grid;
  min-height: 50px;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  overflow: hidden;
}

.stepper-button {
  display: grid;
  min-width: 44px;
  border: 0;
  background: rgba(220, 220, 242, 0.08);
  color: var(--rodan-lavender);
  font: 500 24px/1 var(--font-sans);
  cursor: pointer;
  place-items: center;
}

.stepper-button:first-child {
  border-right: 1px solid rgba(220, 220, 242, 0.18);
}

.stepper-button:last-child {
  border-left: 1px solid rgba(220, 220, 242, 0.18);
}

.stepper-button:hover:not(:disabled) {
  background: rgba(220, 220, 242, 0.16);
  color: #fff;
}

.stepper-button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--rodan-lavender);
  outline-offset: -3px;
}

.stepper-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.number-stepper input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
}

.number-stepper input::-webkit-inner-spin-button,
.number-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.form-error {
  margin: 8px 0 0;
  color: #f0a0a8;
  font-size: 14px;
}

.score-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.metric-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-2);
  background: var(--rodan-navy-elev);
}

.metric-card .metric {
  margin: 10px 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card .metric-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 21px;
}

.treatment {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--rodan-lavender);
  background: rgba(220, 220, 242, 0.06);
}

.treatment strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.detail-block {
  margin-top: 28px;
}

.detail-block h3 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 20px;
}

.detail-block p,
.detail-block li {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 23px;
}

.detail-block ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.acquire-detail-locked {
  position: relative;
  max-height: 260px;
  margin-top: 24px;
  overflow: hidden;
}

.acquire-blur {
  pointer-events: none;
  filter: blur(5px);
  opacity: 0.55;
  user-select: none;
}

.acquire-gate {
  margin-top: 24px;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .assessment-form,
  .score-pair {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .field {
    padding: 17px;
  }
}

@media (prefers-color-scheme: light) {
  .tool-nav a {
    color: rgba(17, 17, 56, 0.55);
  }

  .tool-nav a:hover,
  .tool-nav a.active,
  .field label,
  .metric-card .metric,
  .treatment strong {
    color: var(--rodan-ink);
  }

  .field {
    border-color: rgba(17, 17, 56, 0.12);
    background: rgba(17, 17, 56, 0.025);
  }

  .field .hint,
  .metric-card .metric-label {
    color: rgba(17, 17, 56, 0.56);
  }

  .select-trigger,
  .number-stepper,
  .metric-card {
    border-color: rgba(17, 17, 56, 0.18);
    background: var(--rodan-white);
    color: var(--rodan-ink);
    box-shadow: 0 10px 24px rgba(17, 17, 56, 0.06);
  }

  .select-list {
    border-color: rgba(17, 17, 56, 0.16);
    background: var(--rodan-white);
    box-shadow: 0 20px 48px rgba(17, 17, 56, 0.16);
  }

  .select-option {
    color: rgba(17, 17, 56, 0.78);
  }

  .select-option:hover,
  .select-option:focus-visible {
    background: rgba(17, 17, 56, 0.06);
    color: var(--rodan-ink);
  }

  .stepper-button {
    background: rgba(17, 17, 56, 0.045);
    color: var(--rodan-ink);
  }

  .stepper-button:first-child {
    border-right-color: rgba(17, 17, 56, 0.14);
  }

  .stepper-button:last-child {
    border-left-color: rgba(17, 17, 56, 0.14);
  }

  .stepper-button:hover:not(:disabled) {
    background: rgba(17, 17, 56, 0.1);
    color: var(--rodan-ink);
  }

  .number-stepper input {
    color: var(--rodan-ink);
  }

  .metric-card p,
  .detail-block p,
  .detail-block li {
    color: rgba(17, 17, 56, 0.75);
  }

  .detail-block h3 {
    color: var(--rodan-ink);
  }

  .form-error {
    color: #a33;
  }
}

@media print {
  .nav,
  .tool-nav,
  .acquire-gate,
  .restart,
  .print-actions,
  #rodan-site-footer,
  .no-print {
    display: none !important;
  }

  .acquire-detail-locked {
    max-height: none;
    overflow: visible;
  }

  .acquire-blur {
    pointer-events: auto;
    filter: none;
    opacity: 1;
  }

  body {
    background: #fff;
    color: #111;
  }

  .score-pair {
    grid-template-columns: 1fr 1fr;
  }
}
