/* Customer workspace finish. The shared interface owns control primitives;
   the customer theme and configured accent remain the color source of truth. */
.customer-page {
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif);
  line-height: 1.6;
  letter-spacing: -.012em;
}

/* Public navigation stays legible over the existing animated hero. */
.customer-header { gap: 24px; }
.customer-header .brand { font-weight: 600; }
.customer-public-nav { gap: 24px; }
.customer-public-nav a { padding-block: 9px; font-weight: 450; }
.customer-header .customer-actions { gap: 14px; }
.customer-header :is(#guest-actions, #member-actions) { display: flex; align-items: center; gap: 8px; }
.customer-header .button.compact { min-height: 36px; padding: 8px 17px; }
.customer-header .customer-user-button { min-height: 36px; padding: 8px 16px; font-weight: 550; }
.customer-header .text-button { padding: 8px 4px; }
.customer-header :is(button, a):focus-visible { outline-color: #a3d7ff; }

/* The service area uses the same compact, quiet rhythm as the console. */
.customer-main { max-width: 1176px; padding: 32px 28px 36px; min-width: 0; }
.customer-page .customer-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 5px;
  margin: 0 0 42px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.customer-page .customer-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 21px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  transition: color 160ms, background-color 160ms, border-color 160ms;
}
.customer-page .customer-tabs button:hover { color: var(--text); background: var(--page); }
:root[data-site-theme] .customer-page .customer-tabs button.active,
.customer-page .customer-tabs button.active {
  color: var(--accent-text, var(--purple-dark));
  background: var(--accent-soft, var(--purple-soft));
  border-color: color-mix(in srgb, var(--purple) 10%, transparent);
}
.customer-page .customer-tabs button:focus-visible { outline-offset: -3px; }
.customer-section { min-width: 0; }
.customer-section h2 { font-size: clamp(26px, 2.5vw, 32px); font-weight: 650; line-height: 1.3; letter-spacing: -.045em; }
.plans-heading { gap: 32px; margin-bottom: 28px; }
.plans-heading .eyebrow { margin-bottom: 10px; font-size: 10px; font-weight: 550; letter-spacing: .12em; }
.plans-heading .section-intro { font-size: 13px; line-height: 1.85; }
.customer-list-heading { gap: 24px; margin-bottom: 25px; }
.customer-list-heading h2 { margin-bottom: 10px; }
.customer-list-heading .section-intro,
.customer-section > .section-intro { color: var(--muted); font-size: 14px; line-height: 1.75; }
.customer-list-heading > div { min-width: 0; }
.customer-list-heading > .button { flex-shrink: 0; }
.customer-page .card {
  border-radius: 20px;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 3px 16px rgb(0 0 0 / .025), 0 1px 2px rgb(0 0 0 / .015);
}

/* Prices, quotas and actions share an aligned card structure. */
.plan-grid { gap: 20px; }
.customer-page .plan-card { padding: 30px; min-width: 0; gap: 0; }
.customer-page .plan-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--purple) 30%, var(--line));
  box-shadow: 0 8px 28px rgb(0 0 0 / .045);
}
.plan-card > .eyebrow { margin-bottom: 22px; color: var(--accent-text, var(--purple-dark)); font-size: 10px; letter-spacing: .1em; }
.plan-card h3 { margin-bottom: 11px; font-size: 24px; line-height: 1.35; font-weight: 600; }
.plan-description { min-height: 48px; margin-bottom: 28px; font-size: 13px; line-height: 1.85; }
.plan-price { align-items: baseline; gap: 9px; padding-bottom: 25px; }
.plan-price strong { min-width: 0; font-size: 38px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.plan-price span { font-size: 12px; }
.plan-features { gap: 11px; padding: 25px 0 28px; font-size: 13px; line-height: 1.75; }
.plan-features li { overflow-wrap: anywhere; }
.customer-page .plan-card .button { width: 100%; min-height: 42px; margin-top: auto; padding: 11px 18px; font-size: 13px; justify-content: space-between; }
.manual-note { gap: 15px; padding: 24px 0; margin: 30px 0 17px; }
.manual-note > div { min-width: 0; }
.manual-note > span { width: 36px; height: 36px; border-radius: 11px; color: var(--accent-text, var(--purple-dark)); }
.manual-note strong { color: var(--text); font-size: 13px; font-weight: 550; }
.manual-note p { font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.customer-code-note { color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.customer-code-note a { color: var(--accent-text, var(--purple-dark)); }

/* Tables retain a local horizontal scroll area for real account data. */
.customer-page .table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.customer-page table { width: 100%; font-size: 13px; }
.customer-page th { padding: 16px 24px; color: var(--muted); background: var(--page); font-size: 11px; font-weight: 550; line-height: 1.5; }
.customer-page td { padding: 20px 24px; font-size: 13px; line-height: 1.6; color: var(--text); font-variant-numeric: tabular-nums; }
.customer-page td > strong { display: block; max-width: 280px; white-space: normal; overflow-wrap: anywhere; font-size: 13px; font-weight: 550; }
.customer-record-id { max-width: 280px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.customer-page td.align-right .button { vertical-align: middle; }
.customer-page td.align-right .button + .button { margin-left: 8px; }
.customer-status { padding: 5px 9px; border-radius: 7px; font-size: 11px; font-weight: 550; line-height: 1.4; }
.customer-status.closed { color: var(--muted); background: var(--page); }
.customer-empty { padding: 56px 28px; }
.customer-empty h3 { margin: 0 0 10px; font-size: 18px; font-weight: 550; color: var(--text); }
.customer-empty p { margin-top: 0; max-width: 480px; margin-inline: auto; font-size: 13px; line-height: 1.85; color: var(--muted); }

/* Product and service guidance follows the same surface hierarchy. */
.product-scope { margin-top: 54px; padding-top: 34px; }
.product-scope-heading { gap: 24px; align-items: center; }
.product-scope-heading h2 { font-size: clamp(25px, 2.3vw, 30px); }
.product-scope-heading .eyebrow { color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .12em; }
.product-scope-heading a,
.product-scope-footer a { color: var(--accent-text, var(--purple-dark)); font-size: 12px; font-weight: 500; padding-block: 6px; }
.product-scope-status { margin-top: 16px; font-size: 12px; line-height: 1.85; }
.product-scope-status > span { color: var(--accent-text, var(--purple-dark)); background: var(--accent-soft, var(--purple-soft)); padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 550; }
.product-scope-grid { gap: 18px; margin-top: 25px; }
.product-scope-grid article { padding: 25px; border-radius: 20px; box-shadow: 0 3px 16px rgb(0 0 0 / .02); }
.product-scope-grid article > span { margin-bottom: 17px; color: var(--accent-text, var(--purple-dark)); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.product-scope-grid h3 { margin-bottom: 12px; font-size: 16px; line-height: 1.65; font-weight: 550; }
.product-scope-grid p { font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.product-scope-footer { gap: 26px; margin-top: 24px; }
.product-scope-footer > div { min-width: 0; }
.product-scope-footer p { font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.customer-getting-started { gap: 12px; padding: 27px; border-radius: 20px; margin-top: 30px; }
.customer-getting-started > div { min-width: 0; padding-right: 12px; }
.customer-getting-started .eyebrow { font-size: 9px; line-height: 1.6; letter-spacing: .1em; }
.customer-getting-started h3 { font-size: 18px; font-weight: 550; margin: 7px 0 9px; }
.customer-getting-started p { font-size: 13px; }
.customer-getting-started .button { flex-shrink: 0; font-size: 12px; padding-inline: 18px; }
.customer-announcements { gap: 18px; }
.announcement-card { padding: 28px; }
.announcement-card h3 { font-size: 19px; line-height: 1.5; margin-bottom: 14px; }
.announcement-card p { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.announcement-card time { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; }
.customer-footer { align-items: center; gap: 24px; margin-top: 58px; padding-top: 25px; font-size: 11px; }
.customer-footer-links { gap: 8px 20px; }
.customer-footer-links a { padding-block: 6px; }

/* Specific dialog layouts complement the shared controls and dialog surface. */
.customer-page #auth-dialog { width: 460px; }
.customer-page :is(#order-detail-dialog, #account-dialog) { width: 540px; }
.customer-page :is(#ticket-create-dialog, #ticket-detail-dialog) { width: 600px; }
.customer-page #code-dialog { width: 620px; }
.customer-page .modal :is(form, .modal-heading > div, .modal-fields, .field, .password-field) { min-width: 0; }
.customer-page .modal-heading h2 { overflow-wrap: anywhere; }
.customer-page .modal-description { line-height: 1.8; margin-bottom: 22px; }
.customer-page .customer-auth-form { display: grid; gap: 18px; }
.customer-page .customer-auth-form > .field + .field { margin-top: 0; }
.customer-page .customer-auth-form > .button { width: 100%; margin-top: 4px; }
.customer-page .customer-auth-form > .customer-code-note { font-size: 12px; line-height: 1.8; }
.customer-page #auth-dialog > .form-error { margin: 0 0 20px; }
.customer-page .customer-auth-switch { justify-content: center; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 23px; }
.customer-page .customer-auth-switch button { min-height: 34px; padding: 6px 0; color: var(--accent-text, var(--purple-dark)); font-size: 12px; font-weight: 500; line-height: 1.6; }
.customer-page .customer-auth-token-info { margin: 0 0 20px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; overflow-wrap: anywhere; }
.customer-page .customer-auth-token-info strong { color: var(--text); }
.customer-page .modal-fields { gap: 19px; }
.customer-page .modal :is(.field input, .field textarea) { max-width: 100%; }
.customer-page .modal .field textarea { min-height: 112px; font-size: 14px; line-height: 1.75; resize: vertical; }
.customer-page .record-summary { margin-bottom: 22px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; font-size: 13px; line-height: 1.8; }
.customer-page .record-summary strong { margin-bottom: 6px; font-size: 14px; font-weight: 550; }
.customer-page .customer-timeline-note { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.customer-page .order-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.customer-page .order-detail > div { padding: 16px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.customer-page .order-detail span { margin-bottom: 7px; font-size: 11px; }
.customer-page .order-detail strong { font-size: 13px; font-weight: 550; line-height: 1.8; font-variant-numeric: tabular-nums; }
.customer-page .modal .manual-note { margin: 20px 0 17px; padding: 20px 0; }
.customer-page .modal .manual-note p { font-size: 12px; }
.customer-page .modal-footer { gap: 10px; margin-top: 26px; padding-top: 21px; }
.customer-page .secret-value { display: block; width: 100%; max-width: 100%; min-width: 0; max-height: 260px; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 13px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.85; }
.customer-page .secret-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.customer-page .secret-copy-state { min-height: 20px; margin-top: 12px; font-size: 12px; }
.customer-page #code-dialog > .customer-code-note { margin-top: 14px; }
.customer-page #ticket-detail-dialog > .customer-record-id { max-width: none; margin-top: -6px; }
.customer-page .ticket-messages { gap: 12px; max-height: min(360px, 40dvh); margin: 22px 0; padding: 1px; overscroll-behavior: contain; scrollbar-width: thin; }
.customer-page .ticket-message { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; }
.customer-page .ticket-message.admin { border-color: color-mix(in srgb, var(--purple) 14%, var(--line)); background: color-mix(in srgb, var(--purple) 6%, var(--surface)); }
.customer-page .ticket-message strong { font-size: 12px; font-weight: 600; }
.customer-page .ticket-message time { float: none; font-size: 10px; line-height: 1.8; color: var(--muted); }
.customer-page .ticket-message p { grid-column: 1 / -1; margin: 0; color: var(--text); font-size: 13px; line-height: 1.85; }
.customer-page .customer-email-status { margin: 0 0 20px; font-size: 13px; line-height: 1.8; }
.customer-page #account-dialog .account-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 12px; }
.customer-page #account-dialog .account-tabs button { min-width: 0; min-height: 38px; padding: 8px 9px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.customer-page #account-dialog .account-tabs button:hover { color: var(--text); }
.customer-page #account-dialog .account-tabs button.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 5px rgb(0 0 0 / .06); }
.customer-page .session-toolbar { gap: 15px; margin: 19px 0 14px; }
.customer-page .session-toolbar p { font-size: 12px; line-height: 1.7; }
.customer-page .session-toolbar .button { flex-shrink: 0; }
.customer-page .account-session-list { gap: 10px; max-height: 260px; margin-bottom: 23px; scrollbar-width: thin; overscroll-behavior: contain; }
.customer-page .account-session-list li { gap: 6px; padding: 15px 16px; border-radius: 12px; }
.customer-page .account-session-list strong { font-size: 13px; font-weight: 550; }
.customer-page .account-session-list span { font-size: 12px; line-height: 1.7; }

@media (prefers-color-scheme: dark) {
  .customer-page .card { box-shadow: 0 4px 22px rgb(0 0 0 / .1); }
  .customer-page .plan-card:hover { box-shadow: 0 8px 28px rgb(0 0 0 / .18); }
  .customer-page .plan-card > .eyebrow { color: var(--accent-text, color-mix(in srgb, var(--purple) 45%, white)); }
}

@media (max-width: 1100px) {
  .customer-header { gap: 18px; }
  .customer-public-nav { gap: 19px; }
  .customer-page .plan-card { padding: 26px; }
  .customer-getting-started > div { padding-right: 0; }
}
@media (max-width: 900px) {
  .customer-header { gap: 10px 16px; }
  .customer-public-nav { gap: 24px; }
  .customer-public-nav a { padding-block: 2px; }
  .plans-heading { gap: 16px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-getting-started { flex-wrap: wrap; }
  .customer-getting-started > div { flex-basis: 100%; margin-bottom: 6px; }
  .customer-footer { align-items: flex-start; }
}
@media (max-width: 620px) {
  .customer-header { padding-inline: 20px; }
  .customer-header .brand { font-size: 18px; }
  .customer-header .customer-actions { gap: 6px; }
  .customer-header :is(#guest-actions, #member-actions) { gap: 6px; }
  .customer-header .button.compact { min-height: 34px; padding: 8px 12px; font-size: 11px; }
  .customer-header .customer-user-button { max-width: 110px; min-height: 34px; padding: 8px 12px; font-size: 11px; }
  .customer-header .text-button { padding-inline: 2px; }
  .customer-main { padding: 24px 20px 28px; }
  .customer-page .customer-tabs { width: 100%; margin-bottom: 30px; padding: 4px; gap: 3px; }
  .customer-page .customer-tabs button { min-height: 39px; padding: 10px 16px; font-size: 12px; }
  .customer-page .customer-tabs button:first-child:last-child { flex: 1; }
  .customer-section h2 { font-size: 27px; }
  .plans-heading { margin-bottom: 24px; gap: 15px; }
  .plans-heading .eyebrow { font-size: 9px; }
  .plans-heading .section-intro { font-size: 13px; }
  .customer-list-heading { align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .customer-list-heading h2 { font-size: 26px; }
  .customer-list-heading .section-intro { font-size: 13px; }
  .customer-list-heading > .button { margin-top: 2px; }
  .plan-grid { grid-template-columns: 1fr; gap: 17px; }
  .customer-page .plan-card { padding: 27px; }
  .plan-card > .eyebrow { margin-bottom: 20px; }
  .plan-description { min-height: 0; margin-bottom: 24px; }
  .plan-price strong { font-size: 36px; }
  .plan-features { padding-block: 24px; }
  .manual-note { margin-top: 25px; padding: 23px 0; gap: 12px; }
  .customer-code-note { font-size: 12px; }
  .customer-page th { padding: 15px 18px; }
  .customer-page td { padding: 18px; }
  .customer-empty { padding: 42px 23px; }
  .customer-empty h3 { font-size: 17px; }
  .product-scope { margin-top: 40px; padding-top: 30px; }
  .product-scope-heading { align-items: flex-start; gap: 13px; }
  .product-scope-heading h2 { font-size: 25px; }
  .product-scope-heading .eyebrow { font-size: 9px; }
  .product-scope-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .product-scope-grid article { padding: 24px; }
  .product-scope-grid article > span { margin-bottom: 13px; }
  .product-scope-footer { gap: 14px; }
  .customer-getting-started { padding: 24px; gap: 10px; }
  .customer-getting-started h3 { font-size: 17px; }
  .customer-getting-started .button { flex: 1 1 135px; font-size: 12px; padding-inline: 12px; }
  .announcement-card { padding: 24px; }
  .customer-footer { margin-top: 44px; gap: 12px; }
  .customer-footer-links { gap: 5px 18px; }
  .customer-page .modal .field input { font-size: 16px; }
  .customer-page .modal .field textarea { font-size: 16px; min-height: 108px; }
  .customer-page .modal-description { font-size: 13px; }
  .customer-page .modal-footer { gap: 9px; margin-top: 23px; padding-top: 19px; }
  .customer-page .modal-footer .button { flex: 1 1 auto; min-width: 0; }
  .customer-page .customer-auth-switch { gap: 5px 17px; padding-top: 15px; }
  .customer-page .order-detail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .customer-page .order-detail > div { padding: 14px 16px; }
  .customer-page .secret-value { padding: 15px; max-height: 230px; font-size: 12px; }
  .customer-page .secret-actions .button { flex: 1; padding-inline: 12px; }
  .customer-page .ticket-message { gap: 9px; padding: 15px; }
  .customer-page .ticket-message time { font-size: 10px; }
  .customer-page #account-dialog .account-tabs { gap: 3px; }
  .customer-page #account-dialog .account-tabs button { padding: 9px 5px; font-size: 12px; }
}
@media (max-width: 370px) {
  .customer-header { padding-inline: 16px; }
  .customer-header .brand { font-size: 17px; }
  .customer-header .button.compact { padding-inline: 10px; }
  .customer-main { padding-inline: 16px; }
  .customer-page .plan-card { padding: 24px; }
  .customer-page .ticket-message { grid-template-columns: minmax(0, 1fr); }
  .customer-page .ticket-message time { grid-row: 2; }
  .customer-page .ticket-message p { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-page .customer-tabs button,
  .customer-page .plan-card { transition: none; }
  .customer-page .plan-card:hover { transform: none; }
}

/* Separate password confirmation from the credential and its disclosure actions. */
.customer-page #order-download-form { margin-bottom: 20px; }
