.calculator-card {
  width: min(var(--interior-card-width, 1320px), 100%);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) clamp(34px, 6vw, 98px);
}

.calculator-card__logo {
  display: block;
  width: min(320px, 42%);
  margin: 0 0 22px auto;
}

.calculator-card__page-title {
  margin: 0 0 26px;
  color: var(--blue);
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1;
}

html[data-theme="dark"] .calculator-card__page-title {
  color: var(--white);
}

.acu-loan-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0px auto;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #fff;
  color: #0F3457;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow .3s ease;
}

.acu-loan-wrap:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

html[data-theme="dark"] .acu-loan-wrap {
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(183,215,242,0.18);
  background: rgba(4,22,38,0.78);
  box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}

html[data-theme="dark"] .acu-loan-wrap:hover {
  box-shadow: 0 24px 44px rgba(0,0,0,0.34);
}

.checking-card .acu-title,
.acu-title {
  margin: 0 0 16px;
  color: #105698;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: normal;
}

.acu-help {
  margin: -15px 0 16px;
  font-size: 17px;
  font-style: italic;
  color: #0F3457;
}

html[data-theme="dark"] .checking-card .acu-title,
html[data-theme="dark"] .acu-title,
html[data-theme="dark"] .acu-help {
  color: rgba(224,238,249,0.9);
}

.acu-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.acu-field {
  display: grid;
  gap: 8px;
}

.acu-label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #0F3457;
  font-size: .95rem;
  font-weight: 500;
}

html[data-theme="dark"] .acu-label {
  color: rgba(255,255,255,0.9);
}

.acu-input {
  width: 100%;
  min-height: auto;
  padding: 12px 14px;
  color: #0F3457;
  background: #fff;
  border: 1px solid #cfd9e3;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.acu-input:focus {
  outline: none;
  border-color: #105698;
  box-shadow: 0 0 0 3px rgba(16,86,152,0.15);
}

html[data-theme="dark"] .acu-input {
  color: rgba(255,255,255,0.94);
  background: rgba(255,255,255,0.055);
  border-color: rgba(183,215,242,0.22);
  caret-color: #6AB14A;
}

html[data-theme="dark"] .acu-input::placeholder {
  color: rgba(224,238,249,0.56);
}

html[data-theme="dark"] .acu-input:focus {
  border-color: #6AB14A;
  background: rgba(255,255,255,0.085);
  box-shadow: 0 0 0 3px rgba(106,177,74,0.22);
}

.acu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: auto;
  margin-top: 16px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: #6AB14A;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.acu-btn:hover,
.acu-btn:focus {
  color: #fff;
  background: #105698;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

.acu-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.acu-result {
  display: block;
  gap: 0;
  margin-top: 16px;
  padding: 14px;
  color: #0F3457;
  background: #f8fbff;
  border: 1px dashed #cfd9e3;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  font-size: 1rem;
}

html[data-theme="dark"] .acu-result {
  color: rgba(255,255,255,0.94);
  background: rgba(16,86,152,0.18);
  border-color: rgba(106,177,74,0.45);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.22);
}

.acu-result[hidden] {
  display: none;
}

.acu-sub {
  margin-top: 6px;
  color: #425b73;
  font-size: .92rem;
}

html[data-theme="dark"] .acu-sub {
  color: rgba(224,238,249,0.78);
}

.acu-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.acu-loan-wrap section {
  display: grid;
  gap: 18px;
}

.acu-loan-wrap section[hidden] {
  display: none;
}

.acu-input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  min-height: auto;
  padding: 0;
  border: 1px solid #cfd9e3;
  border-radius: 6px;
  background: #e6eef5;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  margin: 6px 0 12px;
}

.acu-input[type=range]::-webkit-slider-runnable-track {
  height: 24px;
  background: #e6eef5;
  border-radius: 6px;
  border: 0;
}

.acu-input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6AB14A;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background .2s;
  margin-top: 2px;
}

.acu-input[type=range]::-webkit-slider-thumb:hover {
  background: #105698;
}

.acu-input[type=range]::-moz-range-track {
  height: 24px;
  background: #e6eef5;
  border-radius: 6px;
  border: 0;
}

.acu-input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6AB14A;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background .2s;
  border: 0;
}

.acu-input[type=range]::-moz-range-thumb:hover {
  background: #105698;
}

.acu-input[type=range]:focus {
  box-shadow: 0 0 0 3px rgba(16,86,152,0.15);
  border-radius: 8px;
}

html[data-theme="dark"] .acu-input[type=range] {
  border-color: rgba(183,215,242,0.22);
  background: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .acu-input[type=range]::-webkit-slider-runnable-track {
  background: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .acu-input[type=range]::-webkit-slider-thumb {
  background: #6AB14A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.34);
}

html[data-theme="dark"] .acu-input[type=range]::-webkit-slider-thumb:hover {
  background: #105698;
}

html[data-theme="dark"] .acu-input[type=range]::-moz-range-track {
  background: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .acu-input[type=range]::-moz-range-thumb {
  background: #6AB14A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.34);
}

html[data-theme="dark"] .acu-input[type=range]::-moz-range-thumb:hover {
  background: #105698;
}

html[data-theme="dark"] .acu-input[type=range]:focus {
  box-shadow: 0 0 0 3px rgba(106,177,74,0.22);
}

.acu-input[type=number] {
  line-height: 1.2;
}

.acu-toggle-row {
  margin-top: 24px;
}

.acu-toggle-row .acu-toggle {
  width: 100%;
  margin-top: 0;
  background: #6AB14A;
  color: #fff;
}

.acu-toggle-row .acu-toggle:hover,
.acu-toggle-row .acu-toggle:focus {
  background: #6AB14A;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

.acu-toggle.is-active {
  background: #EC5F26 !important;
  color: #fff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.20) !important;
}

.acu-toggle.is-active:hover,
.acu-toggle.is-active:focus {
  background: #EC5F26 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.20) !important;
}

.acu-toggle:focus-visible {
  outline: 3px solid rgba(16,86,152,0.35);
  outline-offset: 2px;
}

.calculator-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}

.calculator-link-grid .acu-btn {
  width: 100%;
  min-height: 64px;
  margin: 0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 600px) {
  .acu-dual {
    grid-template-columns: 1fr;
  }

  #acu-heloc-card .acu-dual[style],
  #acu-cc-card .acu-dual[style],
  #acu-save-card .acu-dual[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  #acu-heloc-card .acu-dual .acu-btn,
  #acu-cc-card .acu-dual .acu-btn,
  #acu-save-card .acu-toggle {
    width: 100%;
  }
}
