:root {
  --navy: #071425;
  --blue: #0b3a6e;
  --gold: #f6cc6d;
  --gold-border: #bc8a36;
  --cream: #f7f3eb;
  --border: #e6d9be;
}

body.profile-page {
  background: var(--cream);
  color: var(--navy);
}

.profile-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2c98f;
  border-radius: 20px;
  padding: 16px 16px 18px;
  width: 100%;
  height: 100%;
}

.profile-header {
  background: #fff4d8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: center;
  text-align: center;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 10px 16px;
  border-radius: 14px;
}

.profile-title,
.profile-center,
.profile-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.profile-help-tour {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.profile-help-tour-toggle {
  border: 1px solid #0751c8;
  border-radius: 999px;
  background: #0877ff;
  color: #ffffff;
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.profile-help-tour-toggle:hover,
.profile-help-tour-toggle:focus-visible {
  background: #0068e6;
  border-color: #004fb3;
  outline: none;
}

.profile-help-tour-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1400;
  display: grid;
  gap: 4px;
  min-width: 248px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(11, 58, 115, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 20, 37, 0.16);
  text-align: left;
}

.profile-help-tour-dropdown[hidden] {
  display: none;
}

.profile-help-tour-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0b3a6e;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-help-tour-dropdown button:hover,
.profile-help-tour-dropdown button:focus-visible {
  background: #eef6ff;
  outline: none;
}

.label {
  font-size: 0.98rem;
  font-weight: 650;
  color: #0a274f;
  text-transform: none;
  letter-spacing: 0;
}

.value {
  font-size: 0.9rem;
  font-weight: 560;
  color: #324760;
  overflow-wrap: anywhere;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.profile-quick-row,
.profile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.profile-page .profile-quick-row[hidden],
.profile-page .profile-row[hidden],
.profile-page .profile-compliance-row[hidden],
.profile-page .tax-prep-profile[hidden],
.profile-page .profile-quick-row > .card[hidden],
.profile-page .profile-row > .card[hidden],
.profile-page .tax-prep-tracker-card[hidden],
.profile-page .tax-prep-notes-card[hidden],
.profile-page .compliance-disclaimer[hidden] {
  display: none !important;
}

.profile-quick-row {
  grid-template-columns: 1fr;
}

.profile-row[data-visible-cards="1"],
.profile-compliance-row[data-visible-cards="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.profile-row[data-visible-cards="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-balances-card {
  grid-column: 1 / -1;
  padding-top: 14px;
  padding-bottom: 14px;
}

.biz-account-balances-shell {
  grid-column: 1 / -1;
  padding-top: 14px;
  padding-bottom: 14px;
}

.business-resolution-beta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  margin-bottom: 12px;
}

.business-resolution-beta[hidden] {
  display: none;
}

.business-resolution-option {
  flex: 0 0 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: start;
}

.business-resolution-top-actions {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee3d0;
  padding-bottom: 8px;
  min-width: 0;
}

.business-compliance-prompt {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0a274f;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  order: 2;
}

.business-compliance-prompt[hidden] {
  display: none;
}

.business-compliance-prompt label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.business-resolution-btn {
  width: auto;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1;
  border-radius: 8px;
  box-shadow: none;
}

.business-resolution-option .business-resolution-btn {
  width: auto;
}

.business-resolution-status {
  font-size: 0.76rem;
  font-weight: 750;
  color: #0a274f;
  line-height: 1.2;
  min-height: 0;
  text-align: center;
}

@media (max-width: 860px) {
  .business-resolution-beta {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .business-resolution-beta {
    align-items: flex-start;
  }
}

.biz-section-head {
  margin-bottom: 12px;
}

.quick-section,
.profile-section,
.compliance-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee3d0;
}

.section-head h2 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: #0a274f;
  line-height: 1.2;
}

.section-head-inline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.section-subtitle,
.section-copy {
  margin: 0;
  color: #425a77;
  font-size: 0.84rem;
  line-height: 1.45;
}

.section-note {
  margin: 12px 0 0;
  color: #4a607a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.status-list-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  color: #1b2f46;
  padding: 8px 0;
  border-bottom: 1px solid #f0e8d8;
}

.status-list li > span:first-child {
  font-weight: 650;
}

.status-list li:last-child {
  border-bottom: 0;
}

.quick-section .section-head,
.profile-section .section-head {
  margin-bottom: 12px;
}

.quick-section .section-head {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-balances-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 6px;
  width: 100%;
}

.account-balances-head > h2,
.account-balances-head > .review-toggle-btn {
  min-width: 0;
}

.account-balances-head > h2 {
  justify-self: start;
}

.account-balances-head > .review-toggle-btn {
  justify-self: center;
}

.account-balance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px 18px;
  margin-top: 8px;
}

