/*
 * Affordable Bookkeeping Tools: shared styles.
 *
 * Mobile first. Colours, fonts and corner radius come from the theme's CSS
 * variables, with the same values as fallbacks so a tool still looks right
 * under another theme. Selectors that style headings and text carry an
 * element name too, so they win over the theme's .prose page styles.
 */

.abt-tool,
.abt-dialog {
  --abt-primary: var(--color-primary, #07513b);
  --abt-on-primary: var(--color-on-primary, #ffffff);
  --abt-primary-soft: #eef5f1;
  --abt-primary-soft: color-mix(in srgb, var(--abt-primary) 7%, var(--abt-surface));
  --abt-accent: var(--color-primary-fixed, #aef0d2);
  --abt-text: var(--color-on-surface, #191c1a);
  --abt-muted: var(--color-on-surface-variant, #404944);
  --abt-outline: var(--color-outline, #707973);
  --abt-line: var(--color-outline-variant, #bfc9c2);
  --abt-surface: var(--color-surface-container-lowest, #ffffff);
  --abt-surface-low: var(--color-surface-container-low, #f2f4f0);
  --abt-surface-high: var(--color-surface-container-high, #e6e9e5);
  --abt-page: var(--color-background, #f8faf6);
  --abt-error: var(--color-error, #ba1a1a);
  --abt-error-soft: var(--color-error-container, #ffdad6);
  --abt-on-error-soft: var(--color-on-error-container, #93000a);
  --abt-radius: var(--radius, 0.5rem);
  --abt-radius-lg: var(--radius-lg, 1rem);
  --abt-tap: 48px;

  font-family: var(--font-family-base, "Manrope", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--abt-text);
  -webkit-tap-highlight-color: transparent;
}

.abt-tool *,
.abt-dialog * {
  box-sizing: border-box;
}

.abt-tool {
  max-width: 800px; /* The theme's page text width, so both edges line up. */
  margin: 32px 0;
}

.abt-tool [hidden],
.abt-dialog [hidden] {
  display: none !important;
}

.abt-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.25em;
}

/* --- Steps ------------------------------------------------------------- */

.abt-step {
  margin: 0 0 16px;
  padding: 20px 16px;
  min-width: 0;
  background: var(--abt-surface);
  border: 1px solid var(--abt-line);
  border-radius: var(--abt-radius-lg);
}

.abt-tool :is(h2, h3, legend).abt-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--abt-text);
}

/* Lets a <legend> sit inside the card like a heading. */
.abt-tool legend.abt-step-title {
  float: left;
}

.abt-tool legend.abt-step-title + * {
  clear: both;
}

.abt-step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--abt-primary);
  color: var(--abt-on-primary);
  font-size: 14px;
  font-weight: 700;
}

/* --- Fields ------------------------------------------------------------ */

.abt-field {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.abt-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--abt-muted);
}

.abt-label--sm {
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.abt-input {
  display: flex;
  align-items: center;
  min-height: var(--abt-tap);
  background: var(--abt-surface);
  border: 1px solid var(--abt-outline);
  border-radius: var(--abt-radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.abt-input:focus-within {
  border-color: var(--abt-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--abt-primary) 22%, transparent);
}

.abt-input.is-invalid {
  border-color: var(--abt-error);
}

.abt-tool .abt-input input,
.abt-dialog .abt-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: calc(var(--abt-tap) - 2px);
  margin: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* 16px or more stops iPhones zooming in on focus. */
  color: var(--abt-text);
}

.abt-input input::placeholder {
  color: var(--abt-outline);
  opacity: 1;
}

.abt-affix {
  flex: none;
  padding: 0 12px;
  color: var(--abt-muted);
  font-weight: 600;
}

.abt-affix:first-child {
  padding-right: 0;
}

.abt-input--lg {
  min-height: 56px;
}

.abt-tool .abt-input--lg input {
  height: 54px;
  font-size: 22px;
  font-weight: 700;
}

.abt-input--lg .abt-affix {
  font-size: 20px;
}

/* Segmented toggle (two radio buttons that look like one switch). */
.abt-segment {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  background: var(--abt-surface-low);
  border: 1px solid var(--abt-line);
  border-radius: var(--abt-radius);
}

.abt-segment label {
  position: relative;
  display: block;
  margin: 0;
}

.abt-segment input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.abt-segment span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: calc(var(--abt-radius) - 2px);
  font-size: 15px;
  font-weight: 600;
  color: var(--abt-muted);
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.abt-segment input:checked + span {
  background: var(--abt-primary);
  color: var(--abt-on-primary);
  box-shadow: 0 2px 6px rgba(16, 86, 64, 0.25);
}

.abt-segment input:focus-visible + span {
  outline: 2px solid var(--abt-primary);
  outline-offset: 2px;
}

/* Big radio cards. */
.abt-choices {
  display: grid;
  gap: 12px;
}

.abt-choice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 16px;
  background: var(--abt-surface);
  border: 2px solid var(--abt-line);
  border-radius: var(--abt-radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.abt-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.abt-choice:has(input:checked) {
  border-color: var(--abt-primary);
  background: var(--abt-primary-soft);
}

.abt-choice:has(input:focus-visible) {
  outline: 2px solid var(--abt-primary);
  outline-offset: 2px;
}

.abt-choice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--abt-radius);
  background: var(--abt-surface-low);
  color: var(--abt-primary);
}

.abt-choice:has(input:checked) .abt-choice-icon {
  background: var(--abt-primary);
  color: var(--abt-on-primary);
}

.abt-choice-body {
  display: block;
}

.abt-choice-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--abt-text);
}

.abt-choice-text {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--abt-muted);
}

/* --- Buttons ----------------------------------------------------------- */

.abt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--abt-tap);
  margin: 0;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--abt-radius);
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

/* Link buttons (Email, Text) inside page content, where the theme underlines links. */
.abt-tool a.abt-btn {
  text-decoration: none;
}

.abt-btn:focus-visible {
  outline: 2px solid var(--abt-primary);
  outline-offset: 2px;
}

.abt-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.abt-btn--primary {
  background: var(--abt-primary);
  color: var(--abt-on-primary);
  box-shadow: 0 8px 20px rgba(16, 86, 64, 0.2);
}

.abt-btn--primary:not(:disabled):active {
  transform: scale(0.98);
}

.abt-btn--outline {
  border-color: var(--abt-outline);
  color: var(--abt-primary);
}

.abt-btn--outline:hover {
  background: var(--abt-surface-low);
}

.abt-btn--quiet {
  color: var(--abt-primary);
}

.abt-btn--quiet:hover {
  background: var(--abt-surface-low);
}

.abt-btn--sm {
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.abt-btn--lg {
  min-height: 56px;
  font-size: 17px;
}

.abt-btn--block {
  display: flex;
  width: 100%;
}

@media (hover: hover) {
  .abt-btn--primary:not(:disabled):hover {
    transform: translateY(-2px);
  }
}

/* --- Messages ---------------------------------------------------------- */

.abt-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--abt-radius);
  background: var(--abt-error-soft);
  color: var(--abt-on-error-soft);
  font-size: 15px;
  font-weight: 600;
}

.abt-alert--info {
  background: var(--abt-primary-soft);
  color: var(--abt-primary);
}

.abt-fine {
  margin-top: 8px;
  font-size: 13px;
  color: var(--abt-muted);
}

/* --- Results (shared by tools) ---------------------------------------- */

.abt-results {
  scroll-margin-top: 96px; /* Clears a sticky site header. */
}

.abt-results:focus {
  outline: none;
}

.abt-results.is-stale .abt-card {
  opacity: 0.5;
}

.abt-card {
  transition: opacity 0.2s;
}

.abt-result-head {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.abt-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--abt-muted);
}

.abt-stat strong {
  font-size: 17px;
  color: var(--abt-text);
  font-variant-numeric: tabular-nums;
}

.abt-stat.is-key {
  padding: 14px 16px;
  border-radius: var(--abt-radius);
  background: var(--abt-primary);
  color: var(--abt-accent);
}

.abt-stat.is-key strong {
  font-size: 22px;
  color: var(--abt-on-primary);
}

.abt-tool .abt-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 16px;
}

