.money-type-main {
  max-width: 820px;
  padding-bottom: 56px;
}

.money-type-stage { padding-top: clamp(24px, 5vw, 56px); }
.money-type-intro .money-type-entry { margin-top: 22px; }
.money-type-example,
.money-type-retry { display: inline-flex; align-items: center; min-height: 44px; }
.money-type-example { margin-top: 8px; }

@media (max-width: 600px) {
  .money-type-entry > [data-quiz-start] { flex: 1; width: auto; }
}

.money-type-panel {
  margin-bottom: 24px;
  border: 1px solid var(--modern-border);
  border-radius: 12px;
  background: var(--modern-surface);
}

.money-type-panel > h1 { margin-top: 0; }
.money-type-quiz > h1 {
  margin-bottom: 8px;
  font-size: 1rem;
  scroll-margin-top: 76px;
}

.money-type-result-line { font-size: 1.125rem; }

@media (max-width: 600px) {
  .money-type-quiz,
  .money-type-result { padding: 18px; }

  .money-type-result > .modern-section-label { margin-bottom: 8px; }
  .money-type-result > h1 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 5.8vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .money-type-result-line { font-size: 1rem; }
}
.money-type-insight { margin-block: 22px; }
.money-type-insight h3 { margin-bottom: 6px; }
.money-type-insight p { margin-block: 4px; }
.money-type-note { color: var(--modern-muted); }
.money-type-error { color: var(--color-danger); }

.money-type-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-block: 0 18px;
  color: var(--modern-muted);
  font-variant-numeric: tabular-nums;
}
.money-type-progress span { display: block; }
.money-type-progress progress { width: 100%; accent-color: var(--modern-chart-primary); }
.money-type-question { min-width: 0; margin: 0 0 8px; padding: 0; border: 0; }
.money-type-question legend { max-width: 100%; margin-bottom: 12px; padding: 0; font-size: 1.125rem; font-weight: 700; }

.money-type-question .money-type-choice {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--modern-border);
  border-radius: 8px;
  background: var(--modern-surface);
  color: var(--modern-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.money-type-choice:hover,
.money-type-choice[aria-pressed="true"] { border-color: var(--modern-text); }
.money-type-choice[aria-pressed="true"] { font-weight: 750; }
.money-type-choice:focus-visible { outline: 2px solid var(--modern-chart-primary); outline-offset: 2px; }

.money-type-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.money-type-actions [data-quiz-back] { min-height: 48px; padding-inline: 20px; }
.money-type-share { max-width: 100%; min-width: 0; }
.money-type-share[open] { flex-basis: 100%; }
.money-type-share-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--modern-border);
  border-radius: 50%;
  background: var(--modern-surface);
  color: var(--modern-text);
  list-style: none;
  cursor: pointer;
}

.money-type-share-button::-webkit-details-marker { display: none; }
.money-type-share-button:hover { border-color: var(--modern-text); }
.money-type-share-button:focus-visible { outline: 2px solid var(--modern-chart-primary); outline-offset: 2px; }
.money-type-share-preview { width: min(100%, 480px); margin-top: 12px; }
.money-type-share-preview img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border: 1px solid var(--modern-border);
  border-radius: 8px;
}

.money-type-share-preview .modern-primary-action { width: auto; }
.money-type-share-preview [hidden] { display: none; }
.money-type-download { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 10px; }
.money-type-share [data-money-share-link] {
  display: block;
  width: min(100%, 380px);
  margin-block: 8px;
}
.money-type-share [data-money-share-link][hidden] { display: none; }
.money-type-share [data-money-share-status]:empty { margin: 0; }

.money-type-method { margin-block: 20px; }
