/* Shared account UI */
.auth-account-menu,
.auth-account-menu *,
.auth-modal-shell,
.auth-modal-shell * {
    box-sizing: border-box;
}

.nav-desktop .auth-nav-button,
.mobile-nav .auth-nav-button {
    font: inherit;
}

.nav-desktop .auth-nav-button {
    align-items: center;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.08);
    color: var(--green-700, #158044);
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
    max-width: 260px;
    padding: 8px 16px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-desktop .auth-nav-button > span:last-child,
.mobile-nav .auth-nav-button > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-nav-avatar {
    align-items: center;
    border: 1px solid rgba(21, 128, 68, 0.22);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.auth-nav-avatar svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 15px;
}

.nav-desktop .auth-nav-button:hover,
.nav-desktop .auth-nav-button:focus-visible {
    background: var(--green-600, #43a047);
    border-color: var(--green-600, #43a047);
    color: #fff;
    outline: none;
}

.mobile-nav .auth-nav-button {
    align-items: center;
    background: var(--green-600, #43a047);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
    margin-top: 8px;
    padding: 14px 16px;
    text-align: left;
    width: 100%;
}

.auth-account-menu[hidden] {
    display: none;
}

.auth-account-menu {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    color: #17212b;
    display: grid;
    gap: 2px;
    padding: 8px;
    position: fixed;
    width: 224px;
    z-index: 5100;
}

.auth-account-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #17212b;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    text-align: left;
    width: 100%;
}

.auth-account-menu button:hover,
.auth-account-menu button:focus-visible {
    background: #f1f5f9;
    outline: none;
}

.auth-menu-logout-copy {
    display: grid;
    gap: 2px;
}

.auth-menu-logout-copy strong {
    font-size: 14px;
}

.auth-menu-logout-copy small {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
}

.auth-menu-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 20px;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.auth-menu-icon svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.auth-menu-separator {
    background: #e2e8f0;
    height: 1px;
    margin: 5px 0;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal-shell[hidden] {
    display: none;
}

.auth-field[hidden],
.auth-linked-profile[hidden],
.auth-profile-row[hidden] {
    display: none;
}

.auth-modal-shell {
    align-items: center;
    background: rgba(12, 20, 18, 0.58);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 5000;
}

.auth-modal {
    background: #fff;
    border: 1px solid rgba(20, 35, 49, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    color: #17212b;
    max-height: min(760px, calc(100vh - 48px));
    max-width: 520px;
    overflow: auto;
    position: relative;
    width: min(100%, 520px);
}

.auth-modal.wide {
    max-width: 720px;
}

.auth-close {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #dbe4ee;
    border-radius: 50%;
    color: #334155;
    cursor: pointer;
    display: flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
}

.auth-close:hover,
.auth-close:focus-visible {
    background: #e2e8f0;
    outline: none;
}

.auth-view {
    padding: 34px;
}

.auth-view[hidden] {
    display: none;
}

.auth-eyebrow {
    color: var(--green-700, #158044);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-view h2 {
    color: #142331;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.24;
    margin-bottom: 10px;
}

.auth-copy {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.auth-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.auth-social-stack {
    display: grid;
    gap: 10px;
    margin: 0 auto 20px;
    max-width: 400px;
    min-width: 0;
    width: 100%;
}

.auth-social-button {
    align-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    color: #17212b;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    width: 100%;
}

.auth-social-button.google {
    background: #fff;
}

.auth-social-button:hover,
.auth-social-button:focus-visible {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.auth-social-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.auth-social-button.full {
    margin-top: 4px;
}

.auth-social-symbol {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: #17212b;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.auth-social-button.google .auth-social-symbol {
    border: 1px solid #e2e8f0;
    color: #4285f4;
}

.auth-social-symbol.google-mark svg {
    display: block;
    height: 18px;
    width: 18px;
}

.auth-google-fallback[hidden] {
    display: none;
}
.auth-google-fallback .auth-social-symbol[hidden] { display: none; }
.auth-google-fallback { font-weight: 600; }
.auth-google-confirmed { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 16px; }
.auth-google-confirmed[hidden] { display: none; }
.auth-google-confirmed > div { min-width: 0; display: grid; gap: 4px; }
.auth-google-confirmed strong, .auth-google-confirmed span { overflow-wrap: anywhere; }
.auth-google-confirmed #authTermsGoogleEmail { color: #5d6962; font-size: 14px; }
.auth-confirmed-mark { color: #267044; font-size: 24px; flex: 0 0 auto; }
body[data-auth-google-preview="true"] .auth-view { scrollbar-gutter: stable; }
body[data-auth-google-preview="true"] button.auth-google-ui-button { border-color: #747775; border-radius: 4px; color: #1f1f1f; font-size: 14px; font-weight: 500; }

.auth-divider {
    align-items: center;
    color: #94a3b8;
    display: grid;
    font-size: 12px;
    font-weight: 700;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    background: #e2e8f0;
    content: "";
    height: 1px;
}

.auth-provider-action {
    display: grid;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
}

.auth-provider-action[hidden] {
    display: none;
}

.auth-provider-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.auth-provider-note a,
.auth-term-detail a {
    color: #15803d;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-provider-note a:hover,
.auth-provider-note a:focus-visible,
.auth-term-detail a:hover,
.auth-term-detail a:focus-visible {
    color: #166534;
}

.auth-google-mount {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    min-width: 0;
    width: 100%;
}

.auth-google-mount.auth-google-login-mount {
    min-height: 48px;
}

.auth-google-mount > *,
.auth-google-mount iframe {
    max-width: 100% !important;
}

.auth-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.auth-field span,
.auth-field > label,
.auth-terms-label strong {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.auth-field input,
.auth-field select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #17212b;
    font-size: 15px;
    height: 46px;
    padding: 0 14px;
    width: 100%;
}

.auth-field input:focus,
.auth-field select:focus {
    background: #fff;
    border-color: var(--green-500, #66bb6a);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.14);
    outline: none;
}

.auth-field small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.auth-field small.error {
    color: #b42318;
}

.auth-field small.success {
    color: #166534;
}

.auth-field small.checking {
    color: #0f766e;
}

.auth-field input[aria-invalid="true"] {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.auth-password-control {
    align-items: center;
    display: flex;
    position: relative;
}

.auth-password-control input {
    padding-right: 48px;
}

.auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    width: 34px;
}

.auth-password-toggle svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 20px;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: #e2e8f0;
    color: #17212b;
    outline: none;
}

.auth-login-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: space-between;
    margin-top: 2px;
}

.auth-check-option {
    align-items: center;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    line-height: 1.4;
}

.auth-check-option input {
    accent-color: var(--green-600, #43a047);
    height: 16px;
    width: 16px;
}

.auth-check-option:hover {
    color: #17212b;
}

.auth-email-compose {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(132px, 0.8fr);
}

.auth-email-at {
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.auth-email-custom-domain[hidden] {
    display: none;
}

.auth-inline-control {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.auth-inline-button {
    background: #fff;
    border: 1px solid #b7c7d8;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-height: 46px;
    padding: 0 14px;
    white-space: nowrap;
}

.auth-inline-button:hover,
.auth-inline-button:focus-visible {
    background: #f8fafc;
    border-color: var(--green-500, #66bb6a);
    outline: none;
}

.auth-inline-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.auth-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.auth-primary,
.auth-secondary,
.auth-link-button {
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    min-height: 46px;
    padding: 0 16px;
}

.auth-primary {
    background: var(--green-600, #43a047);
    border: 1px solid var(--green-600, #43a047);
    color: #fff;
    flex: 1;
}

.auth-primary:hover,
.auth-primary:focus-visible {
    background: var(--green-700, #2e7d32);
    border-color: var(--green-700, #2e7d32);
    outline: none;
}

.auth-secondary {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.auth-secondary:hover,
.auth-secondary:focus-visible {
    background: #f8fafc;
    outline: none;
}

.auth-link-button {
    background: transparent;
    border: 0;
    color: var(--green-700, #158044);
    min-height: auto;
    padding: 0;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
    color: var(--green-800, #1b5e20);
    outline: none;
    text-decoration: underline;
}

.auth-switch {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 18px;
    text-align: center;
}

.auth-recovery-hint {
    font-size: 13px;
    line-height: 1.6;
    margin: 18px 0 4px;
}

.auth-recovery-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-align: left;
}

.auth-message {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 18px;
    min-height: 42px;
    padding: 10px 12px;
}

.auth-message.error {
    background: #fff5f5;
    border-color: #fecaca;
    color: #b42318;
}

.auth-message.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-message.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.auth-terms-list {
    display: grid;
    gap: 12px;
}

.auth-terms-list[hidden] {
    display: none;
}

.auth-terms-item {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    padding: 14px;
}

.auth-terms-all {
    background: #f8fafc;
    border-color: #b7c7d8;
}

.auth-terms-label {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.auth-terms-label input {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 2px;
    width: 18px;
}

.auth-terms-label p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 3px;
}

.auth-terms-item details {
    margin-left: 28px;
    margin-top: 10px;
}

.auth-terms-item summary {
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.auth-terms-item details div {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    padding-top: 8px;
}

.auth-terms-item details .auth-term-detail {
    display: grid;
    gap: 7px;
}

.auth-term-detail p {
    margin: 0;
}

.auth-term-detail strong {
    color: #334155;
}

.auth-profile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
}

.auth-account-layout {
    display: grid;
    gap: 18px;
}

.auth-account-tabs {
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.auth-account-tabs button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    min-height: 38px;
    padding: 0 12px;
}

.auth-account-tabs button:hover,
.auth-account-tabs button:focus-visible {
    background: #f1f5f9;
    color: #17212b;
    outline: none;
}

.auth-account-tabs button.active {
    background: rgba(67, 160, 71, 0.12);
    color: var(--green-700, #158044);
}

.auth-account-panel {
    display: grid;
    gap: 16px;
}

body[data-auth-brand="builook"] .auth-usage-progress {
    width: 100%;
    height: 12px;
    accent-color: var(--accent-ink, #6952b8);
}

body[data-auth-brand="builook"] .auth-payment-history {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-auth-brand="builook"] .auth-payment-history li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line, #e2e8f0);
    overflow-wrap: anywhere;
}

body[data-auth-brand="builook"] .auth-payment-history li > div {
    display: grid;
    gap: 6px;
}

body[data-auth-brand="builook"] .auth-payment-history small {
    color: var(--muted, #64748b);
}

.auth-account-form {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.auth-account-section {
    display: grid;
    gap: 12px;
}

.auth-account-section h3 {
    color: #17212b;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    margin: 0;
}

.auth-reauth-card {
    margin-bottom: 0;
}

.auth-reauth-form {
    border-top: 0;
    padding-top: 0;
}

.auth-inline-full {
    margin-bottom: 4px;
    width: max-content;
}

.auth-empty-state {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    display: grid;
    gap: 6px;
    line-height: 1.55;
    padding: 16px;
}

.auth-empty-state strong {
    color: #17212b;
    font-size: 15px;
}

.auth-empty-state p {
    font-size: 13px;
}

.auth-product-grid {
    display: grid;
    gap: 12px;
}

.auth-product-card {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 16px;
}

.auth-product-card strong {
    color: #17212b;
    font-size: 15px;
}

.auth-product-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 3px;
}

.auth-product-card .auth-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth-status-pill {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    white-space: nowrap;
}

.auth-status-pill.success {
    background: #dcfce7;
    color: #166534;
}

.auth-static-message {
    margin-bottom: 0;
}

.auth-danger-zone {
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 14px;
}

.auth-danger-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    min-height: 32px;
    padding: 0;
}

.auth-danger-toggle:hover,
.auth-danger-toggle:focus-visible {
    color: #b42318;
    outline: none;
    text-decoration: underline;
}

.auth-danger-panel {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.auth-danger-panel[hidden] {
    display: none;
}

.auth-delete-form {
    border-top: 0;
    padding-top: 0;
}

.auth-complete-panel {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
}

.auth-social-completion {
    padding: 38px 36px 34px;
}

.auth-social-provider-badge {
    align-items: center;
    color: #166534;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-social-provider-mark {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 50%;
    color: #4285f4;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.auth-social-completion h2 {
    font-size: 28px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.auth-social-completion .auth-copy {
    margin-bottom: 18px;
}

.auth-social-completion .auth-form {
    gap: 18px;
}

.auth-social-completion .auth-row {
    grid-template-columns: 1fr;
}

.auth-social-message {
    margin-bottom: 4px;
}

.auth-social-message:not(.error):not(.success):not(.warning) {
    align-items: center;
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
}

.auth-social-message:not(.error):not(.success):not(.warning)::before {
    background: #22c55e;
    border-radius: 50%;
    content: "";
    flex: 0 0 auto;
    height: 7px;
    width: 7px;
}

.auth-linked-profile {
    background: #fff;
    border: 1px solid #d7e2ed;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 0;
    margin-bottom: 2px;
    overflow: hidden;
}

.auth-linked-profile-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    padding: 16px;
}

.auth-linked-profile-header strong {
    color: #17212b;
    display: block;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 2px;
}

.auth-linked-profile-header p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.auth-linked-profile-icon {
    align-items: center;
    background: #dcfce7;
    border-radius: 50%;
    color: #158044;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.auth-linked-profile-icon svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    width: 18px;
}

.auth-linked-profile .auth-profile-row {
    padding: 13px 16px;
}

.auth-linked-profile .auth-profile-row + .auth-profile-row {
    border-top: 1px solid #eef2f7;
}

.auth-profile-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.auth-profile-row span {
    color: #64748b;
    font-size: 13px;
}

.auth-profile-row strong {
    color: #17212b;
    font-size: 14px;
    text-align: right;
}

.auth-social-phone-field {
    gap: 8px;
}

.auth-social-phone-field input {
    background: #fff;
    height: 52px;
}

.auth-social-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: 116px minmax(0, 1fr);
    margin-top: 4px;
}

.auth-social-actions .auth-secondary,
.auth-social-actions .auth-primary {
    min-height: 52px;
    width: 100%;
}

.auth-social-actions .auth-primary {
    box-shadow: 0 12px 22px rgba(46, 125, 50, 0.18);
}

.auth-danger {
    background: #fff;
    border: 1px solid #fecaca;
    color: #b42318;
}

.auth-danger:hover,
.auth-danger:focus-visible {
    background: #fff5f5;
}

.auth-modal-shell.is-logout-pending .auth-modal,
.auth-modal-shell.is-logout-pending button,
.auth-modal-shell.is-logout-pending input,
.auth-modal-shell.is-logout-pending select {
    cursor: wait;
}

@media (max-width: 768px) {
    .auth-modal-shell {
        align-items: flex-end;
        padding: 12px;
    }

    .auth-modal {
        max-height: calc(100vh - 24px);
        width: 100%;
    }

    .auth-view {
        padding: 28px 20px 22px;
    }

    .auth-social-completion {
        padding: 30px 20px 22px;
    }

    .auth-social-completion h2 {
        font-size: 25px;
    }

    .auth-close {
        right: 14px;
        top: 14px;
    }

    .auth-row {
        grid-template-columns: 1fr;
    }

    .auth-inline-control {
        grid-template-columns: 1fr;
    }

    .auth-email-compose {
        grid-template-columns: minmax(0, 1fr) auto minmax(118px, 0.9fr);
    }

    .auth-actions {
        flex-direction: column;
    }

    .auth-social-actions {
        grid-template-columns: 1fr;
    }

    .auth-social-actions .auth-primary {
        order: -1;
    }

    .nav-desktop .auth-nav-button {
        max-width: 220px;
    }

    .auth-account-menu {
        left: 12px !important;
        right: 12px;
        top: 72px !important;
        width: auto;
    }

    .auth-product-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .auth-inline-full {
        width: 100%;
    }

    .auth-secondary,
    .auth-primary {
        width: 100%;
    }
}

.auth-signup-protection {
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    border: 1px solid #d9ded3;
    border-radius: 8px;
    background: #f7f9f4;
}

.auth-signup-protection strong { font-size: 14px; }
.auth-signup-protection p { margin: 7px 0; font-size: 12px; line-height: 1.6; }
.auth-signup-protection iframe { max-width: 100%; }
.auth-signup-protection button { margin-top: 8px; min-height: 44px; }
.auth-signup-protection [role="status"]:focus-visible { outline: 3px solid var(--green-600, #37643b); outline-offset: 3px; }
.auth-primary:disabled, .auth-secondary:disabled { background: #e4e7de; color: #586052; border-color: #d1d7cc; cursor: not-allowed; }

@media (max-width: 380px) {
    .auth-modal-shell {
        padding: 8px;
    }

    .auth-view,
    .auth-social-completion {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .auth-email-compose {
        grid-template-columns: minmax(0, 1fr) auto minmax(96px, 0.9fr);
    }
}

/* Shared Builook theme: one login surface across all pages. */
body[data-auth-brand="builook"] :is(.auth-social-stack,.auth-divider)[hidden]{display:none}
body[data-auth-brand="builook"] .auth-modal-shell,body[data-auth-brand="builook"] .auth-account-menu{
  --surface:#fff;--panel:#f7f7f9;--ink:#24232b;--muted:#66616f;--line:#e5e2eb;--control-line:#86828f;
  --accent:#a99bec;--accent-hover:#9887e4;--accent-ink:#62508f;--accent-soft:#f3f0fd;--radius:28px;
  --error:#9c342b;--error-bg:#fff4f2;--error-line:#e5b6b0;--success:#216746;--success-bg:#f0f7f2;--success-line:#c4dbce;--warning:#715329;--warning-bg:#faf5e9;--warning-line:#dfcea9;
  --green-500:var(--accent);--green-600:var(--accent);--green-700:var(--accent-hover);--green-800:var(--accent-hover);
  font-family:"Pretendard Variable",Arial,sans-serif;color:var(--ink)
}
body[data-auth-brand="builook"] .auth-modal-shell{background:rgba(36,35,43,.36);padding:16px}
body[data-auth-brand="builook"] .auth-modal{display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#faf8ff 0,var(--surface) 160px);border:1px solid #ded8ef;border-radius:var(--radius);width:min(100%,480px);max-width:480px;max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 32px 96px rgba(34,27,51,.2),0 2px 8px rgba(34,27,51,.05)}
body[data-auth-brand="builook"] .auth-modal.wide{width:min(100%,680px);max-width:680px}
body[data-auth-brand="builook"] .auth-close{position:absolute;top:16px;right:16px;z-index:1;width:44px;height:44px;margin:0;border:0;border-radius:50%;color:var(--muted)}
body[data-auth-brand="builook"] .auth-view{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:32px;scrollbar-gutter:stable}
body[data-auth-brand="builook"] .auth-view h2{color:var(--ink);font-size:clamp(1.75rem,1.5rem + 1vw,2rem);font-weight:650;line-height:1.3;letter-spacing:-.035em;margin:0 0 24px;padding-right:44px;text-wrap:balance;overflow-wrap:anywhere}
body[data-auth-brand="builook"] .auth-eyebrow{color:var(--accent-ink);font-size:.875rem;letter-spacing:-.025em;font-weight:600;margin-bottom:12px;padding-right:44px}
body[data-auth-brand="builook"] .auth-view:not(#authLoginView)>.auth-eyebrow{display:none}
body[data-auth-brand="builook"] .auth-signup-step{display:flex;justify-content:space-between;gap:12px;margin:0 44px 12px 0;color:var(--accent-ink);font-size:.8125rem;font-weight:700;letter-spacing:.01em}
body[data-auth-brand="builook"] .auth-signup-step[hidden]{display:none}
body[data-auth-brand="builook"] .auth-signup-step span{color:var(--muted);font-weight:600}
body[data-auth-brand="builook"] #authSignupView .auth-row{grid-template-columns:minmax(0,1fr)}
body[data-auth-brand="builook"] #authSignupView h2,body[data-auth-brand="builook"] #authSignupCompleteView h2{margin-bottom:10px}
body[data-auth-brand="builook"] #authSignupCompleteView .auth-actions{margin-top:20px}

body[data-auth-brand="builook"] .auth-copy{color:var(--muted);font-size:.9375rem;line-height:1.6;margin:0 0 24px;overflow-wrap:anywhere}
body[data-auth-brand="builook"] :is(.auth-message,.auth-field small,.auth-terms-label p,.auth-term-detail,.auth-signup-protection p,.auth-empty-state p,.auth-provider-note,.auth-switch,.auth-terms-item summary,.auth-profile-row span,.auth-linked-profile-header p,.auth-status-pill,.auth-menu-logout-copy small){font-size:.875rem}
body[data-auth-brand="builook"] :is(.auth-field>label,.auth-field>span,.auth-terms-label strong){font-size:.9375rem;font-weight:600;line-height:1.5}
body[data-auth-brand="builook"] :is(.auth-primary,.auth-secondary,.auth-link-button,.auth-inline-button,.auth-social-button,.auth-account-tabs button){font-size:.9375rem;font-weight:600}
body[data-auth-brand="builook"] .auth-form{min-width:0;gap:20px}
body[data-auth-brand="builook"] .auth-field{min-width:0;gap:8px;align-content:start}
body[data-auth-brand="builook"] .auth-row{align-items:start;gap:16px}
body[data-auth-brand="builook"] .auth-field input,body[data-auth-brand="builook"] .auth-field select{font-family:inherit;font-size:1rem;line-height:1.5;height:auto;min-height:3.25rem;min-width:0;max-width:100%;border:1px solid var(--control-line);border-radius:14px;padding:12px 14px;background:var(--surface);color:var(--ink)}
body[data-auth-brand="builook"] .auth-password-control input{padding-right:52px}
body[data-auth-brand="builook"] .auth-password-toggle{height:44px;width:44px;right:4px;border-radius:10px}
body[data-auth-brand="builook"] .auth-modal button{font-family:inherit;white-space:normal;overflow-wrap:anywhere}
body[data-auth-brand="builook"] :is(.auth-primary,.auth-secondary,.auth-inline-button,.auth-social-button){border-radius:16px;min-height:3.25rem;box-shadow:none}
body[data-auth-brand="builook"] .auth-link-button{min-height:44px;line-height:1.5}
body[data-auth-brand="builook"] .auth-modal :is(button,input,select,a,summary):focus-visible,body[data-auth-brand="builook"] .auth-account-menu :is(button,a):focus-visible{outline:3px solid var(--accent-ink);outline-offset:3px}
body[data-auth-brand="builook"] :is(.auth-copy,.auth-field small):empty{display:none}
body[data-auth-brand="builook"] .auth-message{border-color:var(--line);border-radius:16px;background:var(--panel);color:var(--ink);padding:14px 16px;overflow-wrap:anywhere}
body[data-auth-brand="builook"] .auth-message.error{background:var(--error-bg);border-color:var(--error-line);color:var(--error)}
body[data-auth-brand="builook"] .auth-message.success{background:var(--success-bg);border-color:var(--success-line);color:var(--success)}
body[data-auth-brand="builook"] .auth-message.warning{background:var(--warning-bg);border-color:var(--warning-line);color:var(--warning)}
body[data-auth-brand="builook"] :is(.auth-account-menu,.auth-social-button,.auth-social-symbol,.auth-social-provider-mark,.auth-inline-button,.auth-secondary,.auth-linked-profile){background:var(--surface);border-color:var(--line)}
body[data-auth-brand="builook"] .auth-account-menu{border-radius:18px;max-width:calc(100vw - 24px);box-shadow:0 16px 48px rgba(34,27,51,.12)}
body[data-auth-brand="builook"] .auth-account-menu button{border-radius:12px;min-height:44px;font-weight:600}
body[data-auth-brand="builook"] :is(.auth-account-menu button,.auth-social-button,.auth-field span,.auth-field>label,.auth-terms-label strong,.auth-check-option:hover,.auth-inline-button,.auth-secondary,.auth-term-detail strong,.auth-account-section h3,.auth-empty-state strong,.auth-product-card strong,.auth-linked-profile-header strong,.auth-profile-row strong){color:var(--ink)}
body[data-auth-brand="builook"] :is(.auth-menu-logout-copy small,.auth-provider-note,.auth-field small,.auth-password-toggle,.auth-check-option,.auth-email-at,.auth-switch,.auth-terms-label p,.auth-terms-item details div,.auth-profile-row span,.auth-account-tabs button,.auth-empty-state,.auth-product-card p,.auth-danger-toggle,.auth-linked-profile-header p){color:var(--muted)}
body[data-auth-brand="builook"] :is(.auth-divider,.auth-terms-item summary,.auth-status-pill){color:var(--muted)}
body[data-auth-brand="builook"] .auth-divider{margin:24px 0;font-weight:500}
body[data-auth-brand="builook"] .auth-divider::before,body[data-auth-brand="builook"] .auth-divider::after,body[data-auth-brand="builook"] .auth-menu-separator{background:var(--line)}
body[data-auth-brand="builook"] :is(.auth-close,.auth-terms-all,.auth-profile,.auth-empty-state,.auth-status-pill,.auth-complete-panel,.auth-linked-profile-header,.auth-signup-protection){background:var(--panel);border-color:var(--line)}
body[data-auth-brand="builook"] :is(.auth-profile,.auth-empty-state,.auth-complete-panel,.auth-linked-profile,.auth-signup-protection){border-radius:18px;padding:20px}
body[data-auth-brand="builook"] .auth-terms-list{gap:0}
body[data-auth-brand="builook"] .auth-required-group{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
body[data-auth-brand="builook"] .auth-required-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
body[data-auth-brand="builook"] .auth-required-heading .auth-terms-group-title{margin:0}
body[data-auth-brand="builook"] .auth-required-all{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.875rem;font-weight:600;color:var(--accent-ink);cursor:pointer}
body[data-auth-brand="builook"] .auth-required-all input{width:18px;height:18px;accent-color:var(--accent-ink)}
body[data-auth-brand="builook"] .auth-required-summary{margin:2px 0 8px;font-size:.8125rem;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
body[data-auth-brand="builook"] .auth-required-group .auth-terms-item{padding:5px 0}
body[data-auth-brand="builook"] .auth-required-group .auth-terms-item:last-child{border-bottom:0}

body[data-auth-brand="builook"] .auth-terms-group-title{font-size:.875rem;font-weight:700;margin:18px 0 4px;color:var(--ink)}
body[data-auth-brand="builook"] .auth-terms-optional-copy,body[data-auth-brand="builook"] .auth-region-note{font-size:.8125rem;line-height:1.5;color:var(--muted);margin:0 0 4px}
body[data-auth-brand="builook"] .auth-region-group{padding:12px 0;border-bottom:1px solid var(--line)}
body[data-auth-brand="builook"] .auth-region-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.9375rem}
body[data-auth-brand="builook"] .auth-region-heading details{margin-left:auto}
body[data-auth-brand="builook"] .auth-region-heading summary{cursor:pointer;min-height:44px;align-content:center;font-size:.875rem;color:var(--muted)}
body[data-auth-brand="builook"] .auth-region-heading details[open]{flex-basis:100%}
body[data-auth-brand="builook"] .auth-region-heading .auth-term-detail{display:grid;gap:7px;padding:14px 16px;border-radius:12px;background:var(--panel);font-size:.875rem;line-height:1.6;color:var(--muted)}
body[data-auth-brand="builook"] .auth-region-group .auth-terms-item{border:0;padding:2px 0}
body[data-auth-brand="builook"] .auth-region-note{margin:4px 0 0 28px}

body[data-auth-brand="builook"] .auth-terms-item{position:relative;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0}
body[data-auth-brand="builook"] .auth-terms-item:not(.auth-terms-all){display:flex;flex-wrap:wrap;column-gap:12px}
body[data-auth-brand="builook"] .auth-terms-optional[hidden],body[data-auth-brand="builook"] .auth-terms-item[hidden]{display:none}
body[data-auth-brand="builook"] .auth-terms-item:not(.auth-terms-all) .auth-terms-label{flex:1 1 9rem;min-width:0;padding-right:0;align-items:center}
body[data-auth-brand="builook"] .auth-terms-label input{margin-top:0}
body[data-auth-brand="builook"] .auth-terms-all{background:var(--accent-soft);border:1px solid #ded8ef;border-radius:16px;padding:10px 16px;margin:16px 0 8px}
body[data-auth-brand="builook"] .auth-terms-all .auth-terms-label{align-items:center}
body[data-auth-brand="builook"] .auth-terms-item details{flex:0 0 auto;margin:0 0 0 auto;min-width:0}
body[data-auth-brand="builook"] .auth-terms-item details[open]{flex-basis:100%}
body[data-auth-brand="builook"] .auth-terms-item summary{position:static;min-height:44px;align-content:center;text-align:right;font-weight:500;white-space:nowrap}
body[data-auth-brand="builook"] .auth-terms-item details[open] .auth-term-detail{margin-top:8px;padding:14px 16px;border-radius:12px;background:var(--panel)}
body[data-auth-brand="builook"] .auth-linked-profile{padding:0;box-shadow:none}
body[data-auth-brand="builook"] .auth-google-confirmed:not([hidden]){display:flex;padding:14px 16px;margin:0 0 16px;border-radius:16px}
body[data-auth-brand="builook"] .auth-confirmed-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--success-bg);font-size:20px}
body[data-auth-brand="builook"] .auth-google-confirmed #authTermsGoogleEmail{color:var(--muted)}
body[data-auth-brand="builook"] .auth-empty-state strong{font-size:1rem;font-weight:600}
body[data-auth-brand="builook"] :is(.auth-profile-row strong,.auth-profile-row span,.auth-status-pill,.auth-empty-state p){overflow-wrap:anywhere;min-width:0}
body[data-auth-brand="builook"] .auth-profile{gap:16px;margin-bottom:0}
body[data-auth-brand="builook"] .auth-profile-row{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:8px 20px;line-height:1.6}
body[data-auth-brand="builook"] .auth-status-pill{white-space:normal;font-weight:600;text-align:center}
body[data-auth-brand="builook"] :is(.auth-account-menu button,.auth-close,.auth-password-toggle,.auth-account-tabs button):is(:hover,:focus-visible){background:var(--panel);color:var(--ink)}
body[data-auth-brand="builook"] .auth-social-button:is(:hover,:focus-visible){transform:none}
body[data-auth-brand="builook"] :is(.auth-social-button,.auth-inline-button,.auth-secondary):is(:hover,:focus-visible){background:var(--panel);border-color:var(--accent-ink)}
body[data-auth-brand="builook"] :is(.auth-social-button.google .auth-social-symbol,.auth-terms-item,.auth-account-tabs,.auth-account-form,.auth-product-card,.auth-danger-zone,.auth-linked-profile .auth-profile-row+.auth-profile-row){border-color:var(--line)}
body[data-auth-brand="builook"] :is(.auth-provider-note a,.auth-term-detail a,.auth-link-button){color:var(--accent-ink)}
body[data-auth-brand="builook"] :is(.auth-provider-note a,.auth-term-detail a,.auth-link-button):is(:hover,:focus-visible){color:var(--ink)}
body[data-auth-brand="builook"] .auth-field :is(input,select):focus{background:var(--surface);border-color:var(--accent-ink);box-shadow:none}
body[data-auth-brand="builook"] .auth-field input::placeholder{color:var(--muted);opacity:1}
body[data-auth-brand="builook"] .auth-field input[aria-invalid="true"]{border-color:var(--error);box-shadow:0 0 0 3px rgba(139,70,62,.12)}
body[data-auth-brand="builook"] .auth-field small.error{color:var(--error)}
body[data-auth-brand="builook"] .auth-field small.success,body[data-auth-brand="builook"] .auth-social-provider-badge{color:var(--success)}
body[data-auth-brand="builook"] .auth-field small.checking{color:var(--accent-ink)}
body[data-auth-brand="builook"] :is(.auth-check-option input,.auth-terms-label input){accent-color:var(--accent-ink)}
body[data-auth-brand="builook"] :is(.auth-check-option,.auth-terms-label){min-height:44px}
body[data-auth-brand="builook"] .auth-primary{background:var(--accent);border-color:var(--accent);color:var(--ink)}
body[data-auth-brand="builook"] .auth-primary:is(:hover,:focus-visible){background:var(--accent-hover);border-color:var(--accent-hover);color:var(--ink)}
body[data-auth-brand="builook"] .auth-account-tabs{gap:4px;flex-wrap:wrap;border:0;border-radius:18px;background:var(--panel);padding:4px;overflow:visible}
body[data-auth-brand="builook"] .auth-account-tabs button{flex:1 1 auto;min-width:0;min-height:44px;border:1px solid transparent;border-radius:14px;padding:10px 12px}
body[data-auth-brand="builook"] .auth-account-tabs button.active{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent);box-shadow:none}
body[data-auth-brand="builook"] :is(.auth-status-pill.success,.auth-linked-profile-icon){background:var(--success-bg);color:var(--success)}
body[data-auth-brand="builook"] .auth-social-message:not(.error):not(.success):not(.warning){background:var(--panel);border-color:var(--line);color:var(--muted)}
body[data-auth-brand="builook"] .auth-social-message:not(.error):not(.success):not(.warning)::before{display:none}
body[data-auth-brand="builook"] .auth-danger{background:var(--surface);border-color:var(--error-line);color:var(--error)}
body[data-auth-brand="builook"] .auth-danger:is(:hover,:focus-visible){background:var(--error-bg)}
body[data-auth-brand="builook"] .auth-danger-toggle{min-height:44px;font-weight:500}
body[data-auth-brand="builook"] .auth-danger-toggle:is(:hover,:focus-visible){color:var(--error)}
body[data-auth-brand="builook"] :is(.auth-primary,.auth-secondary,.auth-inline-button,.auth-social-button):disabled{background:var(--panel);border-color:var(--line);color:var(--muted);opacity:1;box-shadow:none}
body[data-auth-brand="builook"] #authPhoneTiming{font-size:.875rem;color:var(--muted);line-height:1.6;margin-bottom:0}
body[data-auth-brand="builook"] #authPhoneCode{font-variant-numeric:tabular-nums;letter-spacing:.18em}
body[data-auth-brand="builook"] #authPhoneRequestForm + #authPhoneVerifyForm{margin-top:24px}
body[data-auth-brand="builook"] #authPhoneVerifyForm + .auth-actions{flex-direction:row;gap:12px;margin-top:24px}
body[data-auth-brand="builook"] #authPhoneVerifyForm + .auth-actions>button{flex:1 1 0;min-width:0;width:auto;margin-top:0}
body[data-auth-brand="builook"] #authLoginView .auth-actions,body[data-auth-brand="builook"] #authLoginSubmit{width:100%}
body[data-auth-brand="builook"] .auth-actions{margin-top:8px;gap:12px;flex-wrap:wrap}
body[data-auth-brand="builook"] .auth-actions>button{flex:1 1 0;min-width:0}
body[data-auth-brand="builook"] .auth-inline-full{max-width:100%}
body[data-auth-brand="builook"] .auth-form>.auth-inline-full{width:100%;margin:8px 0 0}
body[data-auth-brand="builook"] .auth-signup-protection{display:grid;justify-items:center;gap:8px;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;margin-top:4px}
body[data-auth-brand="builook"] .auth-signup-protection>strong{color:var(--muted);font-size:.8125rem;font-weight:500}
body[data-auth-brand="builook"] .auth-protection-widget{width:100%;min-width:0;display:flex;justify-content:safe center;overflow-x:auto}
body[data-auth-brand="builook"] .auth-protection-widget iframe{max-width:none}
body[data-auth-brand="builook"] .auth-signup-protection p{margin:0;text-align:center;font-size:.8125rem}
body[data-auth-brand="builook"] .auth-signup-protection p:empty{display:none}
body[data-auth-brand="builook"] .auth-signup-protection button{margin-top:0;width:100%}
body[data-auth-brand="builook"] :is(.auth-field,.auth-profile-row,.auth-signup-protection)[hidden]{display:none}
body[data-auth-brand="builook"] .auth-recovery-link{justify-content:center;width:100%;margin-top:12px}
body[data-auth-brand="builook"] .auth-switch{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin:12px 0 0;padding-top:16px;border-top:1px solid var(--line)}
body[data-auth-brand="builook"] .auth-login-options{gap:12px}
body[data-auth-brand="builook"] .auth-check-option{font-size:.875rem}
body[data-auth-brand="builook"] .auth-account-layout,body[data-auth-brand="builook"] .auth-account-panel{gap:24px}
body[data-auth-brand="builook"] .auth-account-section{gap:20px;padding-top:24px;border-top:1px solid var(--line)}
body[data-auth-brand="builook"] .auth-account-section .auth-account-form{border:0;padding-top:0}
body[data-auth-brand="builook"] .auth-account-section h3,body[data-auth-brand="builook"] .auth-product-card strong{font-size:1.125rem;font-weight:650}
body[data-auth-brand="builook"] .auth-product-card{grid-template-columns:minmax(0,1fr) auto;padding:24px;border-radius:18px;gap:20px}
body[data-auth-brand="builook"] .auth-product-card>button{grid-column:1/-1}
body[data-auth-brand="builook"] .auth-product-card p{font-size:.875rem}
@media(prefers-reduced-motion:reduce){
  body[data-auth-brand="builook"] :is(.auth-modal-shell,.auth-account-menu) *{scroll-behavior:auto;transition:none;animation:none}
}
@media(max-width:800px){
  body[data-auth-brand="builook"] .auth-modal-shell{padding:12px}
  body[data-auth-brand="builook"] .auth-modal{max-height:calc(100dvh - 24px)}
  body[data-auth-brand="builook"] .auth-view{padding:28px 24px}
  body[data-auth-brand="builook"] .auth-product-card{grid-template-columns:1fr}
}
@media(max-width:600px){
  body[data-auth-brand="builook"] .auth-profile-row{grid-template-columns:minmax(0,1fr);gap:4px}
  body[data-auth-brand="builook"] .auth-profile-row strong{text-align:left}
}
@media(max-width:380px){
  body[data-auth-brand="builook"] .auth-modal-shell{padding:8px}
  body[data-auth-brand="builook"] .auth-view{padding:28px 18px 24px}
  body[data-auth-brand="builook"] .auth-product-card{padding:18px}
  body[data-auth-brand="builook"] #authPhoneVerifyForm + .auth-actions{flex-direction:column}
}
