/* Live account controls arranged in the approved account overview style. */
.account-page .account-management-main {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 56px;
}

.account-page .account-management-intro {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 16px;
  padding: 20px 24px;
  border: 2px solid #c8dda3;
  border-radius: 18px;
  background: linear-gradient(100deg, #eef6dc, #fffdf3);
  box-shadow: 0 4px 0 #e0e9c8;
  text-align: left;
}

.account-intro-copy { min-width: 0; }
.account-intro-copy h1 { margin: 6px 0; color: #174e37; font: 900 clamp(27px, 3.3vw, 36px)/1.05 'Trebuchet MS', sans-serif; letter-spacing: -.04em; }
.account-intro-copy p { max-width: 620px; margin: 0; color: #617566; font-size: 13px; line-height: 1.6; }
.account-intro-status { display: grid; min-width: 175px; justify-items: end; gap: 6px; }
.account-page .account-intro-status .portal-connection { justify-content: flex-end; margin: 0; }
.account-intro-status .portal-notice { min-height: 0; text-align: right; }

.account-page .account-management-card { width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-page .portal-signed-out { width: min(100%, 640px); margin: 0 auto; padding: 23px; border: 2px solid #d0e0aa; border-radius: 20px; background: #fffdf2; box-shadow: 0 5px 0 #e0e8c8; }
.account-page .portal-signed-out .portal-mode-description { margin-bottom: 16px; }
.account-page .portal-signed-out .portal-form { max-width: none; }
.account-page .portal-signed-out .portal-tabs button { min-height: 69px; }

.account-page .portal-signed-in.account-management-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.account-page .portal-profile {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 20px 22px;
  border: 2px solid #c8dda3;
  border-radius: 18px;
  background: linear-gradient(100deg, #eef6dc, #fffdf3);
  box-shadow: 0 4px 0 #e0e9c8;
}

.account-page .portal-profile > img { width: 66px; height: 66px; border-radius: 16px; }
.account-page .portal-profile h3 { margin: 4px 0; color: #174e37; font: 900 25px/1.12 'Trebuchet MS', sans-serif; letter-spacing: -.03em; }
.account-page .portal-profile h3 span { color: inherit; }
.account-page .portal-profile .account-email-status { margin-top: 4px; padding-top: 0; }
.account-page .portal-profile .button { flex: 0 0 auto; }
.account-page .kwaken-link-quick { display: grid; flex: 0 1 440px; min-width: 340px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 7px; padding: 11px 13px; border: 1px solid #d5e2b9; border-radius: 14px; background: linear-gradient(135deg, #fbfced, #f5f8e7); }
.account-page [data-kwaken-link-panel][hidden] { display: none; }
.account-page .kwaken-link-quick-copy { min-width: 0; }
.account-page .kwaken-link-quick .eyebrow { gap: 6px; font-size: 9px; letter-spacing: .11em; }
.account-page .kwaken-link-quick .eyebrow i { color: #318b35; font-size: 11px; }
.account-page .kwaken-link-quick [data-kwaken-link-status] { margin: 4px 0 0; color: #657765; font-size: 11px; line-height: 1.4; }
.account-page .kwaken-link-quick .kwaken-link-action { width: auto; min-height: 40px; justify-self: end; margin: 0; padding: 0 13px; border-radius: 11px; font-size: 11px; white-space: nowrap; box-shadow: 0 3px 0 #1b6422; }
.account-page .kwaken-link-action > i:first-child { color: #fff2a9; }
.account-page .kwaken-link-action > i:last-child { margin-left: 2px; font-size: 10px; transition: transform .18s ease; }
.account-page .kwaken-link-action:hover > i:last-child { transform: translateX(3px); }
.account-page .kwaken-link-quick .portal-notice { grid-column: 1 / -1; margin: 0; font-size: 11px; }

.account-page .account-form-card,
.account-page .account-security-card {
  min-width: 0;
  padding: 19px;
  border: 2px solid #d3e2b3;
  border-radius: 16px;
  background: #fffdf3;
  box-shadow: 0 3px 0 #e2eacb;
}

.account-page .account-profile-card { grid-column: 1 / -1; gap: 15px; }
.account-page .account-profile-card .account-form-heading { padding-bottom: 12px; border-bottom: 1px solid #e2e9d4; }
.account-page .account-profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-page .account-profile-group { padding: 14px; border-color: #dce7c7; background: #f7f9eb; }
.account-page .account-profile-controls { grid-template-columns: 1fr; gap: 10px; }
.account-page .account-profile-controls label { font-size: 11px; }
.account-page .account-profile-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
.account-page .account-profile-actions .button { width: 100%; }

.account-page .account-security-card {
  grid-column: 1 / -1;
  padding: 19px;
}

.account-security-heading { margin-bottom: 13px; }
.account-security-heading h3 { margin: 6px 0 4px; color: #174e37; font: 900 20px/1.15 'Trebuchet MS', sans-serif; }
.account-security-heading p { margin: 0; color: #687968; font-size: 12px; line-height: 1.6; }
.account-security-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-page .account-security-forms .account-form-card { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 15px; border: 1px solid #dbe5c4; background: #f9faef; box-shadow: none; }
.account-page .account-form-heading h3 { font-size: 17px; }
.account-page .account-form-heading p { font-size: 11px; }
.account-page .account-form-fields { grid-template-columns: 1fr; gap: 10px; }
.account-page .account-form-fields label,
.account-page .account-form-grid .account-form-fields label,
.account-page .account-form-fields label:has(select) { grid-column: auto; }
.account-page .account-form-fields .button,
.account-page .account-form-grid .account-form-fields .button { justify-self: stretch; }

.account-page .account-page-links { align-content: center; }
.account-page .account-page-links a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #d3e2b3; border-radius: 10px; color: #376b42; background: #f5f8e6; font-size: 11px; font-weight: 900; text-decoration: none; }
.account-page .account-page-links a:hover { border-color: #8fbd5b; background: #edf5d9; }
.account-page .account-return-card { grid-column: 1 / -1; }

@media (max-width: 850px) {
  .account-page .account-profile-fields { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .account-page .account-management-main { width: calc(100% - 28px); margin: 20px auto 42px; }
  .account-page .account-management-intro { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .account-intro-status { min-width: 0; justify-items: start; }
  .account-page .account-intro-status .portal-connection { justify-content: flex-start; }
  .account-intro-status .portal-notice { text-align: left; }
  .account-page .portal-signed-out { padding: 17px; }
  .account-page .portal-signed-in.account-management-content { grid-template-columns: 1fr; gap: 12px; }
  .account-page .portal-profile,
  .account-page .account-profile-card,
  .account-page .account-security-card,
  .account-page .account-return-card { grid-column: auto; }
  .account-page .portal-profile { align-items: center; gap: 12px; padding: 15px; }
  .account-page .portal-profile > img { width: 50px; height: 50px; }
  .account-page .portal-profile h3 { font-size: 20px; }
  .account-page .portal-profile .button { margin-left: auto; padding-inline: 10px; }
  .account-page .kwaken-link-quick { flex: 1 1 100%; min-width: 0; }
  .account-page .kwaken-link-quick .kwaken-link-action { width: 100%; justify-self: stretch; }
  .account-security-forms { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .account-page .portal-profile { align-items: flex-start; flex-wrap: wrap; }
  .account-page .portal-profile > div { flex: 1 1 calc(100% - 70px); }
  .account-page .portal-profile .button { margin: 0 0 0 auto; }
  .account-page .kwaken-link-quick { flex-basis: 100%; grid-template-columns: minmax(0, 1fr); }
  .account-page .kwaken-link-quick .kwaken-link-action { width: 100%; justify-self: stretch; }
}