.abt-tool .abt-table th {
  padding: 12px 0 8px;
  border-bottom: 2px solid var(--abt-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--abt-muted);
}

.abt-tool .abt-table th:last-child,
.abt-tool .abt-table td:last-child {
  text-align: right;
}

.abt-tool .abt-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--abt-line);
  vertical-align: top;
}

.abt-tool .abt-table td:last-child {
  padding-left: 12px;
  white-space: nowrap;
}

.abt-result-name {
  display: block;
  font-weight: 700;
  color: var(--abt-text);
  overflow-wrap: anywhere;
}

.abt-result-detail {
  display: block;
  font-size: 14px;
  color: var(--abt-muted);
}

.abt-result-amount {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--abt-primary);
  font-variant-numeric: tabular-nums;
}

.abt-tool .abt-table tfoot td {
  border-bottom: 0;
  font-weight: 700;
}

.abt-result-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--abt-muted);
}

.abt-result-note:empty {
  display: none;
}

/* --- Steps, hints and progress (multi-step tools) ----------------------- */

.abt-optional {
  font-size: 12px;
  font-weight: 600;
  color: var(--abt-outline);
  text-transform: none;
  letter-spacing: 0;
}

.abt-hint {
  margin: -8px 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--abt-muted);
}

/* --- Progress ---------------------------------------------------------- */

