.billing-band {
  padding: 132px 0 144px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-hero {
  padding: 112px 0 72px;
  background: var(--surface);
}
.pricing-hero-inner {
  max-width: 860px;
}
.pricing-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 78px;
}
.pricing-hero p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.pricing-band {
  padding-top: 24px;
  border-top: 0;
}
.pricing-note {
  padding: 76px 0 112px;
  background: var(--surface);
}
.pricing-note-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pricing-note h2 {
  max-width: 640px;
  margin: 0;
  font-size: 34px;
}
.pricing-band > .billing-shell > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 809px) {
  .pricing-hero {
    padding: 86px 0 50px;
  }
  .pricing-hero h1 {
    font-size: 48px;
  }
  .pricing-note-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.billing-shell {
  position: relative;
}
.billing-heading {
  max-width: 720px;
  margin-bottom: 38px;
}
.billing-heading h2 {
  margin-bottom: 18px;
}
.billing-heading > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.billing-cycle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.billing-cycle button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.billing-cycle button[aria-pressed='true'] {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.billing-cycle button span {
  margin-left: 4px;
  color: var(--brand);
  font: 10px/14px var(--font-mono);
}
.billing-status {
  min-height: 22px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 22px;
}
.billing-status[data-state='error'] {
  color: var(--danger);
}
.billing-shell [hidden],
.billing-auth-dialog [hidden] {
  display: none !important;
}
.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
}
.billing-plan {
  position: relative;
  min-height: 370px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}
.billing-plan-pro {
  border-color: var(--brand-line);
  box-shadow: 0 14px 34px rgba(164, 52, 58, 0.12);
}
.billing-plan-ribbon {
  position: absolute;
  top: 0;
  right: 24px;
  padding: 5px 10px;
  color: var(--surface);
  background: var(--brand);
  font: 10px/14px var(--font-mono);
  letter-spacing: 0.08em;
}
.billing-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.billing-plan-head > span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.billing-plan-head > strong {
  color: var(--brand);
  font-size: 29px;
  line-height: 34px;
}
.billing-plan-head small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.billing-plan > p {
  min-height: 52px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.billing-plan ul {
  display: grid;
  gap: 12px;
  min-height: 112px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.billing-plan li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
}
.billing-plan li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--brand);
}
.billing-plan .button {
  width: 100%;
  justify-content: center;
}
.billing-comparison {
  display: grid;
  max-width: 900px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.billing-comparison-head,
.billing-comparison-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(120px, 0.55fr) minmax(
      120px,
      0.55fr
    );
  align-items: stretch;
}
.billing-comparison-head {
  min-height: 52px;
  color: var(--ink);
  background: var(--surface-soft);
}
.billing-comparison-row {
  min-height: 46px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}
.billing-comparison :is(strong, span[role='rowheader'], span[role='cell']) {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 10px 16px;
}
.billing-comparison :is(strong, span[role='cell']):not(:first-child) {
  justify-content: center;
  border-left: 1px solid var(--line);
  text-align: center;
}
.billing-comparison span[role='rowheader'] {
  font-weight: 600;
}
.billing-comparison span[role='cell'] {
  color: var(--muted);
}
.billing-comparison span[role='cell'].is-pro {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-soft) 52%, transparent);
  font-weight: 600;
}
.billing-comparison span[role='cell'] svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
}
.billing-comparison [data-availability='unavailable'] {
  color: var(--quiet);
}
.billing-account {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 900px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}
.billing-account h3 {
  margin: 5px 0 2px;
  font-size: 18px;
}
.billing-account p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.billing-account-state {
  display: grid;
  gap: 3px;
  min-width: 160px;
  margin-left: auto;
}
.billing-account-state strong {
  color: var(--brand);
  font-size: 14px;
}
.billing-account-state span {
  color: var(--muted);
  font-size: 12px;
}
.billing-account-actions {
  display: flex;
  gap: 8px;
}
.billing-account-actions .button {
  min-height: 36px;
  padding: 0 12px;
}
.billing-invoices {
  max-width: 900px;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.billing-invoices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
}
.billing-invoices-head button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
}
.billing-invoices-head button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}
.billing-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.billing-invoice-row strong {
  color: var(--text);
  font-size: 12px;
}
.billing-invoice-row a {
  color: var(--brand);
  font-weight: 600;
}
.billing-invoice-list {
  display: grid;
}
.billing-invoice-more {
  justify-self: start;
  margin-top: 14px;
}
.billing-login-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  max-width: 900px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.billing-login-prompt button {
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 600;
  text-decoration: underline;
}

