/* ============================================================
 * 登录 / 注册弹窗样式（从 home.html 内联样式抽取到共享文件）
 * 供 home.html 与 content-viewer.html 等需要页内登录的页面复用
 * 首页仅在登录或停留邀请首次打开时加载。
 * ============================================================ */
.login-slogan-copy h2,
.login-form-pane h3,
.auth-welcome-visual h3,
.auth-welcome-headline {
    font-family: "LXGWNeoZhiSongScreenHome", system-ui, sans-serif !important;
}

        .login-modal {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            z-index: 13000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-lg);
            box-sizing: border-box;
            overflow: hidden;
        }

        .login-modal[aria-hidden="true"] {
            display: none;
        }

        .login-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(12, 17, 29, 0.42);
        }

        .login-panel {
            position: relative;
            z-index: 1;
            box-sizing: border-box;
            box-shadow: var(--shadow-3);
        }

        .login-panel {
            width: min(820px, calc(100vw - 40px));
            max-width: 100%;
            min-height: 500px;
            display: grid;
            grid-template-columns: 286px minmax(0, 1fr);
            overflow: hidden;
            border-radius: var(--radius-container);
        }

        .login-slogan-pane {
            min-height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: var(--space-md);
            padding: 30px 26px;
            background:
                radial-gradient(circle at 20% 12%, rgba(243, 112, 88, 0.14), transparent 26%),
                radial-gradient(circle at 82% 82%, rgba(255, 226, 220, 0.74), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
            color: var(--text1);
            border-right: 1px solid var(--border);
        }

        .login-brand-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .login-brand-icon {
            width: 42px;
            height: 42px;
            display: block;
            object-fit: contain;
            border-radius: 8px;
        }

        .login-brand-text-logo {
            width: 108px;
            height: auto;
            display: block;
        }

        .login-slogan-copy span {
            display: block;
            color: var(--accent);
            font-size: var(--text-caption);
            font-weight: 700;
        }

        .login-slogan-copy h2 {
            margin: 6px 0 0;
            font-family: var(--font-home-display);
            color: var(--text1);
            font-size: var(--text-subheading);
            line-height: 1.35;
            font-weight: 800;
            letter-spacing: 0;
        }

        .login-slogan-copy p {
            display: none;
            max-width: 260px;
            color: var(--text2);
            font-size: var(--text-body-sm);
            line-height: 1.7;
        }

        .login-studio-preview {
            position: relative;
            gap: 10px;
            display: grid;
            place-items: center;
        }

        .login-illustration {
            width: min(218px, 100%);
            height: auto;
            display: block;
            filter: drop-shadow(0 14px 26px rgba(23, 29, 43, 0.06));
        }

        .login-illustration-caption {
            margin: 0;
            color: var(--text3);
            font-size: var(--text-caption);
            line-height: 1.55;
            text-align: center;
        }

        .login-form-pane {
            position: relative;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 40px 44px 36px;
            box-sizing: border-box;
        }

        .login-modal-close {
            position: absolute;
            top: 24px;
            right: 24px;
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-visible);
            border-radius: var(--radius-control);
            background: var(--surface1);
            color: var(--text2);
            cursor: pointer;
            transition: color var(--duration-fast) var(--ease-fast), border-color var(--duration-fast) var(--ease-fast), background var(--duration-fast) var(--ease-fast), transform var(--duration-fast) var(--ease-fast);
        }

        .login-modal-close:hover {
            border-color: rgba(243, 112, 88, 0.36);
            background: var(--accent-subtle);
            color: var(--accent);
            transform: translateY(-1px);
        }

        .login-kicker {
            margin: 0 0 8px;
            color: var(--accent);
            font-size: var(--text-caption);
            font-weight: 800;
        }

        .login-form-pane h3 {
            margin: 0;
            font-family: var(--font-home-display);
            color: var(--text1);
            font-size: var(--text-heading);
            line-height: 1.25;
            font-weight: 800;
            letter-spacing: 0;
        }

        .login-subtitle {
            margin: 10px 0 0;
            color: var(--text2);
            font-size: var(--text-body);
            line-height: 1.7;
        }

        .phone-login-form {
            margin-top: var(--space-lg);
            min-width: 0;
            display: grid;
            gap: 14px;
        }

        .login-field {
            min-width: 0;
            display: grid;
            gap: 10px;
        }

        .login-field > span {
            color: var(--text1);
            font-size: var(--text-label);
            font-weight: 700;
        }

        .login-input-shell {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            box-sizing: border-box;
            transition: border-color var(--duration-fast) var(--ease-fast), box-shadow var(--duration-fast) var(--ease-fast), background var(--duration-fast) var(--ease-fast);
        }

        .login-input-shell:focus-within {
            border-color: var(--accent);
            background: var(--surface1);
            box-shadow: 0 0 0 3px var(--accent-subtle);
        }

        .login-input-shell em {
            color: var(--text1);
            font-style: normal;
            font-weight: 800;
        }

        .login-input-shell input {
            flex: 1;
            min-width: 0;
            -webkit-appearance: none;
            appearance: none;
            border: 0 !important;
            outline: 0 !important;
            background: transparent;
            box-shadow: none !important;
            color: var(--text1);
            font-size: var(--text-body);
            font-weight: 600;
        }

        .login-input-shell input:focus,
        .login-input-shell input:focus-visible,
        .login-input-shell input:active {
            border: 0 !important;
            outline: 0 !important;
            box-shadow: none !important;
        }

        .login-input-shell input::placeholder {
            color: #b7c0cf;
        }

        .login-code-shell {
            padding-right: 6px;
        }

        .login-captcha-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 124px;
            gap: 10px;
            align-items: stretch;
            min-width: 0;
        }

        .login-captcha-shell {
            min-width: 0;
        }

        .login-captcha-success-icon {
            display: none;
            flex: 0 0 auto;
            color: var(--success);
            font-size: 20px;
        }

        .login-captcha-shell.is-verified {
            border-color: color-mix(in srgb, var(--success) 42%, var(--border-visible));
            background: var(--success-bg);
        }

        .login-captcha-shell.is-verified .login-captcha-success-icon {
            display: inline-flex;
        }

        .login-captcha-shell.is-verified input {
            cursor: default;
        }

        #login-captcha-field.is-verified .login-captcha-box {
            cursor: default;
            opacity: 0.58;
        }

        #login-captcha-field.is-verified .login-captcha-box::after {
            content: "已通过";
            opacity: 1;
            color: var(--success);
        }

        .login-captcha-box {
            position: relative;
            width: 124px;
            max-width: 100%;
            height: 46px;
            padding: 0;
            border: 1px solid var(--border-visible);
            border-radius: 12px;
            background: var(--surface2);
            overflow: hidden;
            cursor: pointer;
        }

        .login-captcha-box img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .login-captcha-box:disabled {
            cursor: wait;
            opacity: 0.7;
        }

        .login-captcha-box::after {
            content: "刷新";
            position: absolute;
            right: 4px;
            bottom: 4px;
            padding: 2px 5px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.86);
            color: var(--text2);
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            opacity: 0;
            transition: opacity var(--duration-fast) var(--ease-fast);
        }

        .login-captcha-box:hover::after,
        .login-captcha-box:focus-visible::after {
            opacity: 1;
        }

        #login-code-button {
            flex: 0 0 auto;
            height: 32px;
            padding: 0 12px;
            border: 1px solid transparent;
            border-radius: 10px;
            background: var(--accent-subtle);
            color: var(--accent);
            font-size: var(--text-caption);
            font-weight: 700;
            cursor: pointer;
            line-height: 1;
            transition: color var(--duration-fast) var(--ease-fast), background var(--duration-fast) var(--ease-fast), opacity var(--duration-fast) var(--ease-fast);
        }

        #login-code-button:hover:not(:disabled) {
            background: #ffe2dc;
            color: var(--accent-hover);
        }

        #login-code-button:disabled {
            cursor: not-allowed;
            color: var(--text3);
            background: var(--surface2);
            opacity: 1;
        }

        .login-agreement {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            color: var(--text2);
            font-size: var(--text-caption);
            line-height: 1.6;
        }

        .login-agreement input {
            appearance: none;
            width: 16px;
            height: 16px;
            margin-top: 2px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 16px;
            border: 1px solid var(--border-visible);
            border-radius: var(--radius-element);
            background: var(--surface1);
            cursor: pointer;
            transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
        }

        .login-agreement input::before {
            content: "";
            width: 8px;
            height: 8px;
            clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 18%, 86% 4%, 36% 66%);
            background: #fefefe;
            transform: scale(0);
            transition: transform 140ms ease;
        }

        .login-agreement input:checked {
            border-color: var(--accent);
            background: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-subtle);
        }

        .login-agreement input:checked::before {
            transform: scale(1);
        }

        .login-agreement a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 700;
        }

        .login-error-message {
            min-height: 18px;
            margin: -8px 0 0;
            color: var(--error);
            font-size: var(--text-caption);
            font-weight: 700;
        }

        .login-error-message[data-tone="info"] {
            color: var(--accent);
        }

        .login-submit-btn,
        .login-primary-btn,
        .login-secondary-btn {
            font-weight: 800;
        }

        .auth-welcome-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 100vh;
            height: 100dvh;
            z-index: 13020;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            overflow: hidden;
        }

        .auth-welcome-modal[aria-hidden="true"] {
            display: none;
        }

        .auth-welcome-panel {
            position: relative;
            z-index: 1;
            width: min(680px, calc(100vw - 40px));
            display: grid;
            grid-template-columns: minmax(220px, 252px) minmax(0, 1fr);
            overflow: hidden;
            border: 1px solid var(--border-visible);
            border-radius: 20px;
            background: var(--surface1);
            box-shadow: var(--shadow-3);
        }

        .auth-welcome-visual {
            padding: 30px 26px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 18px;
            border-right: 1px solid var(--border);
            background:
                radial-gradient(circle at 18% 16%, rgba(243, 112, 88, 0.22), transparent 32%),
                radial-gradient(circle at 82% 88%, rgba(255, 183, 124, 0.28), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #fff7f4 56%, #fff1ee 100%);
        }

        .auth-welcome-mark {
            width: 112px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
        }

        .auth-welcome-mark img {
            width: 100%;
            height: auto;
            display: block;
        }

        .auth-welcome-kicker {
            margin: 0 0 10px;
            color: var(--accent);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.06em;
        }

        .auth-welcome-visual h3 {
            margin: 0;
            font-family: var(--font-home-display);
            color: var(--text1);
            font-size: 34px;
            line-height: 1.08;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .auth-welcome-visual p {
            margin: 12px 0 0;
            color: var(--text2);
            font-size: 13px;
            line-height: 1.7;
        }

        .auth-welcome-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .auth-welcome-chips span {
            display: inline-flex;
            align-items: center;
            min-height: 22px;
            padding: 4px 8px;
            border: 0;
            border-radius: var(--radius-element);
            background: var(--surface2);
            color: var(--text2);
            font: 400 var(--text-caption)/1.2 var(--font-body);
        }

        .auth-welcome-content {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 16px;
            padding: 34px 36px 32px;
        }

        .auth-welcome-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-visible);
            border-radius: 12px;
            background: #ffffff;
            color: var(--text2);
            cursor: pointer;
            transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
        }

        .auth-welcome-close:hover {
            border-color: rgba(243, 112, 88, 0.36);
            background: #fff1ee;
            color: var(--accent);
        }

        .auth-welcome-title {
            margin: 0;
            color: var(--text1);
            font-size: 13px;
            font-weight: 800;
        }

        .auth-welcome-headline {
            margin: 0;
            font-family: var(--font-home-display);
            color: var(--text1);
            font-size: 26px;
            line-height: 1.26;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .auth-welcome-description {
            margin: 0;
            max-width: 360px;
            color: var(--text2);
            font-size: 14px;
            line-height: 1.75;
        }

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

        .auth-feedback-toast {
            position: fixed;
            right: 24px;
            bottom: 24px;
            z-index: 13040;
            width: min(340px, calc(100vw - 32px));
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 16px;
            border: 1px solid var(--border-visible);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 18px 48px rgba(23, 29, 43, 0.08);
            transform: translateY(0);
            opacity: 1;
            transition: opacity var(--duration-medium) var(--ease-medium), transform var(--duration-medium) var(--ease-medium);
        }

        .auth-feedback-toast[aria-hidden="true"] {
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
        }

        .auth-feedback-toast-mark {
            width: 72px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            flex: 0 0 72px;
        }

        .auth-feedback-toast-mark img {
            width: 100%;
            height: auto;
            display: block;
        }

        .auth-feedback-toast-copy {
            min-width: 0;
            display: grid;
            gap: 4px;
        }

        .auth-feedback-toast-title {
            color: var(--text1);
            font-size: 13px;
            font-weight: 800;
            line-height: 1.3;
        }

        .auth-feedback-toast-message {
            color: var(--text2);
            font-size: 13px;
            line-height: 1.55;
        }

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

@media (max-width: 768px) {
            .login-modal {
                padding: 12px;
                align-items: center;
                justify-content: center;
            }

            .login-panel {
                width: min(420px, calc(100vw - 24px));
                max-width: 420px;
                min-height: auto;
                max-height: min(620px, calc(100vh - 36px));
                max-height: min(620px, calc(100dvh - 36px));
                grid-template-columns: minmax(0, 1fr);
                overflow: hidden auto;
                -webkit-overflow-scrolling: touch;
                border-radius: 18px;
            }

            .login-slogan-pane {
                min-height: auto;
                display: block;
                padding: 16px 20px 14px;
                border-right: 0;
                border-bottom: 1px solid var(--border);
            }

            .login-brand-row {
                gap: 10px;
            }

            .login-brand-icon {
                width: 34px;
                height: 34px;
            }

            .login-brand-text-logo {
                width: 92px;
            }

            .login-slogan-copy {
                display: none;
            }

            .login-studio-preview {
                display: none;
            }

            .login-form-pane {
                padding: 20px 20px 18px;
            }

            .login-modal-close {
                top: 18px;
                right: 18px;
                width: 34px;
                height: 34px;
            }

            .login-kicker,
            .login-subtitle {
                display: none;
            }

            .login-form-pane h3 {
                padding-right: 44px;
                font-size: var(--text-heading);
                line-height: 1.2;
            }

            .phone-login-form {
                margin-top: 16px;
                gap: 10px;
            }

            .login-field {
                gap: 7px;
            }

            .login-input-shell {
                gap: 10px;
                min-height: 42px;
            }

            .login-input-shell input {
                font-size: 16px;
            }

            .login-captcha-row {
                grid-template-columns: minmax(0, 1fr) minmax(96px, 108px);
                gap: 8px;
            }

            .login-captcha-box {
                width: 100%;
                height: 42px;
                border-radius: 10px;
            }

            #login-code-button {
                height: 30px;
                padding: 0 10px;
            }

            .login-agreement {
                font-size: var(--text-caption);
                line-height: 1.45;
            }

            .login-error-message {
                min-height: 16px;
                margin: -6px 0 0;
            }

            .login-submit-btn {
                min-height: 42px;
            }

            .auth-welcome-modal {
                padding: 0;
                align-items: flex-end;
                justify-content: center;
            }

            .auth-welcome-panel {
                width: 100%;
                max-height: 92vh;
                grid-template-columns: 1fr;
                overflow-y: auto;
                border-radius: 20px 20px 0 0;
                transform: translateY(18px);
                animation: yv-welcome-drawer-in 260ms cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
            }

            .auth-welcome-visual {
                padding: 24px 20px 18px;
                border-right: 0;
                border-bottom: 1px solid var(--border);
            }

            .auth-welcome-visual h3 {
                font-size: var(--text-display);
            }

            .auth-welcome-content {
                padding: 24px 20px 22px;
            }

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

            .auth-feedback-toast {
                right: 14px;
                bottom: 14px;
                width: calc(100vw - 28px);
            }
}

