/* Shared marketplace account access; existing branded palettes are inherited. */
.marketplace-entry {
    --auth-ink: #071437;
    --auth-muted: #526378;
    --auth-blue: #1469cc;
    --auth-canvas: #f5f7fb;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.marketplace-entry button, .marketplace-entry input, .marketplace-entry select, .marketplace-entry textarea { font-family: inherit; }
.marketplace-entry :focus-visible { outline: 3px solid #1469cc; outline-offset: 3px; }
.marketplace-skip-link { position: fixed; z-index: 1100; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 12px 18px; color: #fff; border-radius: 10px; background: #123458; transform: translateY(-180%); }
.marketplace-skip-link:focus { transform: translateY(0); }
.entry-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.auth-layout { display: block; }
.auth-story { display: none; }
.auth-panel { min-width: 0; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: var(--auth-canvas); }
.auth-panel-inner { width: min(460px, 100%); min-width: 0; padding: 28px 24px; border: 1px solid #dfe6ef; border-radius: 20px; background: #fff; box-shadow: 0 16px 44px rgba(7, 20, 55, .08); }
.mobile-brand { display: inline-flex; max-width: 100%; margin-bottom: 28px; }
.auth-heading h1 { margin: 0; color: var(--auth-ink); font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.auth-heading p { font-size: 16px; line-height: 1.6; }
.auth-eyebrow, .story-kicker { font-size: 12px; }
.auth-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-methods a { min-height: 44px; padding: 8px; color: #526378; font-size: 14px; }
.auth-alert { color: #a52d3f; font-size: 14px; overflow-wrap: anywhere; }
.auth-field > span { font-size: 14px; }
.auth-field > div { min-height: 54px; padding: 0 12px; gap: 8px; }
.auth-field input { height: 52px; font-size: 16px; }
.auth-field input::placeholder { color: #64748b; }
.password-toggle { width: 44px; height: 44px; flex-basis: 44px; }
.phone-field b { font-size: 14px; }
.otp-note { color: #526378; font-size: 14px; flex-wrap: wrap; }
.auth-options { flex-wrap: wrap; gap: 4px 16px; }
.auth-options > a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
.remember-option { min-height: 44px; color: #526378; font-size: 14px; }
.remember-option input:focus-visible + span { outline: 3px solid #1469cc; outline-offset: 3px; }
.remember-option span { flex: 0 0 20px; width: 20px; height: 20px; }
.primary-auth-button { padding: 12px 16px; font-size: 16px; background: linear-gradient(135deg, #1469cc, #123458); }
.auth-divider { color: #526378; font-size: 12px; }
.google-auth-button { padding: 12px; font-size: 16px; }
.auth-register { color: #526378; font-size: 14px; line-height: 1.6; }
.auth-register a { display: inline-flex; min-height: 44px; max-width: 100%; align-items: center; overflow-wrap: anywhere; }
.auth-legal { color: #526378; font-size: 14px; line-height: 1.6; }
.auth-legal a, .auth-consent a { text-decoration: underline; text-underline-offset: 3px; }
.auth-consent { display: flex; min-height: 44px; gap: 10px; align-items: flex-start; color: #526378; font-size: 14px; }
.auth-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #1469cc; }
.auth-loading p { max-width: calc(100% - 40px); text-align: center; font-size: 16px; }
.auth-toast { font-size: 14px; }
.auth-code-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-code-group legend { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.auth-code-group > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.auth-code-digit input { width: 100%; min-width: 0; height: 56px; color: #071437; border: 1px solid #bcc9d9; border-radius: 12px; background: #fff; text-align: center; font-size: 24px; }
.story-content h2 { margin: 0; font-size: clamp(36px, 4vw, 60px); line-height: 1.15; letter-spacing: -.04em; }
.story-content h2 em { color: #9dd4ff; font-style: normal; }
.story-content > p, .story-footer { color: #d8e6f3; font-size: 14px; }
.story-experiences span { color: #fff; font-size: 14px; }

.shop-gateway { display: block; }
.shop-story { display: none; }
.shop-auth, .shop-auth-inner { min-width: 0; }
.shop-auth { padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); }
.shop-auth-inner { width: min(460px, 100%); }
.shop-mobile-brand { display: block; }
.shop-auth-heading h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
.shop-auth-heading > span { color: #526378; font-size: 14px; }
.shop-auth-heading > p { font-size: 12px; }
.shop-auth-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 12px; }
.shop-auth-tabs a { min-height: 44px; padding: 8px; color: #526378; font-size: 14px; text-align: center; }
.shop-alert { font-size: 14px; border-radius: 12px; overflow-wrap: anywhere; }
.shop-field > span { gap: 10px; flex-wrap: wrap; color: #42566f; font-size: 14px; }
.shop-field input { min-width: 0; height: 54px; border-radius: 12px; font-size: 16px; }
.shop-field input::placeholder { color: #64748b; }
.shop-password-toggle { height: 54px; color: #526378; }
.shop-password-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-terms { min-height: 44px; }
.shop-terms small { color: #526378; font-size: 14px; }
.shop-submit { padding: 12px 16px; border-radius: 12px; font-size: 16px; letter-spacing: 0; }
.shop-form-switch, .shop-auth-footer, .shop-powered { color: #526378; font-size: 14px; }
.shop-auth-footer a, .shop-form-switch a { display: inline-flex; min-height: 44px; align-items: center; }
.shop-story-copy > p:not(.shop-kicker), .shop-feature-list small, .shop-trust span { color: #ece0ef; font-size: 14px; }

.wl-access-panel, .wl-access-inner { min-width: 0; }
.wl-access-panel { padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.wl-access-heading h2, .wl-centered-brand strong { overflow-wrap: anywhere; }
.wl-centered-brand > div { min-width: 0; }
.wl-centered-brand span { color: #526378; font-size: 12px; letter-spacing: .04em; }
.wl-access-heading > span { color: var(--wl-primary-dark); font-size: 12px; }
.wl-access-heading p { color: #526378; font-size: 16px; }
.wl-auth-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wl-auth-tabs a > span { min-width: 0; overflow-wrap: anywhere; }
.wl-auth-tabs a strong { font-size: 14px; }
.wl-auth-tabs a small { color: #526378; font-size: 12px; }
.wl-alert, .wl-alert-success strong { font-size: 14px; overflow-wrap: anywhere; }
.wl-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wl-field { min-width: 0; }
.wl-field > span { font-size: 14px; }
.wl-field > div { min-height: 54px; gap: 8px; padding: 0 10px; }
.wl-field input, .wl-field select, .wl-field textarea { height: 52px; font-size: 16px; }
.wl-field textarea { height: auto; min-height: 96px; }
.wl-field input::placeholder { color: #64748b; }
.wl-password-toggle { width: 44px; height: 44px; flex-basis: 44px; }
.wl-form-options { flex-wrap: wrap; gap: 4px 16px; }
.wl-form-options label, .wl-form-options a { display: inline-flex; min-height: 44px; align-items: center; color: var(--wl-primary-dark); font-size: 14px; }
.wl-form-options input:focus-visible + span, .wl-consent input:focus-visible + span { outline: 3px solid #1469cc; outline-offset: 3px; }
.wl-upload:focus-within { outline: 3px solid #1469cc; outline-offset: 3px; }
.wl-consent { min-height: 44px; }
.wl-consent small { color: #526378; font-size: 14px; }
.wl-submit, .wl-step-next, .wl-step-back { padding: 12px 16px; font-size: 16px; }
.wl-submit, .wl-step-next { background: var(--wl-primary-dark); }
.wl-step-heading p { color: #526378; font-size: 14px; }
.wl-step-heading > span, .wl-progress-meta { font-size: 14px; }
.wl-step-heading > span { color: var(--wl-primary-dark); }
.wl-progress-meta { flex-wrap: wrap; gap: 4px 12px; }
.wl-progress-meta strong { font-size: 14px; }
.wl-progress-meta span { max-width: 100%; color: #526378; overflow: visible; white-space: normal; }
.wl-upload strong, .wl-upload small, .wl-upload em { font-size: 14px; }
.wl-upload small { max-width: 100%; color: #526378; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.wl-upload em { color: var(--wl-primary-dark); }
.wl-upload { flex-wrap: wrap; }
.wl-declaration-copy, .wl-declaration-heading strong, .wl-declaration-heading small { font-size: 14px; }
.wl-declaration-heading small, .wl-powered strong { color: #526378; }
.wl-access-footer, .wl-powered { color: #526378; font-size: 14px; }
.wl-access-footer { flex-wrap: wrap; gap: 4px 16px; }
.wl-access-footer a, .wl-recovery-actions a { display: inline-flex; min-height: 44px; align-items: center; color: var(--wl-primary-dark); font-size: 14px; }
.wl-loading p { max-width: calc(100% - 40px); text-align: center; font-size: 16px; }
.wl-recovery-shell .wl-brand-panel { display: none; }

@media (min-width: 981px) {
    .auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .auth-story { display: flex; min-width: 0; padding: 48px clamp(28px, 4vw, 64px); }
    .auth-panel { padding: 40px clamp(24px, 3vw, 48px); }
    .mobile-brand { display: none; }
}
@media (min-width: 1081px) {
    .shop-gateway { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .shop-story { display: flex; min-width: 0; }
    .shop-auth { padding: 40px clamp(28px, 4vw, 64px); }
    .shop-mobile-brand { display: none; }
}
@media (max-width: 650px) {
    .wl-field-grid, .shop-password-row { grid-template-columns: minmax(0, 1fr); }
    .wl-field-wide, .wl-upload { grid-column: auto; }
    .wl-auth-tabs { grid-template-columns: minmax(0, 1fr); }
    .wl-auth-tabs a small { display: block; }
    .wl-phone-fields { grid-template-columns: 92px minmax(0, 1fr); }
    .wl-step-actions { flex-wrap: wrap; }
}
@media (max-width: 390px) {
    .auth-panel { padding-right: 14px; padding-left: 14px; }
    .auth-panel-inner { padding: 24px 18px; }
    .auth-code-group > div { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .marketplace-entry *, .marketplace-entry *::before, .marketplace-entry *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
