/* Moonlit customer journeys: decorative edges, calm lilac reading surfaces. */
.moon-customer {
  --customer-line: rgb(var(--c-violet-700) / 0.28);
  --customer-field: var(--lh-field);
  --customer-success: rgb(var(--c-green-800));
  --customer-danger: rgb(var(--c-rose-600));
  width: 100%;
  min-width: 0;
  color: var(--lh-ink);
}
.moon-customer :is(.content-card, .sample-entry-shell, .sample-step-wrapper, .rabbit-step-wrapper, .sample-review-wrap) { width: 100%; min-width: 0; margin-inline: auto; }
.moon-customer > .content-card { max-width: none; }
.moon-customer :is(h1, h2, h3, .page-title, .order-title, .sample-complete-title, .sample-review-title, .sample-step-title, .rabbit-step-title) { color: var(--lh-ink); font-family: var(--lh-serif); font-size-adjust: 0.46; text-shadow: none; font-weight: 500; }
.moon-customer :is(.page-title, .order-title, .sample-complete-title) { font-size: clamp(2.15rem, 4.6vw, 3.65rem); line-height: 1.1; letter-spacing: -.035em; }
.moon-customer :is(p, li) { line-height: 1.65; }
.moon-customer :is(.card-subtitle, .order-subtitle, .order-meta, .field-help, .field-hint, .rabbit-help, .sample-field-help, .mini-note, .results-limit-note) { color: var(--lh-muted); }
.moon-customer :is(.section-kicker, .sample-complete-kicker, .order-journey-kicker, .sample-step-eyebrow, .smart-title, .choice-title) { color: var(--lh-accent); font-family: var(--lh-sans); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.customer-portal-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  margin: 0 0 clamp(1.2rem, 3vw, 2rem);
  padding: .55rem;
  border: 1px solid rgb(var(--c-violet-400-8));
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(var(--c-bg-2)), rgb(var(--c-night)));
  box-shadow: 0 3px 0 rgb(var(--c-night)), inset 0 0 0 3px rgb(var(--c-surface) / 0.08);
}
.moon-customer .customer-portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  padding: .65rem .85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgb(var(--c-violet-100-2));
  font-size: .8rem;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
}
.moon-customer .customer-portal-nav a:hover { color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-700-4)); }
.moon-customer .customer-portal-nav a[aria-current="page"] { color: rgb(var(--c-ink)); background: rgb(var(--c-violet-100)); border-color: rgb(var(--c-surface)); }
.moon-customer .customer-portal-nav .customer-portal-nav-order { margin-left: auto; color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-600-4)); border-color: rgb(var(--c-violet-300-3)); }

/* The form and table interiors stay light; night belongs to the outer frame. */
.moon-customer :is(.account-card, .password-panel, .credit-activity-panel, .order-card, .samples-table-wrap, .sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card, .order-journey, .results-filter-form, .result-order-row, .next-action-card, .collection-help-card, .next-card, .order-contact, .order-summary, .credits-form, .price-card) {
  color: var(--lh-ink);
  background: var(--lh-surface-soft);
  border-color: var(--customer-line);
  box-shadow: 0 5px 16px rgb(var(--c-bg-2) / 0.06);
}
.moon-customer :is(.account-shell, .results-page-shell, .sample-entry-card, .dashboard-wrapper, .orders-wrapper, .order-wrapper, .credits-wrapper, .thanks-wrapper) { background: transparent; box-shadow: none; }
.moon-customer :is(.account-shell::before, .feather-layer, .floating-feather, .instruction-pill::after, .btn-shimmer::after) { display: none; }
.moon-customer :is(.stat, .credits-pill, .credits-row, .customer-credit-group, .results-page-count, .result-test-pill, .sample-chip, .sample-test-card, .sample-mini-card) { background: var(--lh-surface-deep); border-color: var(--customer-line); color: var(--lh-ink); box-shadow: none; }
.moon-customer :is(.stat-num, .credits-num) { color: var(--lh-accent); text-shadow: none; }
.moon-customer .account-card-title,
.moon-customer .password-panel h2 { text-align: left; font-size: 1.45rem; font-weight: 500; }
.moon-customer :is(.account-card, .password-panel, .credit-activity-panel) { padding: clamp(1.15rem, 2.4vw, 1.7rem); border-radius: 9px; }
.moon-customer .account-grid { max-width: none; gap: 1.1rem; }
.moon-customer .password-panel { max-width: 720px; }
.moon-customer .account-hero { margin-bottom: 2rem; }
.moon-customer :is(.account-hero strong, .customer-credit-available strong, .credit-activity-heading h2, .customer-credit-group h3) { color: var(--lh-ink); }
.moon-customer .customer-credit-change-added { color: var(--customer-success); }
.moon-customer .customer-credit-change-used { color: var(--customer-danger); }
.moon-customer .customer-credit-summary { background: var(--lh-surface-deep); }
.moon-customer .account-action-row { justify-content: flex-start; }
.moon-customer .order-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.moon-customer .order-card { min-width: 0; }
.moon-customer .order-card .tests-table { min-width: 0; }
.moon-customer .order-card .moon-table-scroll { width: 100%; max-width: 100%; }