.abt-tool ol.abt-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.abt-tool .abt-progress li {
  margin: 0;
  padding: 0;
}

.abt-progress button,
.abt-progress [data-step-marker] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-bottom: 3px solid var(--abt-line);
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--abt-muted);
  cursor: pointer;
}

.abt-progress-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--abt-surface-high);
  font-size: 12px;
}

.abt-progress .is-done {
  color: var(--abt-primary);
  border-bottom-color: color-mix(in srgb, var(--abt-primary) 35%, transparent);
}

.abt-progress .is-done .abt-progress-num {
  background: var(--abt-primary-soft);
}

.abt-progress [aria-current="step"] {
  color: var(--abt-primary);
  border-bottom-color: var(--abt-primary);
}

.abt-progress [aria-current="step"] .abt-progress-num {
  background: var(--abt-primary);
  color: var(--abt-on-primary);
}

.abt-tool ol.abt-progress--4 {
  grid-template-columns: repeat(4, 1fr);
}

.abt-progress [data-step-marker] {
  cursor: default;
}

/* Four steps on a narrow phone: smaller labels so they all fit. */
@media (max-width: 420px) {
  .abt-progress--4 button,
  .abt-progress--4 [data-step-marker] {
    gap: 4px;
    padding: 0 2px;
    font-size: 12px;
  }

  .abt-progress--4 .abt-progress-num {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

.abt-progress button:focus-visible {
  outline: 2px solid var(--abt-primary);
  outline-offset: 2px;
}

/* --- Next / Back buttons ----------------------------------------------- */

.abt-actions {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}

.abt-actions .abt-btn {
  flex: 1;
}

.abt-actions--split .abt-btn:first-child {
  flex: 0 1 auto;
}

/* Native dropdowns, restyled to match the text boxes. */
.abt-tool .abt-select select,
.abt-tool .abt-input--unit select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: calc(var(--abt-tap) - 2px);
  margin: 0;
  padding: 0 32px 0 12px;
  border: 0;
  outline: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23404944' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: inherit;
  font-size: 16px;
  color: var(--abt-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.abt-tool .abt-input--unit input {
  flex: 1 1 50%;
}

.abt-tool .abt-input--unit select {
  flex: 0 0 auto;
  width: auto;
  max-width: 50%;
  border-left: 1px solid var(--abt-line);
}

/* --- Number tiles ------------------------------------------------------ */

/* Tiles share each row evenly: two side by side on a phone, and on wider
   screens as many as there are (no empty gaps). The key tile has a row of its own. */
.abt-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.abt-tile {
  flex: 1 1 120px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--abt-radius);
  background: var(--abt-surface-low);
}

.abt-tile-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--abt-muted);
}

.abt-tile-value {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--abt-text);
  font-variant-numeric: tabular-nums;
}

.abt-tile-note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--abt-muted);
}

.abt-tile.is-key {
  flex-basis: 100%;
  padding: 16px 18px;
  background: var(--abt-primary);
}

.abt-tile.is-key .abt-tile-label,
.abt-tile.is-key .abt-tile-note {
  color: var(--abt-accent);
}

.abt-tile.is-key .abt-tile-value {
  font-size: 32px;
  color: var(--abt-on-primary);
}

.abt-tile.is-good {
  background: var(--abt-primary-soft);
}