.biz-account-balances-content,
.biz-balances-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.biz-empty-actions,
.biz-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.biz-empty-state {
  margin: 0;
  color: #425a77;
  font-size: 0.94rem;
  font-weight: 650;
}

.biz-account-balances-card {
  min-width: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #eee3d0;
}

.biz-account-balances-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.biz-account-balances-head {
  margin-bottom: 10px;
}

.biz-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  color: #425a77;
  font-size: 0.84rem;
  font-weight: 650;
}

.biz-account-balance-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.biz-account-balance-summary .account-summary-item {
  justify-self: start;
}

.dp-saved-card {
  display: grid;
  gap: 10px;
}

.dp-saved-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dp-compact-summary-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}

.dp-compact-summary-row .account-summary-item {
  justify-self: start;
}

.account-summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-summary-item:nth-child(2) {
  justify-self: center;
}

.account-summary-item:nth-child(3) {
  justify-self: end;
}

.account-summary-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334c68;
}

.account-summary-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a274f;
}

.biz-account-notes {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.biz-account-notes ul {
  margin: 0;
  padding-left: 18px;
  color: #334c68;
  font-size: 0.9rem;
  line-height: 1.4;
}

.account-review-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #c89b43;
  border-radius: 16px;
  background: transparent;
  color: #000;
}

.account-review-head {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.account-review-head h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: #0a274f;
  line-height: 1.2;
}

.account-review-copy {
  color: #000;
  font-size: 0.84rem;
}

.account-review-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ead8b6;
}

.account-review-meta-item {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.account-review-meta-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a274f;
  margin-bottom: 6px;
  line-height: 1.2;
}

.account-review-meta-value {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: #1b2f46;
  line-height: 1.3;
}

.account-review-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2c98f;
  border-radius: 14px;
  background: #fff;
}

.account-review-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.account-review-table th,
.account-review-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #f1e7d5;
  font-size: 0.9rem;
  color: #1b2f46;
}

.account-review-table th {
  background: #fff4d8;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a274f;
  line-height: 1.2;
}

.account-review-table td {
  background: #fff;
  font-weight: 600;
  line-height: 1.3;
}

.account-review-table tbody tr:last-child td {
  border-bottom: 0;
}

.review-toggle-btn.is-active {
  background: #0b3a6e;
  color: #fff;
  border-color: #0b3a6e;
}

.account-balances-card .review-toggle-btn {
  min-width: 0;
  height: 32px;
  width: auto;
  max-width: 168px;
  padding: 5px 12px;
  font-size: 0.8rem;
  background: #0b3a6e;
  color: #fff;
  border-color: #0b3a6e;
  box-shadow: none;
  white-space: nowrap;
}

.account-balances-card .review-toggle-btn:hover,
.account-balances-card .review-toggle-btn:focus-visible {
  background: #124b88;
  color: #fff;
  border-color: #124b88;
}

.account-empty-state {
  padding: 16px;
  border-radius: 14px;
  background: #fff7e8;
  border: 1px dashed #dcc08a;
  color: #5a7088;
  font-weight: 600;
}

.result-summary-strip {
  border: 0;
  border-bottom: 2px solid #0b3a6e;
  border-radius: 0;
  padding: 2px 0 12px;
  margin-bottom: 10px;
  background: transparent;
}

.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 14px;
}

.result-summary-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.result-summary-card strong {
  display: block;
  font-size: 0.76rem;
  color: #0a274f;
  margin-bottom: 5px;
  font-weight: 700;
  line-height: 1.2;
}