.moon-customer label { color: var(--lh-ink); }
.moon-customer :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea) {
  max-width: 100%;
  min-height: 48px;
  padding: .75rem .85rem;
  border: 1px solid rgb(var(--c-violet-400-4));
  border-radius: 6px;
  color: var(--lh-ink);
  background: var(--customer-field);
  box-shadow: inset 0 1px 2px rgb(var(--c-violet-900) / 0.04);
  font-family: var(--lh-sans);
  font-size: 1rem;
  line-height: 1.4;
}
.moon-customer select { padding-right: 2rem; }
.moon-customer :is(input, textarea)::placeholder { color: rgb(var(--c-border)); opacity: 1; }
.moon-customer :is(input, select, textarea):focus-visible { outline: 3px solid rgb(var(--c-status-rerun)); outline-offset: 2px; border-color: rgb(var(--c-violet-600-4)); }
.moon-customer :is(input[type="checkbox"], input[type="radio"]) { accent-color: rgb(var(--c-accent)); }
.moon-customer input[type="file"] { overflow: hidden; }
.moon-customer :is(.form-row, .form-field, .field, .order-field, .credits-field) { min-width: 0; }
.moon-customer :is(.form-row label, .form-field > label, .field-label, .order-field > span, .credits-field > span) { display: block; margin-bottom: .45rem; color: var(--lh-ink); font-size: .85rem; font-weight: 700; }
.moon-customer :is(.stacked-form, .card-auth form) { display: grid; gap: 1rem; max-width: 600px; }
.moon-customer .form-field :is(input, select, textarea) { width: 100%; }
.moon-customer :is(.errorlist, .field-error, .rabbit-error, .rabbit-errors-list, .bulk-field-error) { color: var(--customer-danger); font-weight: 650; }
.moon-customer :is(.form-errors, .error-box, .bulk-error-banner, .form-error-summary, .toast-error) { background: rgb(var(--c-rose-100)); border: 1px solid rgb(var(--c-rose-400-5)); color: rgb(var(--c-rose-600)); border-radius: 7px; }
.moon-customer :is(.toast-success, .success-box) { background: rgb(var(--c-grey-100)); border: 1px solid rgb(var(--c-green-400)); color: rgb(var(--c-green-600)); }
.moon-customer .errorlist { padding-left: 1.1rem; list-style: disc; line-height: 1.5; }

/* Targeted action rules replace inconsistent per-page legacy button skins. */
.moon-customer :is(.btn, .btn-primary, .order-journey-action, .bulk-apply-button, .results-filter-button, .order-cta-button) {
  min-height: 46px;
  padding: .78rem 1.25rem;
  border: 1px solid rgb(var(--c-violet-300-3)) !important;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(var(--c-status-rerun)), rgb(var(--c-violet-600-4))) !important;
  color: rgb(var(--c-pure-white)) !important;
  -webkit-text-fill-color: rgb(var(--c-pure-white)) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--c-violet-100) / 0.22), 0 4px 15px rgb(var(--c-violet-600-8) / 0.23) !important;
  font-family: var(--lh-sans);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
  animation: none;
}
.moon-customer :is(.btn-secondary, .btn-ghost, .btn-secondary-small, .create-pill, .instruction-pill) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .72rem 1.1rem;
  border: 1px solid rgb(var(--c-violet-400-5)) !important;
  border-radius: 999px;
  color: rgb(var(--c-deep)) !important;
  -webkit-text-fill-color: rgb(var(--c-deep)) !important;
  background: rgb(var(--c-surface)) !important;
  box-shadow: none !important;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
}
.moon-customer :is(.btn, .btn-primary, .btn-secondary, .btn-ghost, .order-journey-action):hover { filter: brightness(1.05); transform: translateY(-1px); }
.moon-customer :is(button, .btn, .btn-secondary, .btn-primary):disabled { opacity: .6; cursor: not-allowed; transform: none; }
.moon-customer :is(.btn-pulse, .btn-shimmer) { animation: none; }
.moon-customer :is(.auth-card .page-title, .auth-card.auth-card .page-title) { color: var(--lh-ink); font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; text-shadow: none; }