@keyframes yv-welcome-drawer-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登录表单字段校验错误高亮（用 .login-modal 提升特异性，盖过 home.html 内联的 :focus-within） */
.login-modal .login-input-shell.is-error,
.login-modal .login-input-shell.is-error:focus-within {
    border-color: var(--error) !important;
    background: var(--error-bg);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}
.login-modal .login-agreement.is-error {
    color: var(--error);
}
.login-modal .login-agreement.is-error input {
    border-color: var(--error);
}

/* 登录按钮飞行中转圈（防重复提交） */
.login-submit-btn[data-loading] {
    opacity: 0.85;
    cursor: progress;
}
.login-submit-btn[data-loading]::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: yv-login-spin 0.6s linear infinite;
}
@keyframes yv-login-spin { to { transform: rotate(360deg); } }

/* 协议未勾选时的就近气泡提示 */
.login-modal .login-agreement {
    position: relative;
}
.login-modal .login-agreement-hint {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 5;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--error);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(229, 72, 77, 0.28);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}
.login-modal .login-agreement-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.login-modal .login-agreement-hint::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 100%;
    border: 5px solid transparent;
    border-top-color: var(--error);
}

/* ============================================================
   协议引导弹窗（agreement-guidance）
   登录/注册时未勾选协议，点「获取验证码」或「登录并继续」会
   优先弹这个引导弹窗（取代旧的就近气泡）。light-only, coral action。
   z-index 13030：盖在 login-modal(13000)/auth-welcome(13020) 之上，
   且低于 auth-feedback-toast(13040)——它们不会同时出现。
   ============================================================ */
