.auth-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; background: var(--bs-body-bg, #f5f7f4); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; text-decoration: none; color: var(--bs-body-color); font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; }
.auth-brand .brand-lockup { width: min(290px, calc(100vw - 64px)); }
.auth-brand .brand-lockup img { width: 100%; height: auto; }
.auth-card { width: 100%; max-width: 460px; padding: 36px; border: 1px solid var(--bs-border-color); border-radius: 20px; background: var(--bs-body-bg); box-shadow: 0 12px 48px #00000008; }
.auth-card h1 { font-family: Manrope, sans-serif; font-size: clamp(24px, 5vw, 30px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.auth-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--bs-secondary-color); }
.auth-intro { color: var(--bs-secondary-color); margin: 14px 0 28px; }
.auth-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--bs-tertiary-bg); }
.auth-options a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 8px; border-radius: 8px; color: var(--bs-secondary-color); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.auth-options a:hover { color: var(--bs-body-color); background: var(--bs-body-bg); }
.auth-options a[aria-current="page"] { color: var(--bs-body-color); background: var(--bs-body-bg); box-shadow: 0 1px 4px #00000012; }
.auth-options a:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--bs-secondary-color); font-size: 12px; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--bs-border-color); }
.auth-password-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.auth-password-label .form-label { margin: 0; padding-block: 8px; }
.auth-password-label a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.auth-card .form-control { min-height: 46px; }
.activation-contact-group .activation-country { flex: 0 0 112px; width: 112px; min-height: 46px; padding-right: 28px; text-overflow: ellipsis; }
.activation-contact-group .form-control { min-width: 0; }
.auth-card .btn { min-height: 44px; }
.auth-card fieldset { min-width: 0; }
.auth-switch { margin: 28px 0 0; text-align: center; font-size: 14px; }
.auth-account { padding: 18px; background: var(--bs-tertiary-bg); border-radius: 12px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.auth-account span { color: var(--bs-secondary-color); font-size: 13px; }
.account-management { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.account-management > * { min-width: 0; }
.account-management h2 { font-size: 1.25rem; }
.account-invitations > section { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
@media (max-width: 800px) { .account-management { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 480px) { .auth-page { padding: 28px 16px; justify-content: flex-start; } .auth-card { padding: 24px; } }

.two-factor-settings { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--bs-border-color, #dee2e6); }
.two-factor-settings h2 { font-size: 1.2rem; }
.two-factor-settings h3 { font-size: 1.1rem; }
.mfa-qr { display: block; width: 240px; max-width: 100%; height: auto; background: white; border-radius: 8px; }
.mfa-secret { display: block; overflow-wrap: anywhere; user-select: all; }
.mfa-recovery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; padding: 1rem; background: #f4f6f8; border-radius: 8px; }

.two-factor-dialog { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; color: var(--bs-body-color, #212529); background: var(--bs-body-bg, #fff); box-shadow: 0 24px 80px #0004; }
.two-factor-dialog::backdrop { background: rgb(17 24 39 / 55%); backdrop-filter: blur(3px); }
.two-factor-dialog-code { font-size: 1.4rem; letter-spacing: .15em; }

.customer-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.customer-report-grid h3 { font-size: 1.2rem; overflow-wrap: anywhere; }

/* Customer report library: compact rows with one clear link per report. */
.customer-library {
  container: customer-library / inline-size;
  --library-accent: #a70020;
  --library-surface: #f7f8fa;
  --library-period: #465469;
  --library-period-soft: #edf1f5;
  max-width: 1100px;
  margin-inline: auto;
}
/* Neutral canvas gives the report panel definition without decorative color. */
.live-admin .main-content:has(.customer-library) {
  background: #eeefed;
}
.customer-library .customer-library-panel { box-shadow: 0 2px 8px #15233608; }
html[data-theme="dark"] .live-admin .main-content:has(.customer-library) {
  background: #15191f;
}
.customer-library .customer-library-panel { padding: 0; overflow: hidden; border-radius: 10px; }
.customer-library-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px 0; background: var(--library-surface); }
.customer-library-toolbar > div { flex: 0 1 180px; min-width: 0; }
.customer-library .customer-library-toolbar .form-control,
.customer-library .customer-library-toolbar .form-select { min-height: 44px; padding-block: 10px; font-size: 13px; border-radius: 6px; }
.customer-library-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 20px; background: var(--library-surface); }
.customer-library-results p { color: var(--bs-secondary-color); font-size: 12px; margin: 0; }
.customer-library .customer-library-results .btn { min-height: 44px; padding: 10px 0; font-size: 12px; }
.customer-library-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 64px; gap: 24px; align-items: center; min-height: 70px; padding: 13px 20px; border-top: 1px solid var(--bs-border-color); color: var(--bs-body-color); text-decoration: none; }
.customer-library-row:hover { color: var(--bs-body-color); background: var(--library-surface); box-shadow: inset 3px 0 var(--brand); }
.customer-library-title { min-width: 0; }
.customer-library-title h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 3px; overflow-wrap: anywhere; }
.customer-library-updated { display: inline-block; vertical-align: middle; margin-left: 5px; padding: 2px 7px; border-radius: 999px; background: #edf3f0; color: #3c6451; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .01em; white-space: nowrap; }
.customer-library-title p { font-size: 12px; line-height: 1.4; color: var(--bs-secondary-color); margin: 0; overflow-wrap: anywhere; }
.customer-library-period { display: grid; gap: 3px; justify-items: start; }
.customer-library-period strong { font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 8px; border-radius: 5px; color: var(--library-period); background: var(--library-period-soft); }
.customer-library-period span { font-size: 11px; color: var(--bs-secondary-color); }
.customer-library-open { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; font-size: 12px; font-weight: 600; color: var(--library-accent); white-space: nowrap; }
.customer-library-row:hover .customer-library-open { color: var(--library-accent); text-decoration: underline; text-underline-offset: 4px; }
.customer-library-empty { padding: 32px 20px; text-align: center; max-width: 490px; margin: auto; }
.customer-library-empty > i { display: block; font-size: 26px; color: var(--bs-secondary-color); margin-bottom: 12px; }
.customer-library-empty h3 { font-size: 17px; }
.customer-library-empty p { font-size: 13px; color: var(--bs-secondary-color); }
.customer-library .customer-library-row:focus-visible { outline: 2px solid var(--library-accent); outline-offset: -3px; background: var(--library-surface); }
@container customer-library (max-width: 600px) {
  .customer-library-toolbar { padding: 14px 16px 0; }
  .customer-library-toolbar > div { flex: 1 1 140px; }
  .customer-library-results { padding-inline: 16px; }
  .customer-library-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 12px 16px; }
  .customer-library-period { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
  .customer-library-period strong, .customer-library-period span { font-size: 11px; }
  .customer-library-open { grid-column: 2; grid-row: 1 / 3; }
}
@container customer-library (max-width: 480px) {
  .customer-library-toolbar > div { flex-basis: 100%; }
}

html[data-theme="dark"] .customer-library {
  --library-accent: #ff9aad;
  --library-surface: #20252b;
  --library-period: #c0ccdc;
  --library-period-soft: #2a323d;
}
html[data-theme="dark"] .customer-library-updated,
.customer-library-feature .customer-library-updated { background: #2b3b34; color: #b5d4c2; }

/* An editorial masthead gives the library its own identity without enlarging rows. */
.customer-library-masthead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; padding: 28px 30px; margin-bottom: 28px; border-radius: 14px; background: #1b2429; color: #fff; border-top: 3px solid #db1735; }
.customer-library-intro { min-width: 0; }
.customer-library-masthead-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 26px; }
.customer-library-brandline { display: inline-flex; align-items: center; gap: 9px; color: #bac5c9; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.customer-library-brandline img { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.customer-library-refresh { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: #c3ccd0; font-size: 11px; }
.customer-library-refresh:hover { color: #fff; }
.customer-library-refresh:disabled { opacity: .55; }
.customer-library-masthead h1 { color: #fff; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; margin: 0 0 10px; overflow-wrap: anywhere; }
.customer-library-intro > p { font-size: 14px; color: #b4c0c5; margin: 0; }
.customer-library-scope { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; }
.customer-library-scope > span { display: inline-flex; align-items: baseline; gap: 8px; color: #b4c0c5; font-size: 11px; }
.customer-library-scope strong { font-size: 20px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.customer-library-feature { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 22px; color: #fff; text-decoration: none; border-left: 1px solid #ffffff24; padding-left: 30px; }
.customer-library-feature:hover { color: #fff; }
.customer-library-cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3 / 4; padding: 10px; border-radius: 3px 8px 8px 3px; background: #c81732; box-shadow: 5px 5px 0 #ffffff0c; overflow: hidden; }
.customer-library-cover > span { font-size: 12px; font-weight: 800; letter-spacing: -.06em; }
.customer-library-cover small { font-size: 9px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; }
.customer-library-cover-lines { display: flex; gap: 6px; transform: skewY(-22deg); }
.customer-library-cover-lines i { display: block; width: 2px; height: 25px; background: #ffffff66; }
.customer-library-cover-lines i:nth-child(even) { height: 36px; }
.customer-library-feature-copy { min-width: 0; }
.customer-library-feature-label { display: block; color: #ffc2cd; font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.customer-library-feature h2 { color: #fff; font-size: 21px; font-weight: 600; margin: 10px 0 7px; overflow-wrap: anywhere; }
.customer-library-feature p { color: #e3ebee; font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0 0 18px; overflow-wrap: anywhere; }
.customer-library-feature-open { display: inline-flex; gap: 14px; align-items: center; color: #fff; font-size: 12px; font-weight: 600; }
.customer-library-feature:hover .customer-library-feature-open { text-decoration: underline; text-underline-offset: 4px; }
.customer-library-masthead-note { align-self: center; justify-self: center; color: #b4c0c5; display: flex; gap: 20px; align-items: center; }
.customer-library-masthead-note > i { font-size: 42px; color: #f47c8d; }
.customer-library-masthead-note p { margin: 0; line-height: 1.6; }
.customer-library-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.customer-library-section-heading h2 { font-size: 16px; font-weight: 700; margin: 0; }
.customer-library-section-heading > span { font-size: 11px; color: var(--bs-secondary-color); }
.customer-library-feature:focus-visible, .customer-library-refresh:focus-visible { outline: 2px solid #ff9aad; outline-offset: 5px; border-radius: 4px; }
/* The desktop sidebar also reduces the library's usable width on tablets. */
@container customer-library (max-width: 900px) {
  .customer-library-masthead { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .customer-library-masthead-top { margin-bottom: 18px; }
  .customer-library-feature { border-left: 0; border-top: 1px solid #ffffff24; padding: 20px 0 0; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; }
  .customer-library-cover-lines { display: none; }
  .customer-library-feature h2 { margin: 6px 0; font-size: 18px; }
  .customer-library-feature p { margin-bottom: 10px; }
  .customer-library-scope { margin-top: 18px; }
}
@media (max-width: 600px) {
  .customer-library-masthead { padding: 20px; }
  .customer-library-section-heading > span { display: none; }
  .customer-library-masthead-note { justify-self: start; }
}

.registration-signup-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 16px; }