.billing-auth-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.44);
}
.billing-auth-dialog {
  position: relative;
  width: min(430px, calc(100vw - 40px));
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-high);
}
.billing-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 24px;
}
.billing-auth-brand img {
  width: 32px;
  height: 32px;
}
.billing-auth-dialog h2 {
  margin-bottom: 10px;
  font-size: 30px;
}
.billing-auth-dialog > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.billing-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
}
.billing-auth-close:hover {
  color: var(--ink);
  background: var(--surface-soft);
}
.billing-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 4px;
  background: var(--surface-soft);
}
.billing-auth-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.billing-auth-tabs button[aria-selected='true'] {
  color: var(--brand-dark);
  background: var(--surface);
  box-shadow: var(--shadow-low);
}
.billing-auth-form {
  display: grid;
  gap: 13px;
}
.billing-auth-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.billing-auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  font: 13px/20px var(--font-ui);
}
.billing-auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(164, 52, 58, 0.12);
}
.billing-auth-submit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--surface);
  background: var(--brand);
  font-size: 13px;
  font-weight: 600;
}
.billing-auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}
.billing-auth-status {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}
.billing-auth-status[data-state='error'] {
  color: var(--danger);
}
.billing-auth-google {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.billing-auth-google:hover {
  background: var(--surface-soft);
}
.google-mark {
  color: #4285f4;
  font:
    700 16px/1 Arial,
    sans-serif;
}
.billing-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  color: var(--quiet);
  font-size: 11px;
}
.billing-auth-divider::before,
.billing-auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: '';
}
.billing-auth-password {
  position: relative;
  display: block;
}
.billing-auth-password input {
  padding-right: 42px;
}
.billing-auth-password > button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
}
.billing-auth-password svg {
  width: 17px;
  height: 17px;
}
.billing-auth-forgot,
.billing-auth-text-button {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.billing-auth-otp {
  text-align: center;
  font-family: var(--font-mono) !important;
  font-size: 20px !important;
  letter-spacing: 0;
}
.auth-route {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--surface-soft);
}
.auth-route-panel {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-high);
}
.auth-route-panel .billing-auth-brand {
  width: fit-content;
  text-decoration: none;
}
.auth-route-panel h1 {
  margin: 0 0 10px;
  font-size: 30px;
}
.auth-route-panel > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
.auth-route-panel > .button {
  justify-content: center;
}
.auth-route-back {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.auth-route-back:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}
.auth-route-form {
  display: grid;
  gap: 14px;
}
.auth-route-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.auth-route-form input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  font: 13px/20px var(--font-ui);
}
.auth-route-status {
  min-height: 20px;
  margin: 16px 0 0 !important;
  font-size: 12px !important;
}
.auth-route-status[data-state='error'] {
  color: var(--danger) !important;
}
.auth-route-spinner {
  width: 24px;
  height: 24px;
  color: var(--brand);
  animation: auth-spin 0.9s linear infinite;
}
.account-security-facts {
  margin-bottom: 18px;
}
.account-security-form {
  display: grid;
  gap: 13px;
  max-width: 440px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.account-security-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.account-security-form input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  font: 13px/20px var(--font-ui);
}
.account-security-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.account-security-form a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.billing-band button,
.billing-auth-dialog button {
  white-space: nowrap;
}

@media (max-width: 809px) {
  .billing-band {
    padding: 96px 0 108px;
  }
  .billing-heading > p:last-child {
    font-size: 16px;
  }
  .billing-grid {
    grid-template-columns: 1fr;
  }
  .billing-account {
    align-items: flex-start;
    flex-direction: column;
  }
  .billing-account-state {
    margin-left: 0;
  }
  .billing-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .billing-account-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }
}

@media (max-width: 539px) {
  .billing-plan {
    padding: 24px;
  }
  .billing-login-prompt {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .billing-account-actions {
    grid-template-columns: 1fr;
  }
  .billing-comparison {
    overflow: hidden;
  }
  .billing-comparison-head,
  .billing-comparison-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(72px, 0.75fr) minmax(
        72px,
        0.75fr
      );
  }
  .billing-comparison :is(strong, span[role='rowheader'], span[role='cell']) {
    padding: 9px 6px;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 14px;
  }
}
.billing-delete-account {
  color: #8f2930;
  border-color: rgba(143, 41, 48, 0.28);
}

.billing-delete-account:hover {
  color: #701f25;
  border-color: rgba(143, 41, 48, 0.52);
  background: #fff7f7;
}

/* Account center: Design DNA structure with Explixit brand accents. */
.account-main {
  --account-accent: var(--brand);
  --account-accent-soft: var(--brand-soft);
  --account-accent-line: var(--brand-line);
  min-height: calc(100vh - var(--header-height));
  background: var(--surface-soft);
}

.account-main .button-primary {
  color: var(--surface-soft);
  border-color: var(--ink);
  background: var(--ink);
}

.account-main .button-primary:hover {
  color: var(--surface);
  border-color: #000;
  background: #000;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.account-main .button-secondary:hover {
  border-color: var(--account-accent-line);
  background: var(--account-accent-soft);
}

.account-page-header {
  padding: 80px 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.account-page-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  align-items: end;
  gap: 72px;
}

.account-page-header h1 {
  margin-bottom: 16px;
  font-size: 52px;
  line-height: 1.05;
}

.account-page-header p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 27px;
}

.account-identity-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.account-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--account-accent);
  font-size: 18px;
  font-weight: 700;
}

.account-identity-summary > div {
  display: grid;
  min-width: 0;
}

