.alt-tool {
  --alt-accent: #db2777;
  --alt-accent-dark: #9d174d;
  --alt-good: #15803d;
  --alt-warn: #b45309;
  --alt-bad: #b91c1c;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--landing-ink, #111827);
}

.alt-tool *,
.alt-tool *::before,
.alt-tool *::after {
  box-sizing: border-box;
}

.alt-notice,
.alt-card,
.alt-method {
  border: 1px solid var(--landing-border, #d1d5db);
  background: var(--landing-surface, #fff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.alt-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-inline-start: 4px solid var(--alt-warn);
  border-radius: 14px;
  background: color-mix(in srgb, #fef3c7 72%, var(--landing-surface, #fff));
}

.alt-notice-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.alt-notice strong,
.alt-notice p,
.alt-card h3,
.alt-method h3,
.alt-method p {
  margin: 0;
}

.alt-notice p {
  margin-top: 0.25rem;
  color: var(--landing-muted, #4b5563);
  line-height: 1.55;
}

.alt-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.alt-card {
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.4rem);
  border-radius: 18px;
}

.alt-card-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.alt-card-heading h3 {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.alt-step {
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--alt-accent) 14%, transparent);
  color: var(--alt-accent-dark);
  font-weight: 800;
}

.alt-field {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}

.alt-number-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: min(100%, 220px);
  border: 1px solid var(--landing-border, #cbd5e1);
  border-radius: 10px;
  background: var(--landing-surface, #fff);
}

.alt-number-input input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.alt-number-input:focus-within {
  border-color: var(--alt-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--alt-accent) 18%, transparent);
}

.alt-number-input span {
  padding-inline: 0.8rem;
  color: var(--landing-muted, #4b5563);
  font-weight: 700;
}

.alt-help {
  margin: 0.45rem 0 0;
  color: var(--landing-muted, #4b5563);
  font-size: 0.9rem;
  line-height: 1.5;
}

.alt-actions,
.alt-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.alt-button {
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--landing-border, #cbd5e1);
  border-radius: 9px;
  background: var(--landing-surface, #fff);
  color: inherit;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.alt-button:hover:not(:disabled),
.alt-button:focus-visible:not(:disabled) {
  border-color: var(--alt-accent);
  transform: translateY(-1px);
}

.alt-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--alt-accent) 30%, transparent);
  outline-offset: 2px;
}

.alt-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alt-button-primary {
  border-color: var(--alt-accent);
  background: var(--alt-accent);
  color: #fff;
}

.alt-button-primary:hover:not(:disabled),
.alt-button-primary:focus-visible:not(:disabled) {
  background: var(--alt-accent-dark);
  color: #fff;
}

.alt-button-quiet {
  background: transparent;
}

.alt-status {
  display: grid;
  gap: 0.3rem;
  min-height: 74px;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--alt-accent) 7%, var(--landing-surface, #fff));
}

.alt-status span {
  color: var(--landing-muted, #4b5563);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alt-status strong {
  line-height: 1.45;
}

.alt-trials {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alt-trials li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) auto minmax(4.5rem, auto);
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--landing-border, #e2e8f0);
  border-radius: 10px;
  background: color-mix(in srgb, var(--landing-surface, #fff) 94%, #f1f5f9);
}

.alt-trials li strong,
.alt-trials li small {
  font-variant-numeric: tabular-nums;
}

.alt-trials li strong {
  color: var(--landing-muted, #4b5563);
  font-size: 0.84rem;
}

.alt-trials li small {
  text-align: end;
}

.alt-trials li.is-running {
  border-color: var(--alt-accent);
  background: color-mix(in srgb, var(--alt-accent) 8%, var(--landing-surface, #fff));
}

.alt-trials li.is-accepted strong {
  color: var(--alt-good);
}

.alt-trials li.is-rejected strong {
  color: var(--alt-bad);
}

.alt-progress {
  height: 8px;
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--landing-border, #d1d5db) 55%, transparent);
}

.alt-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--alt-accent), #7c3aed);
  transition: width 0.2s ease;
}

.alt-empty {
  margin: 0;
  color: var(--landing-muted, #4b5563);
}

.alt-stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}

.alt-stat-grid:not([hidden]) {
  display: grid;
}

.alt-stat {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--landing-border, #e2e8f0);
  border-radius: 12px;
  background: color-mix(in srgb, var(--landing-surface, #fff) 92%, #f8fafc);
}

.alt-stat span {
  color: var(--landing-muted, #4b5563);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.alt-stat strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-variant-numeric: tabular-nums;
}

.alt-stat-primary {
  border-color: color-mix(in srgb, var(--alt-accent) 45%, var(--landing-border, #e2e8f0));
  background: color-mix(in srgb, var(--alt-accent) 8%, var(--landing-surface, #fff));
}

.alt-baseline {
  margin: 0.7rem 0 0;
  color: var(--landing-muted, #4b5563);
  font-size: 0.9rem;
}

.alt-environment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.alt-environment-grid div {
  padding: 0.8rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--landing-surface, #fff) 90%, #f1f5f9);
}

.alt-environment-grid dt {
  color: var(--landing-muted, #4b5563);
  font-size: 0.78rem;
  font-weight: 750;
}

.alt-environment-grid dd {
  margin: 0.35rem 0 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.alt-method {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border-inline-start: 4px solid var(--alt-accent);
}

.alt-method p {
  margin-top: 0.4rem;
  color: var(--landing-muted, #4b5563);
  line-height: 1.58;
}

.alt-method .alt-privacy {
  color: var(--alt-good);
  font-weight: 700;
}

html.dark-theme .alt-notice,
[data-theme="dark"] .alt-notice {
  background: rgba(120, 53, 15, 0.25);
}

html.dark-theme .alt-step,
[data-theme="dark"] .alt-step {
  color: #f9a8d4;
}

html.dark-theme .alt-method .alt-privacy,
[data-theme="dark"] .alt-method .alt-privacy,
html.dark-theme .alt-trials li.is-accepted strong,
[data-theme="dark"] .alt-trials li.is-accepted strong {
  color: #86efac;
}

html.dark-theme .alt-trials li.is-rejected strong,
[data-theme="dark"] .alt-trials li.is-rejected strong {
  color: #fca5a5;
}

@media (max-width: 900px) {
  .alt-layout {
    grid-template-columns: 1fr;
  }

  .alt-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .alt-card,
  .alt-notice,
  .alt-method {
    border-radius: 12px;
  }

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

  .alt-trials li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .alt-trials li small {
    grid-column: 1 / -1;
    text-align: start;
  }

  .alt-stat-grid,
  .alt-environment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .alt-button,
  .alt-progress span {
    transition: none;
  }
}
