/* Focused account steps and the settings sheets used across the portal. */
.account-step {
  width: min(100%, 29rem);
  background: var(--paper);
}
.guest .account-step { margin-inline: auto; }
.account-step-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0 0 1.75rem;
}
.account-step-heading { display: grid; gap: .45rem; }
.account-step-heading :is(h1, p), .account-step-body > p, .customer-stack p, .customer-section-title :is(h2,p),
.customer-panel > :is(p,h2), .customer-form p, .customer-form h3 { margin: 0; }
.account-step-heading p, .account-step-body > p, .customer-stack p, .customer-section-title p,
.customer-panel > p, .customer-form p { color: var(--secondary); }
.account-step-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.account-step-footer a, .customer-stack > a:not(.btn), .password-help { color: var(--ink); }
.account-step .customer-form > .btn { width: 100%; }
.customer-form, .customer-stack, .authenticator-setup { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: .95rem; min-width: 0; }
.customer-workspace .btn, .account-step .btn { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.customer-form > .btn, .customer-stack > :is(a,button) { justify-self: start; }
.customer-form .address-field, .customer-stack > :is(ul,dl), .authenticator-setup :is(details,p) { margin: 0; }
.customer-form :is(input,select,textarea):not([type=checkbox],[type=radio],[type=hidden]) { max-width: 100%; }
.password-help { justify-self: end; font-size: .875rem; }
.authenticator-qr { justify-self: center; width: min(100%, 12.5rem); border: 1px solid var(--line); border-radius: .65rem; overflow: clip; }
.manual-setup, .credential-value, .credential-codes {
  background: var(--rail);
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .75rem .9rem;
}
.manual-setup p { margin-block: .65rem; }
.credential-value code, .credential-codes code { user-select: all; }
.credential-codes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8.25rem),1fr)); list-style: none; gap: .5rem 1rem; }
.credential-codes li { font-variant-numeric: tabular-nums; }
.customer-workspace { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }
.customer-workspace section, .customer-workspace details { margin-block: 0; }
.settings-sheet, .customer-panel {
  background: var(--paper);
  border-top: 1px solid var(--line);
  min-width: 0;
}
.settings-sheet { container-type: inline-size; }
.settings-row {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  padding: clamp(1.15rem, 3vw, 1.75rem) 0;
}
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.customer-workspace .customer-section-title { display: flex; align-items: start; padding: 0; border: 0; }
.customer-section-title h2 { font-size: 1rem; }
.customer-section-title p { margin-top: .3rem; }
.customer-section-title .section-icon {
  display: grid;
  place-items: center;
  color: var(--secondary);
  flex: none;
}
.customer-section-title .section-icon svg { width: 1.05rem; height: 1.05rem; }
.customer-panel { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 1rem; padding: 1.25rem 0; }
.customer-panel > *, .customer-form > *, .settings-row > * { min-width: 0; }
.customer-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,21rem),1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3.25rem); align-items: start; }
.customer-list { padding: 0; list-style: none; min-width: 0; }
.customer-list li { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
.customer-list li:first-child { padding-top: 0; }
.customer-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.customer-list small { display: block; overflow-wrap: anywhere; color: var(--secondary); }
.customer-list :is(a,strong) { overflow-wrap: anywhere; }
.settings-subform { border-block-start: 1px solid var(--line); padding-block-start: 1rem; }
@container (max-width: 37rem) { .settings-row { grid-template-columns: minmax(0,1fr); } }
.customer-values, .billing-usage { display: grid; gap: .85rem; margin: 0; }
.customer-values dt, .billing-usage dt { font-weight: 550; }
.customer-values dd, .billing-usage dd { margin: .15rem 0 0; color: var(--secondary); overflow-wrap: anywhere; }
.customer-values .credential-value { margin-top: .4rem; }
.customer-values code { user-select: all; }
.client-profile, .transfer-endpoints { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); }
.client-server { display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem 2rem; padding: .85rem 1rem; background: var(--rail); border-radius: .55rem; }
.client-server dt { font-size: .875rem; }
.client-server dd { color: var(--ink); }
.client-mailboxes, .customer-fieldset { min-width: 0; margin: 0; padding: .75rem 1rem; border-radius: .5rem; border: 1px solid var(--line); }
.client-mailboxes label, .customer-consent { display: flex; gap: .65rem; align-items: baseline; overflow-wrap: anywhere; }
.client-mailboxes label { min-height: 2.35rem; margin: 0; padding-block: .45rem; }
.client-mailboxes label + label { border-top: 1px solid var(--line); }
.client-mailboxes input, .customer-consent input { flex: none; align-self: start; margin: .22rem 0 0; }
.profile-help { font-size: .875rem; }
.profile-help ol { padding-left: 1.35rem; margin-block: .5rem; }
.profile-help li + li { margin-top: .4rem; }
.profile-help p { color: var(--secondary); margin-bottom: 0; }
.customer-table { min-width: 0; max-width: 100%; overflow-x: auto; }
.customer-table table { display: table; width: 100%; font-variant-numeric: tabular-nums; }
.customer-table th { white-space: normal; }
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-disclosure summary { color: var(--focus); }
.customer-disclosure[open] summary { margin-bottom: .75rem; }
.plan-price { display: block; color: var(--ink); font-size: 1.35rem; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.billing-usage { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem 1.25rem; }
.billing-usage > div { display: flex; flex-direction: column-reverse; align-items: start; justify-content: end; }
.billing-usage dt { color: var(--secondary); font-size: .875rem; font-weight: 400; }
.billing-usage dd { color: var(--ink); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.customer-inline-form, .customer-row-heading { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem 1rem; }
.customer-row-heading { align-items: center; justify-content: space-between; }
.customer-row-heading h2 { margin: 0; }
.customer-fieldset > :not(legend) + * { margin-block-start: .85rem; }
.customer-fieldset [hidden] { display: none; }
.customer-panel progress { width: 100%; accent-color: var(--focus); }
.customer-form .calculation-result { background: var(--rail); color: var(--ink); border-radius: .5rem; padding: .65rem .85rem; }
@media (max-width: 40rem) {
  .account-step-footer { align-items: start; }
  .password-help, .profile-help { font-size: 1rem; }
}