.account-identity-summary > div > span,
.account-identity-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity-summary strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity-summary > b {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
  background: var(--surface-soft);
  font: 600 11px/16px var(--font-mono);
}

.account-identity-summary > b[data-plan='pro'] {
  color: var(--brand-dark);
  border-color: var(--account-accent-line);
  background: var(--account-accent-soft);
}

.account-workspace {
  padding: 32px 0 112px;
}

.account-status {
  min-height: 24px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.account-status[data-state='error'],
.account-invoice-state[data-state='error'] {
  color: var(--danger);
}

.account-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.account-panel,
.account-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-low);
}

.account-panel {
  min-width: 0;
  padding: 28px;
}

.account-panel-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.account-panel-heading > div {
  min-width: 0;
}

.account-panel-heading .eyebrow {
  margin-bottom: 3px;
}

.account-panel-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
}

.account-panel-icon,
.account-message-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand);
  border: 1px solid var(--account-accent-line);
  background: var(--account-accent-soft);
}

.account-panel-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.account-panel-icon svg,
.account-message-icon svg {
  width: 19px;
  height: 19px;
}

.account-state-badge {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.account-state-badge[data-tone='success'] {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
  background: color-mix(in srgb, var(--success) 7%, var(--surface));
}

.account-state-badge[data-tone='warning'] {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 32%, var(--line));
  background: color-mix(in srgb, var(--warning) 7%, var(--surface));
}

.account-state-badge[data-tone='danger'] {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

.account-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.account-facts > div {
  min-width: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.account-facts > div:nth-child(odd) {
  padding-right: 20px;
}

.account-facts > div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.account-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.account-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.account-facts dd[data-tone='success'] {
  color: var(--success);
}

.account-facts dd[data-tone='warning'] {
  color: var(--warning);
}

.account-plan-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.account-plan-summary > div {
  display: grid;
  gap: 3px;
}

.account-plan-summary span {
  color: var(--muted);
  font-size: 11px;
}

.account-plan-summary strong {
  color: var(--account-accent);
  font-size: 30px;
  line-height: 34px;
}

.account-plan-summary p,
.account-panel-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.account-panel-description {
  margin-bottom: 20px;
}

.account-panel-actions,
.account-management-actions,
.account-message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.account-panel-actions .button,
.account-management-actions .button,
.account-message-actions .button,
.account-invoice-panel > .button,
.account-message > .button {
  min-height: 38px;
  white-space: nowrap;
}

.account-panel-actions svg,
.account-management-actions svg,
.account-message-actions svg,
.account-invoice-panel > .button svg {
  width: 16px;
  height: 16px;
}

.account-support-link {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-invoice-panel,
.account-management-panel {
  align-self: start;
}

.account-invoice-list {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.account-invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.account-invoice-row > span:first-child {
  display: grid;
  min-width: 0;
}

.account-invoice-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-invoice-row small {
  color: var(--muted);
  font-size: 11px;
}

.account-invoice-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-dark);
  font-weight: 600;
}

.account-invoice-row a svg {
  width: 14px;
  height: 14px;
}

.account-invoice-state {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.account-invoice-more {
  justify-self: start;
  margin-top: 16px;
}

.account-delete-button {
  color: #8f2930;
  border-color: rgba(143, 41, 48, 0.28);
}

.account-delete-button:hover {
  color: #701f25;
  border-color: rgba(143, 41, 48, 0.52);
  background: #fff7f7;
}

.account-message {
  display: grid;
  max-width: 720px;
  justify-items: start;
  padding: 44px;
}

.account-message-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
}

.account-message-icon[data-busy] svg {
  animation: account-spin 900ms linear infinite;
}

.account-message h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 36px;
}

.account-message p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 809px) {
  .account-page-header {
    padding: 64px 0 42px;
  }

  .account-page-header-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .account-page-header h1 {
    font-size: 42px;
  }

  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .account-workspace {
    padding-bottom: 88px;
  }
}

@media (max-width: 539px) {
  .account-page-header {
    padding-top: 48px;
  }

  .account-page-header h1 {
    font-size: 36px;
  }

  .account-identity-summary {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 14px;
  }

  .account-avatar {
    width: 44px;
    height: 44px;
  }

  .account-panel,
  .account-message {
    padding: 22px;
  }

  .account-panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-state-badge {
    margin-left: 50px;
  }

  .account-facts {
    grid-template-columns: 1fr;
  }

  .account-facts > div:nth-child(odd),
  .account-facts > div:nth-child(even) {
    padding: 14px 0;
    border-left: 0;
  }

  .account-plan-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-panel-actions,
  .account-management-actions,
  .account-message-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-panel-actions .button,
  .account-management-actions .button,
  .account-message-actions .button,
  .account-invoice-panel > .button {
    width: 100%;
    justify-content: center;
  }

  .account-invoice-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
  }

  .account-invoice-row a,
  .account-invoice-row > span:last-child:not(:nth-child(2)) {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-message-icon[data-busy] svg {
    animation: none;
  }
}
