<style nonce="{{ csp_nonce }}">

/* === changelog.html === */
* { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
    .container { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
    header { text-align: center; margin-bottom: 3rem; }
    .logo { margin-bottom: 1rem; }
    header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
    header p { color: #64748b; font-size: 1.125rem; }
    .version { margin-bottom: 2.5rem; }
    .version-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0; }
    .version-tag { background: #3b82f6; color: white; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
    .version-date { color: #64748b; font-size: 0.875rem; }
    .changes { list-style: none; padding: 0; }
    .changes li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; }
    .changes li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; }
    .changes li.new::before { background: #22c55e; }
    .changes li.fix::before { background: #f59e0b; }
    .changes li.sec::before { background: #ef4444; }
    .changes li.improve::before { background: #3b82f6; }
    .changes li.breaking::before { background: #a855f7; }
    .changes li code { background: #f1f5f9; padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.875em; }
    footer { text-align: center; margin-top: 4rem; padding: 2rem 0; border-top: 1px solid #e2e8f0; color: #94a3b8; font-size: 0.875rem; }
    a { color: #3b82f6; text-decoration: none; }

/* === privacy.html === */
main { padding: 60px 0 80px; }
    main h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 8px;
        letter-spacing: -0.02em;
        color: var(--text);
    }
    .updated {
        color: var(--text-dim);
        font-size: 14px;
        margin-bottom: 32px;
    }
    main h2 {
        font-size: 20px;
        font-weight: 600;
        margin-top: 32px;
        margin-bottom: 12px;
        color: var(--text);
    }
    main p {
        margin-bottom: 16px;
        color: var(--text-muted);
    }
    main ul {
        margin: 0 0 16px 20px;
        color: var(--text-muted);
    }
    main li { margin-bottom: 4px; }
    main .container { max-width: 720px; }
    @media (max-width: 768px) {
        main { padding: 40px 0; }
        main h1 { font-size: 24px; }
    }

/* === terms.html === */
main { padding: 60px 0 80px; }
    main h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 8px;
        letter-spacing: -0.02em;
        color: var(--text);
    }
    .updated {
        color: var(--text-dim);
        font-size: 14px;
        margin-bottom: 32px;
    }
    main h2 {
        font-size: 20px;
        font-weight: 600;
        margin-top: 32px;
        margin-bottom: 12px;
        color: var(--text);
    }
    main p {
        margin-bottom: 16px;
        color: var(--text-muted);
    }
    main ul {
        margin: 0 0 16px 20px;
        color: var(--text-muted);
    }
    main li { margin-bottom: 4px; }
    main .container { max-width: 720px; }
    @media (max-width: 768px) {
        main { padding: 40px 0; }
        main h1 { font-size: 24px; }
    }

/* === upgrade.html === */
body { font-family: system-ui, -apple-system, sans-serif; background: #f5f5f5; color: #333; }
       .container { max-width: 960px; margin: 0 auto; padding: 20px; }
        nav { background: #1a1a2e; color: white; }
        /* .card styles inherited from _shared.css.html */
        .btn { display: inline-block; padding: 8px 16px; background: #1a1a2e; color: white; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; }
        .btn:hover { background: #2d2d44; }
        .btn-outline { background: transparent; border: 1px solid #1a1a2e; color: #1a1a2e; }
        .btn-sm { padding: 4px 10px; font-size: 12px; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .badge { display: inline-block; padding: 2px 8px; background: #e9ecef; border-radius: 12px; font-size: 12px; }
        .badge-free { background: #e9ecef; color: #333; }
        .badge-starter { background: #dbeafe; color: #1e40af; }
        .badge-pro { background: #fef3c7; color: #92400e; }
        .badge-teams { background: #d1fae5; color: #065f46; }
        .badge-teams_plus { background: #ede9fe; color: #5b21b6; }
        .success { background: #d4edda; color: #155724; padding: 12px; border-radius: 4px; margin-bottom: 16px; }
        .error { background: #f8d7da; color: #721c24; padding: 12px; border-radius: 4px; margin-bottom: 16px; }
        .pricing { display: flex; gap: 20px; margin-top: 20px; }
        .pricing-card { flex: 1; background: white; border: 2px solid #e9ecef; border-radius: 8px; padding: 24px; text-align: center; }
        .pricing-card.current { border-color: #1a1a2e; position: relative; }
        .pricing-card.current::before { content: 'Current Plan'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #1a1a2e; color: white; padding: 2px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; }
        .pricing-card.popular { border-color: #ffc107; }
        .pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
        .pricing-price { font-size: 36px; font-weight: 700; margin: 16px 0; }
        .pricing-price span { font-size: 14px; color: #888; font-weight: 400; }
        .pricing-features { list-style: none; text-align: left; margin: 16px 0; }
        .pricing-features li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
        .pricing-features li:last-child { border: none; }
        .pricing-features li::before { content: '✓'; margin-right: 8px; color: #28a745; }
        .unlimited::before { content: '∞'; }
        .no-stripe { background: #fff3cd; color: #856404; padding: 20px; border-radius: 8px; text-align: center; margin: 20px 0; }
        @media (max-width: 640px) {
            .pricing { flex-direction: column; }
            .container { padding: 12px; }
            .pricing-price { font-size: 28px; }
            .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
        }
</style>
