/* ============================================================
   Aportize - Comparador de renda fixa
   Carregar depois de chrome.css e calculator.css.
   Usa a paleta global, sem redefinir :root, body ou .wrap.
   Requer <main class="wrap calculator-page fic-page">.
   ============================================================ */

.calculator-page.fic-page {
  --fic-column-gap: clamp(56px, 6vw, 96px);
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  color-scheme: dark;
}

/* O JS controla estes estados. Nao substituir hidden por display:grid. */
.fic-page [hidden] {
  display: none !important;
}

.fic-page button,
.fic-page input,
.fic-page summary {
  -webkit-tap-highlight-color: transparent;
}

.fic-page button,
.fic-page input {
  margin: 0;
  font-family: var(--sans);
}

.fic-page button {
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    color var(--t),
    background-color var(--t),
    border-color var(--t);
}

.fic-page button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.fic-page button:focus-visible,
.fic-page summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.fic-page input {
  caret-color: var(--green);
}
.fic-page input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* ---------- Abertura ---------- */

.fic-page .intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 clamp(36px, 4.5vw, 60px);
}

.fic-page .intro__copy {
  min-width: 0;
}

.fic-page .intro .eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.fic-page .intro h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.052em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.fic-page .intro h1 span {
  color: var(--muted);
}