/* Sample instructions preserve clear next steps and obvious selected controls. */
.moon-customer .order-journey { padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 10px; background: rgb(var(--c-surface)); }
.moon-customer .order-journey-heading h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; }
.moon-customer .order-journey-step { background: rgb(var(--c-surface-soft)); border-color: rgb(var(--c-surface-deep)); border-radius: 7px; }
.moon-customer .order-journey-step.is-current { background: rgb(var(--c-violet-100-2)); border: 2px solid rgb(var(--c-violet-500-4)); box-shadow: 0 0 0 3px rgb(var(--c-violet-500-4) / 0.08); }
.moon-customer .order-journey-step.is-done { opacity: 1; }
.moon-customer .order-journey-number { background: rgb(var(--c-surface-deep)); color: rgb(var(--c-violet-700)); }
.moon-customer .is-current .order-journey-number { background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-pure-white)); }
.moon-customer .is-done .order-journey-number { background: rgb(var(--c-grey-100)); color: rgb(var(--c-green-600)); }
.moon-customer :is(.order-journey-order, .order-journey-progress) { color: var(--lh-ink); background: rgb(var(--c-surface-deep)); border-color: rgb(var(--c-violet-300-2)); }
.moon-customer :is(.order-journey-progress-track, .sample-progress-track) { background: rgb(var(--c-surface-deep)) !important; }
.moon-customer :is(.order-journey-progress-track span, .sample-progress-fill) { background: linear-gradient(90deg, rgb(var(--c-violet-600-4)), rgb(var(--c-violet-400-9))) !important; box-shadow: none; }
.moon-customer .order-journey-link { color: rgb(var(--c-violet-600-4)); }
.moon-customer :is(.sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card) { border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 10px; max-width: 980px; }
.moon-customer :is(.sample-label-panel, .rabbit-label-rule, .sample-label-rule, .sample-review-label-rule, .mailing-focus, .sample-warning-card, .sample-dry-warning) { background: rgb(var(--c-surface-soft)); border-color: rgb(var(--c-violet-400-4)); color: var(--lh-ink); }
.moon-customer :is(.baggie-label, .rabbit-label-pill, .sample-label-pill, .sample-code-pill) { background: rgb(var(--c-surface-soft)); color: rgb(var(--c-violet-700-3)); border: 2px dashed rgb(var(--c-violet-400-5)); box-shadow: none; text-shadow: none; }
.moon-customer :is(.sample-helper-card, .rabbit-helper-card, .rabbit-instructions, .rabbit-genetics-intro, .collection-help-card) { background: rgb(var(--c-surface)); color: var(--lh-ink); border-color: rgb(var(--c-violet-300-2)); box-shadow: none; }
.moon-customer :is(.gene-choice:has(input:checked), .add-on-choice:has(input:checked), .add-on-choice.is-active, .sample-add-on-option:has(input:checked)) {
  border: 2px solid rgb(var(--c-status-rerun)) !important;
  color: rgb(var(--c-violet-700-3)) !important;
  background: rgb(var(--c-violet-200-2)) !important;
  box-shadow: 0 0 0 2px rgb(var(--c-violet-600-4) / 0.12) !important;
}
.moon-customer .gene-choice:has(input:checked)::after,
.moon-customer .gene-choice:has(input:checked)::before { color: rgb(var(--c-violet-700-3)); }
.moon-customer :is(.sample-number-panel, .sample-label-panel, .sample-form-card, .sample-mini-card, .rabbit-form, .gene-grid-wrap) { border-radius: 8px; }
.moon-customer .sample-number-panel h1 { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 500; }
.moon-customer :is(.sample-actions, .rabbit-actions, .sample-review-actions, .sample-complete-actions, .thanks-actions, .thanks-buttons) { gap: .8rem; }