.result-summary-card span {
  display: block;
  color: #1b2f46;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.3;
}

.result-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-plan-card {
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid #e2c98f;
  background: #fff;
  color: #1b2f46;
  box-shadow: none;
  align-content: start;
}

.result-plan-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0a274f;
  text-align: center;
  line-height: 1.2;
}

.result-plan-card dl {
  margin: 0;
  display: grid;
  gap: 9px;
}

.result-plan-card-inner {
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.result-plan-card .result-plan-row {
  display: grid;
  grid-template-columns: minmax(138px, 1fr) auto;
  gap: 10px;
  font-size: 0.9rem;
  color: #1b2f46;
  align-items: baseline;
}

.result-plan-card dt {
  font-weight: 700;
  color: #233f61;
  line-height: 1.3;
  min-width: 0;
}

.result-plan-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  color: #10233c;
  line-height: 1.3;
  justify-self: end;
  white-space: nowrap;
}

.result-plan-section-title {
  display: block;
  margin-bottom: 0;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0a274f;
  grid-column: 1 / -1;
}

.result-plan-card-multi-year .result-plan-row-payment {
  display: grid;
  gap: 7px;
}

.result-plan-card-multi-year {
  grid-column: span 2;
}

.result-plan-card-multi-year .result-plan-row {
  align-items: baseline;
}

.result-plan-card-multi-year .result-plan-row-submetric {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}

.result-plan-card-step-up .result-plan-row-submetric dt,
.result-plan-card-step-up .result-plan-row-submetric dd {
  white-space: nowrap;
}

