        /* Base styles */
        :root {
            --font-size-base: 16px;
        }
        
        html {
            font-size: var(--font-size-base);
        }
        
        /* Active tab styling */
        .active-tab {
            background-color: #f3f4f6;
            border-left: 4px solid #2563eb;
            font-weight: 600;
        }
        
        /* Prose-like styling for the editor */
        .prose-editor {
            font-family: 'Georgia', serif;
            line-height: 1.8;
            font-size: 1.125rem;
        }
        
        /* Touch-friendly button sizing (44px minimum) */
        .btn-touch {
            min-height: 44px;
            min-width: 44px;
        }
        
        /* Form input sizing for mobile */
        input, select, textarea {
            min-height: 48px;
            font-size: 16px; /* Prevents iOS zoom on focus */
        }
        
        /* Touch feedback */
        .btn-touch:active, button:active {
            transform: scale(0.98);
            opacity: 0.9;
        }
        
        /* Modal styling */
        .upgrade-modal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            padding: 1rem;
        }
        
        .modal-content {
            background-color: white;
            padding: 2.5rem;
            border-radius: 0.75rem;
            max-width: 500px;
            width: 100%;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        @media (max-width: 640px) {
            .modal-content {
                padding: 1.5rem;
                margin: 1rem;
            }
        }
        
        .modal-content h2 {
            font-size: 1.75rem;
            font-weight: bold;
            color: #1f2937;
            margin-bottom: 1rem;
        }
        
        @media (max-width: 640px) {
            .modal-content h2 {
                font-size: 1.5rem;
            }
        }
        
        .modal-content p {
            color: #4b5563;
            margin-bottom: 2rem;
        }
        
        .modal-content .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            text-decoration: none;
            transition: background-color 0.2s;
            min-height: 44px;
        }
        
        .modal-content .btn-primary {
            background-color: #4f46e5;
            color: white;
        }
        
        .modal-content .btn-primary:hover {
            background-color: #4338ca;
        }
        
        .modal-content .btn-secondary {
            background-color: #e5e7eb;
            color: #374151;
            margin-left: 0.5rem;
        }
        
        @media (max-width: 640px) {
            .modal-content .btn-secondary {
                margin-left: 0;
                margin-top: 0.5rem;
            }
        }
        
        .modal-content .btn-secondary:hover {
            background-color: #d1d5db;
        }
        
        /* Mobile navigation */
        .mobile-menu {
            display: none;
        }
        
        .mobile-header {
            display: none;
        }
        
        @media (max-width: 768px) {
            .desktop-nav {
                display: none;
            }
            .mobile-menu {
                display: block;
            }
            .mobile-header {
                display: block;
            }
            /* Add padding to main content for mobile header */
            main {
                padding-top: 4rem;
            }
        }
        
        /* Font size controls for accessibility */
        .font-size-small {
            --font-size-base: 14px;
        }
        
        .font-size-medium {
            --font-size-base: 16px;
        }
        
        .font-size-large {
            --font-size-base: 18px;
        }
        
        .font-size-xlarge {
            --font-size-base: 20px;
        }
        
        /* Improved readability */
        .readable-text {
            max-width: 75ch;
            line-height: 1.6;
        }
        
        /* Skeleton loading screens */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 4px;
        }
        
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .skeleton-text {
            height: 1em;
            margin-bottom: 0.5em;
        }
        
        .skeleton-text:last-child {
            width: 80%;
        }
        
        .skeleton-card {
            height: 120px;
            border-radius: 8px;
        }
        
        .skeleton-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        
        /* Button loading state */
        .btn-loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
        }
        
        .btn-loading::after {
            content: "";
            position: absolute;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin-left: -10px;
            margin-top: -10px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: btn-spin 0.8s linear infinite;
        }
        
        @keyframes btn-spin {
            to { transform: rotate(360deg); }
        }
        
        /* Content loading placeholder2 */
        .content-loading {
            filter: blur(2px);
            opacity: 0.6;
            pointer-events: none;
        }
    </style>