/* Tables retain their real columns and gain keyboard-accessible scrolling. */
.moon-customer :is(.orders-table-card, .samples-table-wrap, .tests-table-card, .bulk-table-wrap, .sample-review-table-wrap, .customer-table-scroll) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 8px; }
.moon-customer table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.moon-customer :is(th, td) { padding: .9rem .85rem; vertical-align: top; line-height: 1.5; text-align: left; border-bottom: 1px solid rgb(var(--c-surface-deep)); color: var(--lh-ink); }
.moon-customer thead { background: rgb(var(--c-surface-deep)); }
.moon-customer th { color: rgb(var(--c-violet-700)); font-size: .77rem; font-weight: 800; letter-spacing: .025em; }
.moon-customer tbody tr:nth-child(even) { background: rgb(var(--c-violet-100-2) / 0.5); }
.moon-customer tbody tr:last-child td { border-bottom: 0; }
.moon-customer :is(.orders-table, .sample-review-table) { min-width: 620px; }
.moon-customer .orders-table .orders-col-action { width: auto; }
.moon-customer .orders-order-value { color: rgb(var(--c-deep)); font-size: 1rem; }
.moon-customer :is(.order-result-pill, .result-test-pill) { background: rgb(var(--c-surface)) !important; border: 1px solid rgb(var(--c-violet-300-2)) !important; color: rgb(var(--c-violet-700-4)) !important; box-shadow: none !important; text-shadow: none !important; }
.moon-customer :is(.order-result-pill.result-m, .result-test-pill[data-test-code="chicken_blue_egg"]) { background: rgb(var(--c-blue-100)) !important; border-color: rgb(var(--c-blue-300-2)) !important; }
.moon-customer .order-result-pill.result-f { background: rgb(var(--c-magenta-100-3)) !important; border-color: rgb(var(--c-magenta-300-7)) !important; }
.moon-customer .order-result-pill.result-pending { background: rgb(var(--c-surface-soft)) !important; border-style: dashed !important; }
.moon-customer .results-filter-form { gap: .85rem; padding: 1.1rem; border-radius: 8px; }
.moon-customer .result-order-row { padding: 1.15rem; margin-top: .75rem; border-radius: 8px; }
.moon-customer .result-order-row :is(span, strong) { text-shadow: none; }
.moon-customer :is(.results-empty-card, .orders-empty) { padding: clamp(1.5rem, 5vw, 3.5rem); background: rgb(var(--c-surface)); border: 1px dashed rgb(var(--c-violet-300-2)); border-radius: 10px; text-align: center; }

