/* Warm neutrals, one gold accent, and a focused financial workspace. */
:root {
  --portal-bg: #101110;
  --portal-surface: #191a18;
  --portal-line: #30312c;
  --portal-text: #f2f0e8;
  --portal-muted: #a6a79e;
  --portal-gold: #d6ba78;
  --portal-space: clamp(20px, 4vw, 64px);
}
[hidden] {
  display: none !important;
}
body {
  background: var(--portal-bg);
  color: var(--portal-text);
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 12px var(--portal-space);
  border-bottom: 1px solid var(--portal-line);
  background: rgba(16, 17, 16, 0.96);
  backdrop-filter: blur(14px);
}
.portal-header .brand {
  min-width: 0;
  gap: 12px;
}
.portal-header .brand img {
  width: 54px;
  height: 54px;
}
.portal-header .brand > span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.portal-header .brand small {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.2em;
  margin-top: 5px;
  color: var(--portal-gold);
}
.header-context {
  padding-left: 28px;
  border-left: 1px solid var(--portal-line);
  color: var(--portal-muted);
  font-size: 13px;
}
.portal-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
}
.portal-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
}
.portal-header nav a:hover {
  color: var(--portal-gold);
}
.portal-main {
  max-width: 1440px;
  margin: auto;
  padding: 36px var(--portal-space) 84px;
  min-height: calc(100svh - 174px);
}
.portal-main h1,
.portal-main h2,
.portal-main h3 {
  font-family: "Manrope", sans-serif;
  color: var(--portal-text);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.portal-main h1 {
  font-size: 36px;
  margin: 0;
}
.portal-main h2 {
  font-size: 21px;
  margin: 0;
}
.portal-main h3 {
  font-size: 16px;
  margin: 22px 0 10px;
  letter-spacing: -0.02em;
}
.portal-main p {
  margin: 0 0 16px;
}
.portal-main .section-label {
  color: var(--portal-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0 0 9px;
}
.portal-main .small-heading {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--portal-muted);
  margin: 0 0 16px;
}
.portal-main a {
  text-underline-offset: 4px;
}
.portal-main :focus-visible,
.portal-header :focus-visible,
.portal-footer :focus-visible {
  outline: 2px solid var(--portal-gold);
  outline-offset: 4px;
}
.portal-main button,
.portal-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--portal-gold);
  border-radius: 7px;
  background: var(--portal-gold);
  color: #171811;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 17px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.portal-main button:hover,