.abt-tile.is-good .abt-tile-value {
  color: var(--abt-primary);
}

.abt-tile.is-high {
  background: var(--abt-error-soft);
}

.abt-tile.is-high .abt-tile-value,
.abt-tile.is-high .abt-tile-note {
  color: var(--abt-on-error-soft);
}

/* --- Exports ----------------------------------------------------------- */

.abt-exports {
  display: grid;
  gap: 8px;
}

.abt-export {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--abt-outline);
  border-radius: var(--abt-radius);
  background: var(--abt-surface);
  font: inherit;
  text-align: left;
  color: var(--abt-text);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.abt-export:hover {
  border-color: var(--abt-primary);
  background: var(--abt-surface-low);
}

.abt-export:focus-visible {
  outline: 2px solid var(--abt-primary);
  outline-offset: 2px;
}

.abt-export:disabled {
  opacity: 0.6;
  cursor: progress;
}

.abt-export-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--abt-radius);
  background: var(--abt-primary-soft);
  color: var(--abt-primary);
}

.abt-export-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.abt-export-text {
  display: block;
  font-size: 13px;
  color: var(--abt-muted);
}

@media (min-width: 600px) {
  .abt-exports {
    grid-template-columns: repeat(3, 1fr);
  }

  .abt-exports--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .abt-export {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }
}

/* --- Share buttons ---------------------------------------------------- */

.abt-share {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--abt-line);
}

.abt-share-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.abt-share-row .abt-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
}

.abt-share [data-share-label] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.abt-share.is-off .abt-btn {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Toolbar and footer ------------------------------------------------ */

.abt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin-bottom: 12px;
}

.abt-toolbar [data-save-to-phone] {
  margin-left: auto;
}

/* Tighter buttons so two fit side by side on a phone. */
.abt-toolbar .abt-btn--sm {
  padding: 0 8px;
}

.abt-footer {
  display: flex;
  justify-content: center;
}

/* "Are you sure?" shown in place of a button. */
.abt-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--abt-line);
  border-radius: var(--abt-radius);
  background: var(--abt-surface);
  text-align: center;
}

.abt-confirm-text {
  font-size: 15px;
  font-weight: 600;
}

.abt-confirm-actions {
  display: flex;
  gap: 8px;
}

.abt-btn--danger {
  background: var(--abt-error);
  color: #ffffff;
}

/* --- Save to phone dialog ---------------------------------------------- */

.abt-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--abt-radius-lg);
  background: var(--abt-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.abt-dialog::backdrop {
  background: rgba(25, 28, 26, 0.5);
}

/* On phones, slide up from the bottom of the screen like a native sheet. */
@media (max-width: 599px) {
  .abt-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: var(--abt-radius-lg) var(--abt-radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.abt-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 4px;
}

.abt-dialog .abt-dialog-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--abt-text);
}

.abt-dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--abt-muted);
  cursor: pointer;
}

.abt-dialog-close:hover {
  background: var(--abt-surface-low);
}

.abt-dialog-body {
  padding: 8px 20px;
}

.abt-dialog .abt-dialog-body ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: abt-step;
}

.abt-dialog .abt-dialog-body li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 40px;
  counter-increment: abt-step;
  border-top: 1px solid var(--abt-line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--abt-text);
}

.abt-dialog .abt-dialog-body li:first-child {
  border-top: 0;
}

.abt-dialog .abt-dialog-body li::before {
  content: counter(abt-step);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--abt-primary-soft);
  color: var(--abt-primary);
  font-size: 13px;
  font-weight: 700;
}

.abt-dialog kbd {
  padding: 1px 6px;
  border: 1px solid var(--abt-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--abt-surface-low);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.abt-dialog-body .abt-icon {
  color: var(--abt-primary);
}

.abt-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 20px;
}

.abt-dialog-actions .abt-btn {
  flex: 1 1 140px;
}

/* --- Larger screens ---------------------------------------------------- */

@media (min-width: 600px) {
  .abt-step {
    padding: 28px;
  }

  .abt-tool :is(h2, h3, legend).abt-step-title {
    font-size: 20px;
  }

  .abt-choices {
    grid-template-columns: 1fr 1fr;
  }

  .abt-choice {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abt-tool *,
  .abt-dialog * {
    transition: none !important;
  }
}