/* A useful dashboard: stable account information, then the next action. */
.moon-customer .dashboard-hero { text-align: left; max-width: 840px; margin: 0 0 1.8rem; }
.moon-customer .dashboard-hero .page-title { text-align: left; }
.moon-customer .dashboard-intro { font-size: 1rem; max-width: 65ch; }
.moon-customer .dashboard-icon { margin-left: 0; width: 64px; height: 64px; background: rgb(var(--c-ink)); box-shadow: 0 0 16px rgb(var(--c-accent) / 0.25); }
.moon-customer .dashboard-witch { display: none; }
.moon-customer .dashboard-order-cta { max-width: none; text-align: left; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgb(var(--c-violet-400-5)); border-left: 4px solid rgb(var(--c-violet-600-6)); background: rgb(var(--c-surface)); box-shadow: none; }
.moon-customer .dashboard-order-cta h2 { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 500; }
.moon-customer .dashboard-order-cta p { max-width: 66ch; margin-left: 0; font-size: 1rem; font-weight: 400; }
.moon-customer .order-cta-icon { display: none; }
.moon-customer .order-cta-button { width: auto; }
.moon-customer .dashboard-instructions-cta { max-width: none; margin-block: 1rem 1.75rem; }
.moon-customer .customer-summary-section { max-width: none; padding: 0; }
.moon-customer .customer-summary-card { padding: 1.25rem; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 9px; background: rgb(var(--c-surface)); }
.moon-customer .dashboard-ticker { border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none; overflow: visible; }
.moon-customer .dashboard-ticker-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; width: auto; padding: 0; animation: none; transform: none; }
.moon-customer .dashboard-ticker-item { min-width: 0; display: grid; justify-content: start; gap: .35rem; padding: 1rem; border-radius: 6px; background: rgb(var(--c-surface-soft)); box-shadow: none; border: 1px solid rgb(var(--c-violet-300-2)); }
.moon-customer .dashboard-ticker-item[aria-hidden="true"] { display: none; }
.moon-customer .dashboard-ticker-item strong { white-space: normal; font-size: 1.1rem; line-height: 1.3; color: rgb(var(--c-deep)); }
.moon-customer :is(.dashboard-action-card, .dashboard-nextstep-card, .action-card) { padding: 1.35rem; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 8px; background: rgb(var(--c-surface-soft)); box-shadow: none; text-align: left; }
.moon-customer :is(.dashboard-action-card h2, .dashboard-nextstep-card h3) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: 1.55rem; font-weight: 500; }
.moon-customer .dashboard-section-title { text-align: left; font-family: var(--lh-serif); font-size-adjust: 0.46; }
.moon-customer :is(.dashboard-actions, .dashboard-card-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* Authentication fits the same illuminated gallery without competing imagery. */
.moon-customer .auth-wrapper { min-height: auto; padding: clamp(1rem, 4vw, 2.5rem) 0; }
.moon-customer .auth-card { width: min(100%, 920px); max-width: 920px; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 12px; background: rgb(var(--c-surface)); box-shadow: none; }
.moon-customer .auth-visual { min-height: 320px; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 120px 120px 8px 8px; background: radial-gradient(ellipse at 50% 40%, rgb(var(--c-violet-700)), rgb(var(--c-bg-2)) 72%); }
.moon-customer .auth-logo-image { animation: none; filter: none; mix-blend-mode: screen; width: min(100%, 285px); height: auto; border-radius: 0; }
.moon-customer .auth-visual::after { display: none; }
.moon-customer .auth-divider span { background: transparent; }
.moon-customer .auth-form-panel { padding: .6rem; }
.moon-customer .card-auth { max-width: 580px; margin-inline: auto; padding: clamp(1.25rem, 4vw, 2.5rem); }
.moon-customer .card-auth input { width: 100%; }
.moon-customer--signup, .moon-customer--create-order { max-width: 720px; margin-inline: auto; }
.moon-customer--signup .stacked-form { max-width: none; }
.moon-customer .customer-table-scroll { margin-block: 1.5rem; }
.moon-customer .customer-order-total { padding: 1rem; background: rgb(var(--c-surface-deep)); border-radius: 6px; font-weight: 750; }

/* Stable dashboard geometry replaces the accumulated old themed overrides. */
.moon-customer .dashboard-wrapper { position: relative; }
.moon-customer .dashboard-inner { min-width: 0; }
.moon-customer .dashboard-icon { display: grid; place-items: center; margin: 0 0 1.25rem; border-radius: 50%; }
.moon-customer .dashboard-icon img { display: block; width: 64px; height: 64px; object-fit: contain; }
.moon-customer .dashboard-hero .page-title { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 500; margin: 0 0 .75rem; }
.moon-customer .dashboard-hero p { margin: .65rem 0 0; }
.moon-customer .dashboard-order-cta { margin-bottom: 1rem; border-radius: 8px; }
.moon-customer .dashboard-order-cta h2 { margin: 0 0 .5rem; }
.moon-customer .dashboard-order-cta .order-cta-button { display: inline-flex; margin-top: .5rem; }
.moon-customer .instructions-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.moon-customer .instruction-pill { text-align: left; border-radius: 8px; }
.moon-customer .instruction-icon { flex: 0 0 auto; }
.moon-customer .customer-summary-section { margin: 1.5rem 0; }
.moon-customer .customer-summary-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgb(var(--c-surface-deep)); }
.moon-customer .customer-summary-emoji::before { content: "✦"; font-size: 1.6rem; color: rgb(var(--c-violet-500-4)); }
.moon-customer .customer-summary-title h2 { margin: 0; font-size: 1.5rem; }
.moon-customer .customer-summary-sub { margin: .25rem 0 0; color: var(--lh-muted); font-size: .88rem; }
.moon-customer .dashboard-ticker-item { text-decoration: none; }
.moon-customer .dashboard-ticker-item span { color: var(--lh-muted); font-size: .72rem; font-weight: 700; }
.moon-customer .customer-credit-breakdown { margin: 1.3rem 0; }
.moon-customer .breakdown-title { margin: 0 0 .75rem; font-size: 1.3rem; }
.moon-customer .breakdown-grid { display: grid; gap: .4rem; }
.moon-customer .breakdown-row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; border: 1px solid rgb(var(--c-surface-deep)); border-radius: 6px; background: rgb(var(--c-surface-soft)); font-size: .88rem; }
.moon-customer .breakdown-qty { font-weight: 800; color: var(--lh-accent); }
.moon-customer .account-banner-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.moon-customer .account-stat { display: grid; gap: .35rem; padding: 1rem; background: rgb(var(--c-surface-soft)); border: 1px solid rgb(var(--c-surface-deep)); border-radius: 6px; text-decoration: none; }
.moon-customer .account-stat strong { color: var(--lh-accent); font-size: 1.7rem; line-height: 1.2; }
.moon-customer .account-stat .stat-label { color: rgb(var(--c-muted)); font-size: .72rem; font-weight: 750; }
.moon-customer .account-stat .stat-note { color: var(--lh-muted); font-size: .75rem; }
.moon-customer .dashboard-nextstep-section { margin: 1.75rem 0; }
.moon-customer .dashboard-section-title { font-size: 1.7rem; }
.moon-customer .nextstep-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.moon-customer .nextstep-title { margin: 0; }
.moon-customer .nextstep-label { margin: .75rem 0; }
.moon-customer .dashboard-nextstep-btn { display: inline-flex; }
.moon-customer .dashboard-action-card h2 { margin: 0 0 .65rem; }
.moon-customer .dashboard-action-button { display: inline-flex; margin-top: .5rem; }
.moon-customer .dashboard-links { margin: 1.5rem 0 0; color: var(--lh-muted); }
.moon-customer .dashboard-links p { margin-bottom: 0; }