.agreement-guidance-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 13030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.agreement-guidance-modal[aria-hidden="true"] {
    display: none;
}

.agreement-guidance-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 17, 29, 0.42);
}

.agreement-guidance-panel {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 40px));
    box-sizing: border-box;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* 标题/正文左对齐 */
    gap: 14px;
    text-align: left;
    background: var(--surface1);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-component); /* 16px - cards stay 16px per spec */
    box-shadow: var(--shadow-3);
}

.agreement-guidance-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-heading);
    line-height: 1.2;
    font-weight: 800;
    color: var(--text1);
    letter-spacing: -0.01em;
    text-align: left;
}

.agreement-guidance-text {
    margin: 0;
    font-size: var(--text-body-sm);
    line-height: 1.7;
    color: var(--text2);
    text-align: left;
}

.agreement-guidance-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.agreement-guidance-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.agreement-guidance-actions {
    display: flex;
    gap: 10px;
    align-self: flex-end;        /* 按钮组整体靠右 */
    margin-top: 6px;
}

.agreement-guidance-btn {
    min-height: var(--control-height);
    justify-content: center;
}

.agreement-guidance-cancel {
    /* .yv-button-secondary 已提供底色/边框 */
}

.agreement-guidance-confirm {
    /* .yv-button-primary 已提供珊瑚色 */
}