.portal-header button:hover {
  background: #e5cc92;
  border-color: #e5cc92;
}
.portal-main button:active:not(:disabled),
.portal-header button:active:not(:disabled) {
  transform: translateY(1px);
}
.portal-main button.secondary,
.portal-header button.secondary {
  background: transparent;
  color: var(--portal-text);
  border-color: #45463e;
  font-weight: 500;
}
.portal-main button.secondary:hover,
.portal-header button.secondary:hover {
  background: #22231f;
  border-color: #777567;
}
.portal-main button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.portal-main button[aria-busy="true"] {
  cursor: progress;
}
.portal-main input,
.portal-main select,
.portal-main textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid #52544a;
  border-radius: 7px;
  background: #121310;
  color: var(--portal-text);
  padding: 12px 14px;
  font-size: 16px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
  color-scheme: dark;
}
.portal-main input::placeholder,
.portal-main textarea::placeholder {
  color: #7e8176;
}
.portal-main input:hover,
.portal-main select:hover,
.portal-main textarea:hover {
  border-color: #777969;
}
.portal-main input:focus,
.portal-main select:focus,
.portal-main textarea:focus {
  border-color: var(--portal-gold);
}
.portal-main textarea {
  resize: vertical;
}
.portal-main label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 22px 0 9px;
}
.muted {
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.65;
}
.notice {
  background: #24231d;
  color: #ded0aa;
  border: 0;
  border-left: 2px solid var(--portal-gold);
  border-radius: 0 5px 5px 0;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.notice strong {
  color: #ead9b0;
  font-weight: 600;
}
.notice.error {
  border-color: #dfa8a0;
  background: #2b201e;
  color: #f1c4be;
}
.portal-main > #notice {
  position: sticky;
  top: 94px;
  z-index: 25;
}
.portal-main .setup-notice {
  margin: 0 0 28px;
  padding: 11px 16px;
  color: #bdb7a3;
}
.setup-notice a {
  color: #e4d1a6;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 30px;
}
.workspace-heading .section-label {
  color: var(--portal-muted);
}
.sync-control {
  display: flex;
  align-items: center;
  gap: 22px;
}
.sync-control #updated {
  margin: 0;
  max-width: 180px;
  font-size: 11px;
  text-align: right;
}
.portal-main #refresh {
  border-color: var(--portal-line);
  font-size: 12px;
  padding: 10px 13px;
}
#refresh[aria-busy="true"] > span {
  animation: refresh-turn 0.8s linear infinite;
}
.account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.account-sidebar {
  height: 100%;
  border-right: 1px solid var(--portal-line);
  padding-right: 24px;
}
.sidebar-inner {
  position: sticky;
  top: 112px;
}
.portal-main .account-option {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px 14px;
  margin: 0 0 8px;
  text-align: left;
  background: transparent;
  color: var(--portal-text);
  border: 1px solid transparent;
  border-radius: 5px;
}
.portal-main .account-option:hover {
  background: #1c1d19;
  border-color: transparent;
}
.portal-main .account-option[aria-pressed="true"] {
  background: #24251e;
  border-color: transparent;
}
.account-option[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--portal-gold);
}
.account-option .option-kind {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.account-option .option-amount {
  display: block;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.account-option small {
  display: block;
  color: var(--portal-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.8;
}
.section-navigation {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--portal-line);
  margin-top: 26px;
  padding-top: 22px;
}
.section-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--portal-muted);
  font-size: 12px;
  text-decoration: none;
  border-radius: 5px;
  transition:
    background 160ms ease,
    color 160ms ease;
}
.section-navigation a:first-child {
  color: var(--portal-gold);
}
.section-navigation a:hover,
.section-navigation a:focus-visible {
  color: var(--portal-text);
  background: #1b1d18;
}
.sidebar-support {
  margin-top: 44px;
  padding: 0 12px;
  font-size: 11px;
}
.sidebar-support p {
  color: var(--portal-muted);
  margin-bottom: 7px;
}
.sidebar-support a {
  display: inline-block;
  color: var(--portal-text);
  text-decoration: none;
  line-height: 1.8;
}
.sidebar-support a span {
  color: var(--portal-gold);
  margin-left: 4px;
}
#account-detail {
  min-width: 0;
}
.account-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(278px, 0.76fr);
  gap: 32px;
  align-items: start;
}
.balance-workspace {
  min-width: 0;
}
#account-summary .notice {
  margin-bottom: 25px;
}
.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.summary-top h2 {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--portal-gold);
  text-transform: uppercase;
  white-space: nowrap;
}
.status-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.customer-reference {
  font-size: 11px;
  color: var(--portal-muted);
  overflow-wrap: anywhere;
}
.portal-main .balance-caption {
  margin: 34px 0 3px;
  font-size: 12px;
  color: var(--portal-muted);
}
.account-balance {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 4.9vw, 76px);
  letter-spacing: -0.065em;
  line-height: 1.1;
  margin: 0 0 13px !important;
  font-variant-numeric: tabular-nums;
}
.balance-date {
  font-size: 10px;
  color: var(--portal-muted);
}
.breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-block: 1px solid var(--portal-line);
  padding: 22px 0;
  margin: 24px 0 20px;
}
.breakdown dt {
  font-size: 10px;
  color: var(--portal-muted);
}
.breakdown dd {
  font-size: 17px;
  font-weight: 500;
  margin: 6px 0 0;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.account-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 22px;
  margin: 0;
}
.account-facts dt {
  font-size: 10px;
  color: var(--portal-muted);
  margin-bottom: 4px;
}
.account-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.account-facts dd small {
  font-size: 11px;
  color: var(--portal-muted);
  font-weight: 400;
}
.portal-main .account-terms {
  border-top: 1px solid var(--portal-line);
  margin: 21px 0 0;
  padding-top: 13px;
  font-size: 10px;
  color: var(--portal-muted);
}
.account-terms span + span::before {
  content: "·";
  margin: 0 10px;
  color: #676a5c;
}
.payment-workspace {
  background: var(--portal-surface);
  border-top: 2px solid var(--portal-gold);
  border-radius: 0 0 8px 8px;
  padding: 23px;
  min-width: 0;
}
.due-heading h2 {
  font-size: 19px;
  margin: 0 0 25px;
}
.due-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  margin: 0 0 20px;
}
.due-grid > div:first-child {
  grid-column: 1/-1;
  padding-bottom: 21px;
  border-bottom: 1px solid #36382f;
}
.due-grid dt {
  color: var(--portal-muted);
  font-size: 10px;
}
.due-grid dd {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 0;
}
.due-grid > div:first-child dd {
  font-size: 42px;
  line-height: 1.25;
  color: #e4cc95;
}
.due-grid small {
  font-size: 10px;
  color: var(--portal-muted);
}
.portal-main #due-summary > p:last-child {
  font-size: 10px;
  margin: 0;
}
.payment-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #36382f;
}
.payment-form label {
  margin: 0 0 9px;
  font-size: 11px;
}
.payment-controls {
  display: grid;
  gap: 10px;
}
.amount-input {
  position: relative;
}
.amount-input > span {
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--portal-muted);
  font-size: 17px;
}
.amount-input input {
  padding-left: 32px;
  font-variant-numeric: tabular-nums;
}
.payment-controls button {
  width: 100%;
  font-size: 12px;
  padding-inline: 10px;
}
.portal-main .payment-disclosure {
  font-size: 10px;
  margin: 12px 0 0;
}
.tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.portal-main .tools button {
  font-size: 11px;
  min-height: 44px;
  padding: 9px 11px;
  border-color: var(--portal-line);
}
.workspace-section {
  margin-top: 44px;
  scroll-margin-top: 112px;
}
#overview {
  scroll-margin-top: 112px;
}
.portal-main .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--portal-line);
}
.portal-main .section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-heading > .muted {
  font-size: 11px;
  text-align: right;
}
#schedule {
  max-height: 252px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #696348 transparent;
}
.activity {
  padding: 18px 0;
  border-bottom: 1px solid var(--portal-line);
  break-inside: avoid;
}
.activity-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.activity-top strong {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.activity-top > strong:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.activity-top > strong:last-child {
  font-variant-numeric: tabular-nums;
}
.activity-top > span {
  font-size: 11px;
  color: var(--portal-gold);
  text-align: right;
}
.activity .muted {
  font-size: 11px;
  margin: 5px 0 0;
}
.activity small {
  color: var(--portal-muted);
  font-size: 10px;
}
.activity .allocation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 13px;
  font-size: 11px;
  color: var(--portal-muted);
  font-variant-numeric: tabular-nums;
}
.receipt-ref {
  overflow-wrap: anywhere;
  display: block;
  margin-top: 5px;
}
.activity-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.portal-main .activity-actions button {
  border-color: transparent;
  padding: 9px 0;
  min-height: 44px;
  font-size: 11px;
  color: #d3bc87;
  border-radius: 3px;
}
.portal-main .activity-actions button + button {
  margin-left: 10px;
}
.portal-main .activity-actions button:hover {
  background: transparent;
  color: #f1d99f;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.history-heading {
  margin-top: 30px;
}
.history-heading .muted {
  max-width: 650px;
}
#more-history {
  margin-top: 18px;
}
.service-panel {
  border-bottom: 1px solid var(--portal-line);
  padding: 0;
  margin: 0;
  scroll-margin-top: 112px;
}
.service-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 20px 3px;
  list-style: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    padding 180ms ease;
}
.service-panel > summary::-webkit-details-marker {
  display: none;
}
.service-panel > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-right: 1.5px solid var(--portal-gold);
  border-bottom: 1.5px solid var(--portal-gold);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.service-panel[open] > summary::after {
  transform: rotate(225deg);
}
.service-panel > summary:hover {
  color: var(--portal-gold);
  padding-left: 7px;
}
.service-label {
  display: grid;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.service-label small {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}
.service-panel[open] {
  padding-bottom: 25px;
}
.service-panel[open] > .muted {
  max-width: 650px;
}
.service-panel[open] > *:not(summary) {
  animation: detail-reveal 180ms ease-out;
}
.service-panel form {
  max-width: 650px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.service-panel form > button {
  margin-top: 17px;
}
.service-panel .check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.65;
  font-weight: 400;
}
.service-panel input[type="checkbox"] {
  display: inline-block;
  flex: none;
  width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 0;
  padding: 0;
  accent-color: var(--portal-gold);
}
#contact-current {
  padding: 3px 0 8px;
  overflow-wrap: anywhere;
}
#contact-form {
  margin-top: 30px;
  border-top: 1px solid var(--portal-line);
  padding-top: 5px;
}
#autopay-state > p {
  font-size: 13px;
}
#cancel-autopay {
  margin-top: 18px;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-block: 1px solid var(--portal-line);
  margin: 24px 0;
  padding-bottom: 20px;
}
.comparison > div:last-child {
  border-left: 2px solid var(--portal-gold);
  padding-left: 24px;
}
.comparison p {
  font-size: 12px;
  margin-bottom: 8px;
}
#savings-result:not(:empty) {
  padding: 28px 0 0;
  max-width: 650px;
}
#savings-result > .account-balance {
  font-size: 48px;
  color: #e4cc95;
}
#savings-result > .muted {
  font-size: 11px;
}
#paid-off-progress {
  padding-top: 26px;
}
#payoff-result {
  margin-top: 32px;
  padding: 25px 0;
  border-block: 1px solid #746644;
  animation: detail-reveal 220ms ease-out;
}
#payoff-result h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
#payoff-result > .account-balance {
  font-size: 50px;
}
.payoff-breakdown {
  margin: 24px 0;
}
.payoff-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--portal-line);
  font-size: 13px;
}
.payoff-breakdown dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.payoff-total {
  font-weight: 700;
  color: #e4cc95;
}
.portal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 25px var(--portal-space);
  border-top: 1px solid var(--portal-line);
  color: var(--portal-muted);
  font-size: 10px;
}
.portal-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portal-footer a:hover {
  color: var(--portal-gold);
}
.login-panel {
  max-width: 440px;
  margin: 18px auto 30px;
  padding: 20px 0;
  animation: workspace-enter 380ms ease-out;
}
.login-panel h1 {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 17px 0 18px;
}
.intro {
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.75;
}
.login-method {
  border: 0;
  padding: 0;
  margin: 27px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-width: 0;
}
.login-method legend {
  font-size: 11px;
  color: var(--portal-muted);
  margin-bottom: 10px;
}
.portal-main .login-method label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #171815;
  cursor: pointer;
  font-size: 12px;
}
.portal-main .login-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  left: 12px;
  padding: 0;
}
.login-method label:has(:checked) {
  color: #ecdbb7;
  background: #2a291f;
  border-color: #87764c;
}
.login-method label:has(:focus-visible) {
  outline: 2px solid var(--portal-gold);
  outline-offset: 3px;
}
.login-panel .muted {
  font-size: 11px;
  line-height: 1.65;
  margin-top: 13px;
}
#email-form > button,
#code-form > button {
  width: 100%;
  margin-top: 13px;
  min-height: 50px;
}
#email-form > button {
  justify-content: space-between;
}
#code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.28em;
  font-size: 22px;
}
#sms-consent {
  color: #96988e;
}
.help-note {
  margin-top: 25px !important;
  padding-top: 20px;
  border-top: 1px solid var(--portal-line);
  font-size: 11px;
  line-height: 1.8;
  color: var(--portal-muted);
}
.help-note a {
  color: #e1d3b0;
}
#loading {
  padding: 70px 0;
  text-align: center;
  color: var(--portal-muted);
  font-size: 13px;
}
#workspace {
  animation: workspace-enter 350ms ease-out;
}
#account-document {
  width: min(850px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #aaa79e;
  border-radius: 10px;
  padding: 0;
  background: #faf9f5;
  color: #252722;
}
#account-document::backdrop {
  background: #090a0bcc;
  backdrop-filter: blur(5px);
}
.document-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  background: #f1efe7;
  border-bottom: 1px solid #d8d5ca;
  z-index: 1;
}
.document-toolbar > span {
  margin-right: auto;
  font-size: 12px;
  color: #63655b;
}
#account-document button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b8b3a4;
  border-radius: 5px;
  background: transparent;
  color: #252722;
  font-size: 12px;
  cursor: pointer;
}
#account-document #print-document {
  background: #252722;
  color: #faf9f5;
  border-color: #252722;
}
#document-content {
  padding: 26px 32px 40px;
  font-size: 13px;
}
#account-document h1 {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
#account-document h2 {
  font-size: 17px;
  margin: 30px 0 12px;
}
#account-document h3 {
  font-size: 14px;
}
#account-document p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.document-entry {
  border-top: 1px solid #d8d5ca;
  padding: 13px 0;
  break-inside: avoid;
}
/* Keep financial labels readable; disclosure details stay one tap away. */
.breakdown dt,
.account-facts dt,
.due-grid dt {
  font-size: 12px;
}
.breakdown dd {
  font-size: 19px;
}
.account-facts dd {
  font-size: 13px;
}
.due-heading h2 {
  margin-bottom: 12px;
}
.due-grid {
  margin-bottom: 6px;
  gap: 15px 14px;
}
.due-grid > div:first-child {
  padding-bottom: 16px;
}
.payment-form {
  margin-top: 14px;
  padding-top: 14px;
}
.allocation-disclosure {
  margin-top: 10px;
  color: var(--portal-muted);
}
.allocation-disclosure > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}
.allocation-disclosure > summary::-webkit-details-marker {
  display: none;
}
.allocation-disclosure > summary::after {
  content: "+";
  color: var(--portal-gold);
  font-size: 17px;
}
.allocation-disclosure[open] > summary::after {
  content: "−";
}
.allocation-disclosure .muted {
  font-size: 11px;
  margin: 0 0 8px;
}
@keyframes workspace-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes detail-reveal {
  from {
    opacity: 0.25;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes refresh-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .account-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 26px;
  }
  .account-sidebar {
    padding-right: 16px;
  }
  .account-overview {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
  }
  .payment-workspace {
    padding: 18px;
  }
  .account-balance {
    font-size: 51px;
  }
  .breakdown {
    gap: 10px;
  }
  .breakdown dd {
    font-size: 15px;
  }
  .account-facts {
    gap: 14px;
  }
  .portal-main .tools button {
    font-size: 10px;
    padding-inline: 9px;
  }
  .sync-control #updated {
    display: none;
  }
}
@media (max-width: 950px) {
  .account-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-balance {
    font-size: 64px;
  }
  .breakdown dd {
    font-size: 18px;
  }
  .payment-workspace {
    margin-top: 6px;
    padding: 23px;
  }
  .due-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .due-grid > div:first-child {
    grid-column: auto;
    border: 0;
    padding: 0;
  }
  .due-grid > div:first-child dd {
    font-size: 29px;
  }
  .due-grid dd {
    font-size: 24px;
  }
  .payment-controls {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 1.2fr);
  }
  .header-context {
    display: none;
  }
}
@media (max-width: 760px) {
  .portal-header {
    min-height: 70px;
    padding: 10px 20px;
    gap: 15px;
  }
  .portal-header .brand {
    gap: 9px;
  }
  .portal-header .brand img {
    width: 40px;
    height: 40px;
  }
  .portal-header .brand > span {
    font-size: 12px;
  }
  .portal-header .brand small {
    font-size: 7px;
    margin-top: 4px;
  }
  .portal-header nav {
    gap: 12px;
    font-size: 11px;
  }
  .portal-header button {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 11px;
  }
  .portal-header nav a span {
    display: none;
  }
  .portal-main {
    padding: 27px 20px 52px;
  }
  .workspace-heading {
    margin-bottom: 23px;
    gap: 12px;
    align-items: flex-end;
  }
  .workspace-heading h1 {
    font-size: 28px;
  }
  .workspace-heading .section-label {
    font-size: 8px;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
  }
  .sync-control #updated {
    display: none;
  }
  .portal-main #refresh {
    font-size: 0;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }
  .portal-main #refresh > span {
    font-size: 24px;
    line-height: 1;
  }
  .portal-main > #notice {
    top: 80px;
  }
  .portal-main .setup-notice {
    font-size: 11px;
    line-height: 1.65;
    margin-bottom: 23px;
    padding: 11px 13px;
  }
  .account-layout {
    display: block;
  }
  .account-sidebar {
    border: 0;
    padding: 0;
    height: auto;
  }
  .sidebar-inner {
    position: static;
  }
  .account-sidebar .small-heading {
    font-size: 9px;
    margin-bottom: 9px;
  }
  #account-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #696348 transparent;
  }
  .portal-main .account-option {
    flex: 0 0 200px;
    width: auto;
    margin: 0;
    padding: 10px 14px;
  }
  .account-option:only-child {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 12px;
  }
  .account-option:only-child .option-amount {
    display: none;
  }
  .account-option:only-child small {
    text-align: right;
    font-size: 10px;
  }
  .account-option .option-kind {
    font-size: 12px;
  }
  .account-option .option-amount {
    font-size: 20px;
    margin: 3px 0;
  }
  .account-option small {
    font-size: 10px;
  }
  .account-option[aria-pressed="true"]::before {
    top: 10px;
    bottom: 10px;
  }
  .section-navigation {
    display: flex;
    overflow-x: auto;
    gap: 23px;
    margin: 16px 0 24px;
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid var(--portal-line);
    scrollbar-width: none;
  }
  .section-navigation a {
    flex-shrink: 0;
    padding: 12px 0;
    font-size: 11px;
    border-radius: 0;
  }
  .section-navigation a:first-child {
    border-bottom: 1px solid var(--portal-gold);
  }
  .section-navigation a span {
    display: none;
  }
  .sidebar-support {
    display: none;
  }
  .account-overview {
    gap: 26px;
  }
  .summary-top h2 {
    font-size: 15px;
  }
  .status-label {
    font-size: 9px;
  }
  .portal-main .balance-caption {
    margin-top: 27px;
  }
  .account-balance {
    font-size: 60px;
  }
  .balance-date {
    font-size: 10px;
  }
  .breakdown {
    padding: 19px 0;
    margin: 21px 0;
  }
  .breakdown dt {
    font-size: 10px;
  }
  .breakdown dd {
    font-size: 19px;
  }
  .account-facts dt {
    font-size: 10px;
  }
  .account-facts dd {
    font-size: 13px;
  }
  .portal-main .account-terms {
    font-size: 10px;
  }
  .tools {
    margin-top: 20px;
    gap: 8px;
  }
  .portal-main .tools button {
    font-size: 11px;
    padding: 9px 10px;
    flex: 1 1 auto;
  }
  .payment-workspace {
    padding: 20px;
  }
  .due-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }
  .due-grid > div:first-child {
    grid-column: 1/-1;
    border-bottom: 1px solid #36382f;
    padding-bottom: 18px;
  }
  .due-grid > div:first-child dd {
    font-size: 40px;
  }
  .due-grid dd {
    font-size: 22px;
  }
  .due-heading h2 {
    margin-bottom: 22px;
  }
  .payment-controls {
    grid-template-columns: 1fr;
  }
  .payment-controls button {
    min-height: 50px;
  }
  .workspace-section {
    margin-top: 34px;
    scroll-margin-top: 88px;
  }
  #overview,
  .service-panel {
    scroll-margin-top: 90px;
  }
  .portal-main .section-heading {
    gap: 12px;
    padding-bottom: 14px;
  }
  .portal-main .section-heading h2 {
    font-size: 18px;
  }
  .section-heading > .muted {
    font-size: 10px;
    max-width: 115px;
  }
  #schedule {
    max-height: 265px;
  }
  .activity-top strong {
    font-size: 13px;
  }
  .activity-top > span {
    font-size: 10px;
  }
  .activity .allocation {
    font-size: 10px;
    gap: 5px 13px;
  }
  .activity .muted {
    font-size: 10px;
  }
  .service-panel > summary {
    min-height: 81px;
    padding: 18px 2px;
    gap: 15px;
  }
  .service-label {
    font-size: 14px;
    gap: 4px;
  }
  .service-label small {
    font-size: 10px;
  }
  .service-panel form > button {
    width: 100%;
    min-height: 50px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comparison {
    gap: 17px;
  }
  .comparison > div:last-child {
    padding-left: 17px;
  }
  .comparison h3 {
    font-size: 14px;
  }
  .comparison p {
    font-size: 11px;
  }
  .service-panel[open] > .muted {
    font-size: 11px;
  }
  .portal-footer {
    padding: 25px 20px;
    gap: 12px;
    font-size: 9px;
  }
  .portal-footer > span:last-child {
    flex-basis: 100%;
  }
  .login-panel {
    margin: 5px auto 15px;
    padding: 15px 0;
    max-width: 440px;
  }
  .login-panel h1 {
    font-size: 39px;
  }
  .login-panel .intro {
    font-size: 13px;
  }
  .login-panel .section-label {
    font-size: 9px;
  }
  .login-panel .help-note {
    margin-top: 24px !important;
  }
  .document-toolbar {
    padding: 12px;
    gap: 8px;
  }
  .document-toolbar > span {
    display: none;
  }
  #document-content {
    padding: 17px 20px 25px;
  }
  #account-document h1 {
    font-size: 22px;
  }
}
@media (max-width: 360px) {
  .portal-header {
    padding-inline: 16px;
  }
  .portal-header .brand img {
    width: 34px;
    height: 34px;
  }
  .portal-header .brand > span {
    font-size: 11px;
  }
  .portal-header nav {
    gap: 9px;
  }
  .portal-header button {
    padding-inline: 8px;
  }
  .portal-main {
    padding-inline: 16px;
  }
  .account-balance {
    font-size: 52px;
  }
  .breakdown {
    gap: 9px;
  }
  .breakdown dd {
    font-size: 16px;
  }
  .account-option:only-child {
    grid-template-columns: 1fr;
  }
  .account-option:only-child small {
    text-align: left;
  }
  .section-navigation {
    gap: 20px;
  }
  .service-label {
    font-size: 13px;
  }
  .portal-main .tools button {
    font-size: 10px;
  }
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison > div:last-child {
    padding-left: 15px;
  }
  .activity-top {
    flex-wrap: wrap;
    gap: 6px;
  }
  .login-panel h1 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #161616;
    font:
      12px/1.5 Arial,
      sans-serif;
  }
  .portal-header,
  .portal-footer,
  .skip-link,
  #notice,
  .account-sidebar,
  .workspace-heading,
  .payment-workspace,
  .tools,
  #more-history,
  #loading,
  #login,
  #account-tools,
  .activity-actions,
  .document-toolbar {
    display: none !important;
  }
  .portal-main {
    padding: 0;
    max-width: none;
    min-height: 0;
  }
  .portal-main::before {
    content: "Family First Auto Sales — Customer account statement";
    display: block;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #777;
    padding-bottom: 14px;
    margin-bottom: 20px;
  }
  .account-layout,
  .account-overview {
    display: block;
  }
  #account-detail {
    display: block !important;
  }
  .portal-main h1,
  .portal-main h2,
  .portal-main h3,
  .account-balance,
  .breakdown dd,
  .account-facts dd,
  .payoff-total {
    color: #161616;
  }
  .muted,
  .activity small,
  .allocation,
  .breakdown dt,
  .account-facts dt,
  .account-terms,
  .balance-caption,
  .balance-date,
  .status-label,
  .customer-reference {
    color: #444 !important;
  }
  .account-balance {
    font-size: 36px;
  }
  .notice {
    color: #111;
    background: #fff;
    border-color: #555;
  }
  .breakdown {
    margin: 18px 0;
  }
  .workspace-section {
    margin-top: 25px;
  }
  .activity,
  .payoff-breakdown > div {
    break-inside: avoid;
  }
  #schedule {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .activity-top > span {
    color: #333;
  }
  a {
    color: #161616;
  }
  .portal-main p {
    margin-bottom: 10px;
  }
  body.printing-document > *:not(#account-document) {
    display: none !important;
  }
  body.printing-document #account-document {
    display: block !important;
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    border: 0;
    padding: 0;
    margin: 0;
    background: #fff;
  }
  body.printing-document #account-document::backdrop {
    display: none;
  }
  #document-content {
    padding: 0;
  }
}