/* Every status keeps a text label as well as a restrained, legible color cue. */
.moon-customer .status-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 999px; color: rgb(var(--c-violet-700)) !important; background: rgb(var(--c-surface)) !important; font-size: .75rem; font-weight: 700; line-height: 1.4; text-shadow: none; white-space: normal; }
.moon-customer :is(.status-completed, .status-samples_received) { color: rgb(var(--c-green-600)) !important; background: rgb(var(--c-grey-100)) !important; border-color: rgb(var(--c-green-400)); }
.moon-customer :is(.status-accepted_provide_details, .status-awaiting_mail) { color: rgb(var(--c-amber-600-2)) !important; background: rgb(var(--c-amber-100)) !important; border-color: rgb(var(--c-amber-300-3)); }
.moon-customer :is(.status-needs_attention, .status-cancelled) { color: rgb(var(--c-rose-600)) !important; background: rgb(var(--c-rose-100)) !important; border-color: rgb(var(--c-rose-400-5)); }
.moon-customer .status-pill.status-in_progress { color: rgb(var(--c-deep)) !important; background: rgb(var(--c-surface-deep)) !important; border-color: rgb(var(--c-violet-400-5)); }

.moon-customer--order-services .order-wrapper :is(p, .card-subtitle, .choice-body, .test-detail-cell, .order-note, .order-summary-text, .order-small-print, .kit-reminder) { font-weight: 400; line-height: 1.65; }
.moon-customer--order-services .order-wrapper .order-hero .page-title { font-weight: 500; letter-spacing: -.03em !important; line-height: 1.1 !important; }
.moon-customer--order-services .order-wrapper :is(.choice-head, .order-contact h2, .order-tests h2) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; -webkit-text-stroke: 0; }
.moon-customer--order-services .order-wrapper :is(.choice-title, .section-kicker, .summary-label, .tests-table th, .order-field span, .kit-reminder strong, .test-name-cell strong, .price-amount) { font-weight: 700; letter-spacing: .025em !important; }
.moon-customer--order-services .order-wrapper .order-field input { font-weight: 400; }
.moon-customer--order-services .order-wrapper .test-qty-cell input { font-weight: 650; }
.moon-customer--order-services .order-wrapper .choice-card .choice-head { font-weight: 500; -webkit-text-stroke: 0; }
.moon-customer--order-services .order-wrapper .choice-card .choice-title { font-weight: 700; }
.moon-customer--order-services .order-wrapper .order-live-summary strong { font-weight: 750; }
.moon-customer--order-services .order-wrapper .did-you-know-box p { font-weight: 400; }