/* 窄屏：标题略收；按钮组仍靠右 */
@media (max-width: 560px) {
    .agreement-guidance-panel {
        padding: 24px 20px 20px;
    }
    .agreement-guidance-title {
        font-size: var(--text-subheading);
    }
    .agreement-guidance-actions {
        gap: 8px;
    }
}

/* ============================================================
   停留邀请气泡（dwell-invite.js）
   基础样式直接复用 .auth-feedback-toast（元素同时挂两个类），
   全断点自动与登录欢迎气泡一致；这里只写扩展部分。
   ============================================================ */
/* 用双类选择器(0,2,0)盖过 home.html 内联副本的 .auth-feedback-toast(0,1,0) */
.auth-feedback-toast.retention-nudge {
    z-index: 12900; /* 必须低于登录弹窗(13000)；欢迎气泡本体是 13040 */
}

.retention-nudge .auth-feedback-toast-copy {
    gap: 6px;
}

.retention-nudge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.retention-nudge-btn {
    appearance: none;
    border: 1px solid var(--border-visible);
    border-radius: 999px;
    background: #fff;
    color: var(--text1);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: background var(--duration-fast, 0.15s) ease, opacity var(--duration-fast, 0.15s) ease;
}

.retention-nudge-btn:hover {
    background: rgba(23, 29, 43, 0.05);
}

.retention-nudge-btn.is-primary {
    background: var(--text1);
    border-color: var(--text1);
    color: #fff;
}

.retention-nudge-btn.is-primary:hover {
    opacity: 0.88;
}

.retention-nudge-never {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    justify-self: start;
    color: var(--text3, var(--text2));
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.retention-nudge-close {
    position: absolute;
    top: 8px;
    right: 10px;
    appearance: none;
    border: none;
    background: none;
    color: var(--text3, var(--text2));
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}

.retention-nudge-kbd {
    display: inline-block;
    border: 1px solid var(--border-visible);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 1px 8px;
    font-size: 12px;
    background: rgba(23, 29, 43, 0.04);
    color: var(--text1);
}