.result-plan-card-step-up .result-plan-row-payment-step-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.result-plan-card-step-up .result-plan-row-submetric {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.result-plans-section {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0b3a6e;
}

@media (max-width: 920px) {
  .result-plan-card-multi-year {
    grid-column: auto;
  }

  .result-plan-card-step-up .result-plan-row-submetric dt,
  .result-plan-card-step-up .result-plan-row-submetric dd {
    white-space: normal;
  }

  .result-plan-card-step-up .result-plan-row-submetric {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.result-notes-heading {
  margin-top: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  color: #000;
  font-weight: 800;
}

.result-notes {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #000;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 840px;
}

.result-disclaimer {
  margin-top: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #000;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pill[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
  background: #f6f8fb;
  color: #49627f;
  border-color: #9fb0c5;
}

.financial-status-value {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
}

.financial-status-action {
  border: 2px solid #0b3a6e;
  background: #fff;
  color: #0b3a6e;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.financial-status-action:hover {
  background: #0b3a6e;
  color: #fff;
}

.financial-status-static.is-muted {
  color: #49627f;
}

.financial-open-action {
  min-width: 88px;
}

.action-link {
  font-size: 0.9rem;
  text-decoration: underline;
  color: #0b3a6e;
  font-weight: 600;
  white-space: nowrap;
}

.action-link:hover {
  color: #06234c;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  height: 30px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 2px solid transparent;
  text-decoration: none;
}

.pill.small {
  padding: 5px 12px;
  height: 28px;
  font-size: 0.8rem;
}

.pill.blue {
  background: #0b3a6e;
  color: #fff;
  border-color: #0a2f58;
}

.pill.gold {
  background: var(--gold);
  color: #071425;
  border-color: var(--gold-border);
}

.pill.outline {
  background: #fff;
  color: #0b3a6e;
  border-color: #0b3a6e;
}

.financial-status-box {
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #d7b15f;
  border-radius: 12px;
  background: #fff7e6;
}

.profile-compliance-row {
  width: 100%;
}

.compliance-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.compliance-head {
  margin-bottom: 10px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compliance-disclaimer {
  color: #5a6778;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: stretch;
}

.compliance-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-items: center;
  text-align: center;
}

.compliance-field > span,
.compliance-field legend {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a274f;
  width: 100%;
}

.compliance-field input[type="text"] {
  width: 100%;
  max-width: 260px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e2c98f;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #18324d;
  background: #fffdf8;
}

.compliance-period-display {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  padding: 8px 0;
  color: #18324d;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.compliance-field input[readonly] {
  background: #fff8e6;
  color: #425a77;
}

.compliance-toggle-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  width: 100%;
  max-width: 220px;
  justify-items: center;
  align-content: start;
  column-gap: 18px;
  row-gap: 6px;
}

.compliance-toggle-group legend {
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.compliance-toggle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-right: 0;
  min-width: 52px;
  font-size: 0.92rem;
  color: #1b2f46;
}

.compliance-toggle-group .compliance-toggle-option + .compliance-toggle-option {
  margin-left: 0;
}

.compliance-toggle-group {
  grid-template-columns: auto auto;
}

.compliance-toggle-group legend {
  grid-column: 1 / -1;
}

.compliance-toggle-option input {
  width: 18px;
  height: 18px;
}

.profile-actions-card {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  margin-top: 22px;
}

.profile-actions-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-actions-row[data-visible-actions="1"] {
  justify-content: center;
}

.action-btn {
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 32px;
  min-width: 126px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid transparent;
  background: #fff;
  color: #0b3a6e;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn.outline {
  border-color: #0b3a6e;
  background: #fff;
  color: #0b3a6e;
}

.action-btn.bright {
  background: #2a63bf;
  color: #fff;
  border-color: #2456a8;
}

.action-btn.gold {
  background: var(--gold);
  color: #071425;
  border-color: var(--gold-border);
}

.case-status-btn {
  background: #0b3a6e;
  color: #fff;
  border-color: #0b3a6e;
}

.case-status-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-status-popover[hidden] {
  display: none;
}

.popover-note {
  margin: 0;
  font-size: 0.9rem;
  color: #1b2f46;
}

.popover-title {
  margin: 0;
  font-size: 1rem;
  color: #0b1f35;
}

.case-status-select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.case-status-popover button {
  align-self: flex-end;
}

.hardship-summary .section-head h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.hardship-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hardship-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  color: #1b2f46;
}

.hardship-list span:last-child {
  font-size: 1.1rem;
}

@media (max-width: 560px) {
  .profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-help-tour {
    justify-content: center;
  }

  .profile-help-tour-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(248px, calc(100vw - 40px));
  }

  .profile-quick-row,
  .profile-row,
  .profile-grid,
  .status-list-split,
  .account-review-meta,
  .result-summary-grid,
  .result-plans-grid,
  .account-balances-head {
    grid-template-columns: 1fr;
  }

  .account-balance-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .account-summary-item {
    justify-content: space-between;
    justify-self: stretch;
  }

  .profile-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .account-balances-head > .review-toggle-btn {
    justify-self: stretch;
    max-width: none;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 561px) {
  main.profile-wrapper > .profile-quick-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  main.profile-wrapper > .profile-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
  }

  main.profile-wrapper > .profile-row > .profile-section,
  main.profile-wrapper > .profile-quick-row > .quick-section {
    min-width: 0;
    width: 100%;
  }

  main.profile-wrapper .status-list-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main.profile-wrapper .account-balances-head {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  main.profile-wrapper .determination-actions {
    display: flex;
    justify-content: center;
  }

  main.profile-wrapper .determine-btn {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  main.profile-wrapper .profile-actions-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .result-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.quick-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.quick-section .section-head {
  margin-bottom: 0;
}

.quick-section .pill.blue {
  min-width: 64px;
}

.profile-section[data-section="payoff"] .status-list li {
  padding: 7px 0;
}

.profile-section[data-section="resolutions"] .status-list li > span:last-child {
  min-width: 18px;
  text-align: right;
}

.profile-section[data-section="financials"] .status-list li {
  gap: 8px;
}

.profile-section[data-section="financials"] .status-list li > span:first-child {
  white-space: nowrap;
  font-size: 0.95rem;
}

.determination-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.profile-section .determination-actions {
  margin-top: auto;
  padding-top: 12px;
}

.determine-btn {
  width: auto;
  min-width: 100px;
  padding: 5px 14px;
  height: 28px;
  font-size: 0.78rem;
  justify-content: center;
  cursor: pointer;
}

.determine-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.determine-btn.is-loading {
  position: relative;
  cursor: wait;
}

.determination-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #516883;
}

.profile-header.card {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 12px 16px;
  align-items: center;
  align-self: auto;
  aspect-ratio: auto;
}

.profile-title,
.profile-center,
.profile-status {
  gap: 2px;
  min-height: 0;
  padding: 0;
}

.quick-section .section-head-inline {
  gap: 8px;
}

.quick-section .section-head h2 {
  font-size: 1rem;
}

.quick-section .section-subtitle {
  font-size: 0.78rem;
  line-height: 1.25;
}

.quick-section .pill.blue.small {
  min-width: 58px;
  padding: 5px 12px;
}

.account-balances-card .pill.blue.small,
.account-balances-card .pill.outline.small {
  min-width: auto;
}

.profile-section .pill.outline.small,
.profile-section .financial-link-actions button {
  background: #fff;
  color: #0b3a6e;
  border-color: #0b3a6e;
}

.profile-section[data-section="payoff"] .pill.outline.small,
.profile-section[data-section="resolutions"] .pill.outline.small,
.profile-section[data-section="hardships"] .pill.outline.small,
.profile-section[data-section="oic-evaluation"] .pill.outline.small,
.profile-section[data-section="financials"] .pill.outline.small {
  min-width: 58px;
  padding: 5px 12px;
}

.quick-section .pill.blue.small.is-loading,
.profile-section .pill.outline.small.is-loading {
  opacity: 0.78;
  transform: translateY(1px);
}

.profile-section[data-section="payoff"] .section-head,
.profile-section[data-section="hardships"] .section-head,
.profile-section[data-section="oic-evaluation"] .section-head,
.profile-section[data-section="financials"] .section-head {
  align-items: center;
}

.profile-section[data-section="payoff"] .status-list li,
.profile-section[data-section="hardships"] .status-list li,
.profile-section[data-section="oic-evaluation"] .status-list li,
.profile-section[data-section="financials"] .status-list li {
  padding: 7px 0;
}
.form433h-client-profile-card{width:100%}.form433h-client-profile-card .section-head{align-items:center}.form433h-status-control{display:flex;align-items:center;justify-content:flex-end}.form433h-status{font-weight:800;color:#0b3a6e}.form433h-status.ready{color:#7a231e}.form433h-client-message{margin:8px 0 0;color:#36536f;font-size:.85rem}.form433h-client-message.error{color:#8a2424}
.tax-prep-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px;align-items:stretch}.tax-prep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tax-prep-grid label,.tax-prep-notes-card{min-width:0}.tax-prep-grid label>span{display:block;margin-bottom:5px;color:#334e68;font-size:.82rem;font-weight:800}.tax-prep-grid input,.tax-prep-grid select,.tax-prep-grid textarea,.tax-prep-notes-card textarea,.payment-plan-notes-card textarea{box-sizing:border-box;width:100%;border:1px solid #b8c7d6;border-radius:8px;background:#fff;padding:9px 10px;color:#102a43;font:inherit}.tax-prep-wide{grid-column:1/-1}.tax-prep-tracker-card,.tax-prep-notes-card,.payment-plan-form-card,.payment-plan-notes-card{height:100%}.tax-prep-notes-card,.payment-plan-notes-card{display:flex;flex-direction:column}.tax-prep-notes-card textarea,.payment-plan-notes-card textarea{flex:1;min-height:128px;resize:vertical}.profile-card-save{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:10px;color:#36536f;font-size:.85rem}.payment-plan-form-card{min-width:0}.payment-plan-form-card .status-list{margin-top:10px}.payment-plan-form-card .status-list li{min-height:34px}.tax-prep-layout .profile-dp-calc-row,.tax-prep-layout .profile-biz-balance-row,.tax-prep-layout .profile-primary-row,.tax-prep-layout .profile-compliance-layout-row,.tax-prep-layout .profile-secondary-row{display:none!important}#payment-plan-forms-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}#payment-plan-forms-row>article{align-self:stretch}
@media (max-width:900px){.tax-prep-row,#payment-plan-forms-row,#payment-plan-forms-row[data-visible-cards="2"]{grid-template-columns:1fr}.tax-prep-grid{grid-template-columns:1fr}.tax-prep-wide{grid-column:auto}}