@media (max-width: 900px) {
  .customer-portal-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; }
  .moon-customer .customer-portal-nav a { flex: 0 0 auto; }
  .moon-customer .customer-portal-nav .customer-portal-nav-order { margin-left: 0; }
  .moon-customer .results-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-customer .dashboard-ticker-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .moon-customer .results-page-shell .result-order-row { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .moon-customer .result-order-row > div { min-width: 0; }
  .moon-customer .account-banner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-customer :is(.content-card, .account-shell, .orders-wrapper, .order-wrapper, .credits-wrapper, .dashboard-wrapper) { padding-inline: 0; }
  .moon-customer :is(.account-grid, .order-top-grid, .sample-hero, .dashboard-actions, .dashboard-card-grid, .instructions-buttons, .credits-grid, .results-filter-form, .order-contact-grid) { grid-template-columns: minmax(0, 1fr); }
  .moon-customer :is(.order-journey-heading, .results-page-hero, .samples-heading, .rabbit-actions, .sample-actions, .sample-complete-actions) { flex-direction: column; align-items: stretch; }
  .moon-customer .order-journey-order { align-self: flex-start; }
  .moon-customer .order-journey-step { grid-template-columns: 1.8rem minmax(0, 1fr); padding: .85rem; gap: .6rem; }
  .moon-customer .order-journey-number { width: 1.8rem; height: 1.8rem; }
  .moon-customer :is(.order-journey, .sample-entry-card, .sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card) { padding: 1rem; }
  .moon-customer .result-order-actions { flex-wrap: wrap; }
  .moon-customer .results-page-count { align-self: flex-start; }
  .moon-customer :is(.sample-actions .btn, .sample-actions .btn-secondary, .sample-complete-actions > a, .rabbit-actions .btn) { width: 100%; }
  .moon-customer .auth-visual { min-height: 180px; }
  .moon-customer .auth-logo-image { max-width: 150px; }
  .moon-customer .auth-card { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .moon-customer :is(.sparkle, .sparkle::before, .sparkle::after, .order-moon, .thanks-icon, .dashboard-ticker-track, .auth-logo-image) { animation: none; }
  .moon-customer :is(.btn, .btn-primary, .btn-secondary, .btn-ghost, .gene-choice):hover { transform: none; }
}
@media print {
  .customer-portal-nav { display: none; }
  .moon-customer :is(.content-card, .order-card, .sample-review-card, .sample-complete-card) { background: rgb(var(--c-pure-white)); color: rgb(var(--c-black)); border-color: rgb(var(--c-grey-500)); box-shadow: none; }
  .moon-customer :is(.orders-table-card, .samples-table-wrap, .sample-review-table-wrap, .customer-table-scroll) { overflow: visible; }
}

/* One gallery frame, clear hierarchy, consistent controls. */
.moon-customer > .content-card:not(.card-auth) { padding: 0; border: 0; background: transparent; box-shadow: none; }
.moon-customer :is(.dashboard-hero, .account-hero, .order-hero, .results-page-hero) { margin-bottom: 1.7rem; }
.moon-customer :is(.order-hero, .account-hero) { border: 0; border-radius: 0; padding: .4rem 0 1.5rem; background: transparent; box-shadow: none; border-bottom: 1px solid rgb(var(--c-violet-300-2)); }
.moon-customer :is(.account-hero, .account-hero .page-title, .account-hero .card-subtitle) { text-align: left; }
.moon-customer .account-hero { max-width: none; margin-inline: 0; }
.moon-customer .dashboard-icon { width: 52px; height: 52px; margin-bottom: 1rem; }
.moon-customer .dashboard-icon img { width: 52px; height: 52px; }
.moon-customer :is(.account-card, .order-card, .customer-summary-card, .dashboard-action-card, .dashboard-nextstep-card, .credits-form, .password-panel) { border: 1px solid rgb(var(--c-violet-300-2)); background: linear-gradient(140deg, rgb(var(--c-surface-soft)), rgb(var(--c-surface))); box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)), 0 5px 14px rgb(var(--c-ink) / 0.0392); }
.moon-customer :is(.account-card-title, .order-card > .card-title, .password-panel > h2) { margin: 0 0 1.2rem; padding: 0 0 .8rem; border-bottom: 1px solid rgb(var(--c-surface-deep)); font-size: 1.5rem; }
.moon-customer :is(.account-card .k, .account-card .v) { font-weight: 500; }
.moon-customer .account-card .v { text-align: right; overflow-wrap: anywhere; }
.moon-customer .account-card .quick-links { justify-content: flex-start; }
.moon-customer .account-card .mini-note { text-align: left; line-height: 1.6; }
.moon-customer .stat { padding: 1rem .75rem; background: rgb(var(--c-surface-deep)); }
.moon-customer .stat-num { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: 2rem; font-weight: 500; }
.moon-customer .stat-label { font-size: .75rem; font-weight: 650; }
.moon-customer .dashboard-order-cta { position: relative; padding: clamp(1.3rem, 3vw, 2rem); padding-right: clamp(3rem, 5vw, 4.5rem); border: 3px double rgb(var(--c-border)); background: linear-gradient(120deg,rgb(var(--c-surface)),rgb(var(--c-surface-deep))); box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)), 0 5px 16px rgb(var(--c-violet-700) / 0.0706); }
.moon-customer .dashboard-order-cta::after { content: ''; position: absolute; right: 4px; top: 4px; width: 62px; height: 62px; background: url('../dna_portal/moonlit/ornate-corner-v2.webp') center / contain no-repeat; transform: scaleX(-1); pointer-events: none; }
.moon-customer :is(.instruction-pill, .btn, .btn-primary, .order-journey-action) { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.moon-customer .instruction-pill { justify-content: flex-start; padding: 1rem; border-radius: 8px; font-weight: 600; }
.moon-customer .instruction-icon { display: grid; place-items: center; width: 36px; height: 36px; color: rgb(var(--c-violet-600-4)); background: rgb(var(--c-surface-deep)); border: 1px solid rgb(var(--c-violet-300-5)); border-radius: 50%; }
.moon-customer :is(.sample-step-icon, .rabbit-step-icon) { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto .8rem; color: rgb(var(--c-violet-600-4)); background: rgb(var(--c-surface-deep)); border: 1px solid rgb(var(--c-violet-300-5)); border-radius: 50%; }
.moon-customer :is(.sample-step-icon, .rabbit-step-icon) .lh-icon { width: 27px; height: 27px; }
.moon-customer :is(.sample-step-title, .rabbit-step-title) { font-size: clamp(1.7rem,3vw,2.25rem); }
.moon-customer :is(.sample-entry-card, .sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card) { border: 3px double rgb(var(--c-violet-400-4)); border-radius: 9px; box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)),0 6px 18px rgb(var(--c-ink) / 0.051); }
.moon-customer .sample-review-card { padding: clamp(1.2rem, 3vw, 2rem); margin-inline: auto; }
.moon-customer .customer-portal-nav { border-radius: 7px; }
.moon-customer .customer-portal-nav .customer-portal-nav-order { border-radius: 999px; padding-inline: 1rem; }
.moon-customer :is(.order-step-number,.next-number) { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .55rem; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 50%; font: 650 .9rem/1 var(--lh-sans); color: rgb(var(--c-deep)); background: rgb(var(--c-surface-deep)); }
.moon-customer :is(.results-filter-form label, .form-label) { font-size: .85rem; font-weight: 650; }
.moon-customer .results-filter-actions { align-self: end; }
.moon-customer .result-order-row { border-left: 3px solid rgb(var(--c-violet-500-4)); }
.moon-customer .result-order-actions { gap: .65rem; }
.moon-customer .results-filter-form :is(input, select) { font-weight: 400; }
.moon-customer .credits-form { padding: clamp(1rem, 2.5vw, 1.6rem); border-radius: 9px; }
.moon-customer .smart-card { border-radius: 8px; }
.moon-customer--order-thanks .next-action-card strong { font-weight: 500; }
.moon-customer--order-thanks .sample-warning-card span { font-weight: 400; line-height: 1.65; }
.moon-customer--order-thanks .order-code-line { font-weight: 500; }
.moon-customer--order-thanks .order-code { font-weight: 700; }
.moon-customer .auth-card { border-radius: 9px !important; border-color: rgb(var(--c-violet-300-2)); background: transparent; box-shadow: none; }
.moon-customer .auth-visual { border-radius: 48% 48% 8px 8px / 32% 32% 8px 8px; border: 4px double rgb(var(--c-violet-300-2)); box-shadow: 0 0 0 2px rgb(var(--c-bg-2)),0 0 0 3px rgb(var(--c-violet-300-2)); }
.moon-customer .auth-card .page-title { font-size: clamp(2rem,3.1vw,3rem) !important; line-height: 1.12 !important; letter-spacing: -.025em !important; }
.moon-customer .auth-btn { width: 100%; }
.moon-customer .auth-helper { text-align: center; margin-top: 1.2rem; font-size: .9rem; }
.moon-customer .card-auth { border: 0; background: transparent; box-shadow: none; }
.moon-customer :is(.form-errors,.form-error-summary) { padding: 1rem; margin-block: 1rem; }
.moon-customer :is(.credits-purchase-actions,.customer-return-actions) { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 640px) {
  .moon-customer .customer-portal-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; overflow: visible; }
  .moon-customer .customer-portal-nav a { min-width: 0; padding: .6rem .45rem; font-size: .75rem; text-align: center; }
  .moon-customer .customer-portal-nav .customer-portal-nav-order { padding-inline: .45rem; }
  .moon-customer :is(.account-grid,.order-top-grid) { gap: 1rem; }
  .moon-customer :is(.order-hero,.account-hero,.results-page-hero) { margin-bottom: 1.2rem; }
  .moon-customer .dashboard-order-cta { padding-right: 2.8rem; }
  .moon-customer .dashboard-order-cta::after { width: 45px; height: 45px; }
  .moon-customer :is(.account-card,.password-panel) { padding: 1.15rem; }
  .moon-customer .account-card .stats-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
  .moon-customer .stat { min-width: 0; padding: .7rem .3rem; }
  .moon-customer .stat-num { font-size: 1.6rem; }
  .moon-customer .stat-label { font-size: .66rem; }
  .moon-customer .account-card .kv { align-items: flex-start; gap: .75rem; }
  .moon-customer .account-card .k { flex: 0 0 auto; }
  .moon-customer .account-card .v { min-width: 0; }
  .moon-customer .results-filter-form { grid-template-columns: minmax(0,1fr); }
  .moon-customer .results-filter-actions > * { flex: 1; }
  .moon-customer .auth-card { border: 0; padding: 0 !important; gap: 1.4rem; overflow: visible; }
  .moon-customer .auth-visual { margin: .3rem 1rem 0; min-height: 160px; }
  .moon-customer .auth-logo-image { max-width: 170px; }
  .moon-customer .auth-form-panel { padding: .4rem; }
  .moon-customer .card-auth { padding-inline: .2rem; }
}
@media print {
  .moon-customer :is(.dashboard-order-cta::after,.sample-step-icon,.rabbit-step-icon) { display: none; }
  .moon-customer :is(.account-card,.order-card,.customer-summary-card,.credits-form,.password-panel,.sample-review-card) { background: rgb(var(--c-pure-white)); border-color: rgb(var(--c-grey-500)); box-shadow: none; }
}