.fic-page .intro .intro__description {
  max-width: 50ch;
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.fic-page .intro__reference {
  flex: none;
  padding-bottom: 3px;
  text-align: right;
}

.fic-page .intro__reference-label,
.fic-page .intro__reference-note {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.fic-page .intro .intro__reference-value {
  margin: 6px 0 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fic-page .intro__reference-value span {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0;
}

/* O container continua exatamente o .wrap definido em chrome.css. */
.fic-page .calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
  background: none;
}

.fic-page #calculator-form {
  display: grid;
  min-width: 0;
  gap: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.fic-page .section-label,
.fic-page .section-header h2 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.fic-page .section-header {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
}

.fic-page .field-hint,
.fic-page .section-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- Valor: numero em destaque, sem painel ---------- */

.fic-page .primary-input {
  margin: 0;
}
.fic-page .primary-input .section-label {
  margin: 0;
}

.fic-page .primary-input__field {
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color var(--t);
}

.fic-page .primary-input__field:focus-within {
  border-color: var(--green);
}

.fic-page .primary-input__currency {
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.fic-page #investment {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-family: var(--mono);
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Prazo ---------- */

.fic-page .term {
  margin: 0;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}

.fic-page .tax-bracket {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

.fic-page .tax-bracket:empty {
  display: none;
}

.fic-page .tax-bracket b {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.fic-page .preset-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--surface);
}

.fic-page .preset-options button {
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: calc(var(--r-sm) - 4px);
  color: var(--muted);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.fic-page .preset-options button[aria-pressed="true"],
.fic-page .tax-toggle button[aria-pressed="true"] {
  color: var(--green);
  background: var(--green-contrast);
  border-color: transparent;
}

.fic-page .field {
  gap: 7px;
}

.fic-page .field-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.fic-page .input-shell {
  height: 48px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: none;
  transition:
    border-color var(--t),
    background-color var(--t);
}

.fic-page .input-shell:focus-within {
  border-color: var(--green);
  box-shadow: none;
}

.fic-page .input-shell input {
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: normal;
}

.fic-page .input-shell--numeric input {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fic-page .field--term {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  margin: 16px 0 0;
}

.fic-page .field--term .field-label {
  font-size: 0.8125rem;
}

.fic-page .field--term .input-shell {
  flex: 0 0 112px;
  width: 112px;
  height: 44px;
  gap: 8px;
}

.fic-page .input-unit {
  flex: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  pointer-events: none;
}

/* ---------- Investimentos: linhas, nao cards ---------- */

.fic-page .comparison-options {
  min-width: 0;
}

.fic-page .rows {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.fic-page .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  grid-template-areas:
    "name  name  remove"
    "type  basis basis"
    "rate  tax   tax";
  align-items: end;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}

.fic-page .field--name {
  grid-area: name;
}
.fic-page .field--type {
  grid-area: type;
}
.fic-page .field--basis {
  grid-area: basis;
}
.fic-page .field--rate {
  grid-area: rate;
}
.fic-page .field--tax {
  grid-area: tax;
}
.fic-page .row .field-label {
  display: block;
}

/* ---------- Selects de tipo e base ---------- */

.fic-page .select-shell {
  position: relative;
  height: 48px;
  min-width: 0;
}

.fic-page .select-shell::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.fic-page .row select {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 32px 0 13px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text);
  background: var(--surface-2);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    border-color var(--t),
    background-color var(--t);
}

.fic-page .row select:focus-visible {
  outline: none;
  border-color: var(--green);
}

.fic-page .row select option {
  color: var(--text);
  background: var(--surface);
}

.fic-page .tax-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  height: 48px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.fic-page .tax-toggle button {
  min-width: 0;
  min-height: 40px;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: calc(var(--r-sm) - 4px);
  color: var(--muted);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.fic-page .remove-button {
  grid-area: remove;
  align-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--muted);
  background: transparent;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.fic-page .add-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  color: var(--green);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
}

.fic-page .add-button__icon {
  font-size: 1.375rem;
  line-height: 1;
}

.fic-page .warning {
  margin: 12px 0 0;
  color: var(--red);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.fic-page .warning:empty {
  display: none;
}

.fic-page .noscript {
  margin: 0 0 28px;
  padding: 16px 0;
  border-block: 1px solid var(--hairline);
  color: var(--text-secondary);
  background: transparent;
}

/* ---------- Resultado aberto, sem caixa ou sombra ---------- */

.fic-page .result,
.fic-page .result-empty {
  position: static;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.fic-page .result > .section-label {
  margin: 0;
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
}

.fic-page .winner {
  display: block;
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.75rem, 2.7vw, 2.375rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.fic-page .winner__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.fic-page .winner__note:empty {
  display: none;
}

.fic-page .winner__note b {
  color: var(--green);
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.fic-page #result-rows {
  margin-top: 28px;
}

.fic-page .result-option {
  min-width: 0;
  margin: 0;
  padding: 19px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}

.fic-page .result-option:first-of-type {
  margin-top: 0;
  border-top: 1px solid var(--hairline);
}

.fic-page .result-option__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 7px;
}

.fic-page .result-option__name {
  flex: 1 1 120px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fic-page .result-option__value {
  flex: none;
  max-width: 100%;
  margin-left: auto;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fic-page .result-option--winner .result-option__name {
  color: var(--text);
}
.fic-page .result-option--winner .result-option__value {
  color: var(--green);
}

.fic-page .result-option__details {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.fic-page .result-option__details b {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.fic-page .statement {
  margin: 24px 0 0;
}

.fic-page .statement__row {
  gap: 4px 16px;
  padding: 6px 0;
  border: 0;
}

.fic-page .statement__row dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.fic-page .statement__row dd {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.fic-page .note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.fic-page .note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fic-page #cdi-source:empty {
  display: none;
}

.fic-page #tax-bracket-hint:not([hidden]) {
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--green);
  color: var(--text-secondary);
}

.fic-page .assumptions {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
}

.fic-page .assumptions summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 15px 28px 15px 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.fic-page .assumptions summary::-webkit-details-marker {
  display: none;
}

.fic-page .assumptions summary::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 2px;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 400;
}

.fic-page .assumptions[open] summary::after {
  content: "\2212";
}
.fic-page .assumptions__content {
  padding-bottom: 10px;
}
.fic-page .assumptions__content .note:first-child {
  margin-top: 0;
}

.fic-page #copy-comparison {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Sem dados, nao inventar resultado ou spinner. */
.fic-page .result:not([hidden]) + .result-empty {
  display: none;
}
.fic-page .result-empty {
  min-height: 240px;
}

.fic-page .result-empty > .section-label {
  color: var(--muted);
  font-size: 0.8125rem;
}

.fic-page .result-empty__title {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.75rem, 2.7vw, 2.375rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.fic-page .result-empty__description {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---------- Projeção no tempo ---------- */

.fic-page .fic-chart {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
}

.fic-page .fic-chart .section-header {
  margin-bottom: 0;
}

.fic-page .fic-chart .section-description {
  margin: 6px 0 16px;
}

/* Legenda própria, em fluxo normal — a interna do ApexCharts transbordava. */
.fic-page .fic-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.fic-page .fic-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.fic-page .fic-chart__legend-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.fic-page .fic-chart__legend-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fic-page .fic-chart__canvas {
  width: 100%;
  min-width: 0;
  height: clamp(260px, 40vw, 420px);
}

@media (max-width: 619px) {
  .fic-page .fic-chart {
    margin-top: 32px;
    padding-top: 24px;
  }
  .fic-page .fic-chart .section-description {
    margin: 6px 0 12px;
  }
  .fic-page .fic-chart__legend {
    gap: 6px 14px;
  }
  .fic-page .fic-chart__legend-label {
    max-width: 40vw;
  }
  .fic-page .fic-chart__canvas {
    height: 264px;
  }
}

/* ApexCharts injeta o próprio CSS; aqui só encostamos no tema. */
.fic-page .apexcharts-canvas {
  margin: 0 auto;
}

.fic-page .apexcharts-tooltip.apexcharts-theme-dark {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.fic-page .apexcharts-tooltip-title {
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--sans);
}

.fic-page .apexcharts-xaxistooltip,
.fic-page .apexcharts-yaxistooltip {
  display: none;
}

/* ---------- Interacao ---------- */

@media (hover: hover) {
  .fic-page .primary-input__field:hover:not(:focus-within) {
    border-color: var(--muted);
  }

  .fic-page
    .preset-options
    button:not([aria-pressed="true"]):not(:disabled):hover,
  .fic-page .tax-toggle button:not([aria-pressed="true"]):not(:disabled):hover {
    color: var(--text);
    background: var(--surface-2);
  }

  .fic-page .remove-button:not(:disabled):hover {
    color: var(--red);
    background: var(--surface);
  }

  .fic-page .row select:hover {
    border-color: var(--muted);
  }

  .fic-page .add-button:not(:disabled):hover {
    color: var(--text);
  }

  .fic-page #copy-comparison:not(:disabled):hover {
    color: var(--text);
    border-color: var(--muted);
    background: var(--surface-2);
  }

  .fic-page .assumptions summary:hover {
    color: var(--text);
  }
}

/* ---------- Tablet e desktop ---------- */

@media (min-width: 620px) {
  .fic-page .row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.15fr) 44px;
    grid-template-areas:
      "name type  basis remove"
      "rate rate  tax   remove";
    gap: 12px 10px;
    padding-bottom: 16px;
  }

  .fic-page .row:not(:first-child) .field-label {
    display: none;
  }
  .fic-page .rows {
    gap: 16px;
  }
}

/* So abrir duas colunas quando o .wrap comporta todos os controles. */
@media (min-width: 1180px) {
  .fic-page .calculator-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: var(--fic-column-gap);
    /* Gradiente solido de 1px: apenas o fio, nao um efeito decorativo. */
    background-image: linear-gradient(var(--hairline), var(--hairline));
    background-size: 1px 100%;
    background-repeat: no-repeat;
    background-position: calc(52.5% - var(--fic-column-gap) * 0.025) 0;
  }

  .fic-page .result,
  .fic-page .result-empty {
    padding: 0;
    border-top: 0;
  }
}

/* Sticky apenas em telas largas e altas, com as notas fechadas. */
@media (min-width: 1180px) and (min-height: 920px) {
  .fic-page .result:not(:has(.assumptions[open])),
  .fic-page .result-empty {
    position: sticky;
    top: calc(var(--nav-h) + 28px);
  }
}

@media (max-width: 1179px) {
  .fic-page .intro {
    display: block;
  }

  .fic-page .intro__reference {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 24px;
    padding: 0;
    text-align: left;
  }

  .fic-page .intro .intro__reference-value {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.025em;
  }
  .fic-page .intro__reference-note {
    display: none;
  }
}

@media (max-width: 619px) {
  .fic-page .intro .eyebrow {
    margin-bottom: 16px;
    font-size: 0.75rem;
  }
  .fic-page .intro h1 {
    font-size: clamp(1.875rem, 8.5vw, 3rem);
    line-height: 1.08;
  }
  .fic-page .intro .intro__description {
    margin-top: 18px;
    font-size: 0.9375rem;
  }
  .fic-page .intro__break {
    display: none;
  }
  .fic-page .intro__reference {
    margin-top: 20px;
  }
  .fic-page #calculator-form {
    gap: 28px;
  }
  .fic-page .primary-input__field {
    gap: 10px;
  }
  .fic-page #investment {
    font-size: clamp(2.125rem, 10.5vw, 3.5rem);
  }
  .fic-page .preset-options {
    gap: 2px;
  }
  .fic-page .preset-options button {
    min-height: 44px;
    padding-inline: 3px;
    font-size: 0.8125rem;
  }
  /* A tipografia do campo nao precisa diminuir para caber no celular. */
  .fic-page .input-shell input {
    font-size: 1rem;
  }
  .fic-page .tax-toggle {
    height: 52px;
  }
  .fic-page .tax-toggle button {
    min-height: 44px;
  }
  .fic-page .row .input-shell,
  .fic-page .row .select-shell,
  .fic-page .remove-button {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fic-page *,
  .fic-page *::before,
  .fic-page *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* Cores do sistema apenas quando o usuario pede alto contraste. */
@media (forced-colors: active) {
  .fic-page .input-shell,
  .fic-page .row select,
  .fic-page .tax-toggle,
  .fic-page #copy-comparison {
    border: 1px solid ButtonText;
  }

  .fic-page button[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -3px;
  }

  .fic-page button:focus-visible,
  .fic-page summary:focus-visible {
    outline-color: Highlight;
  }
  .fic-page .input-shell:focus-within {
    border-color: Highlight;
  }
  .fic-page .primary-input__field:focus-within {
    border-color: Highlight;
  }
}
