:root {
            /* MD3 Dark Theme Tokens */
            --md-sys-color-primary: #D0BCFF;
            --md-sys-color-on-primary: #381E72;
            --md-sys-color-primary-container: #4F378B;
            --md-sys-color-on-primary-container: #EADDFF;
            --md-sys-color-secondary-container: #4A4458;
            --md-sys-color-on-secondary-container: #E8DEF8;
            --md-sys-color-surface: #1C1B1F;
            --md-sys-color-surface-container: #211F26;
            --md-sys-color-surface-container-high: #2B2930;
            --md-sys-color-surface-container-highest: #36343B;
            --md-sys-color-outline: #938F99;
            --md-sys-color-outline-variant: #49454F;
            --md-sys-color-error: #F2B8B5;
            --md-sys-color-success: #B4E3B4;
        }

        body { 
            font-family: 'Google Sans', sans-serif;
            background-color: var(--md-sys-color-surface);
            color: #E6E1E5;
            margin: 0;
            -webkit-tap-highlight-color: transparent;
            overflow-x: hidden;
        }

        .fade-in { animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

        /* MD3 Components */
        .md3-card {
            background-color: var(--md-sys-color-surface-container-high);
            border-radius: 24px;
            border: none;
            transition: background-color 0.2s;
        }
        @media (min-width: 768px) { .md3-card { border-radius: 28px; } }

        /* Option Buttons (Stacked & Compact) */
        .option-btn {
            background-color: var(--md-sys-color-surface-container-highest);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid transparent;
            width: 100%;
        }
        .option-btn:active { transform: scale(0.98); }

        .option-btn::after {
            content: "";
            position: absolute;
            inset: 0;
            background: white;
            opacity: 0;
            pointer-events: none;
        }
        .option-btn:hover::after { opacity: 0.06; }
        .option-btn:active::after { opacity: 0.12; }

        /* MD3 Input Field */
        .md3-input-container {
            background: rgba(255,255,255,0.06);
            border-radius: 12px 12px 0 0;
            border-bottom: 2px solid var(--md-sys-color-outline);
            transition: all 0.2s;
            position: relative;
        }
        .md3-input-container:focus-within {
            border-bottom: 2px solid var(--md-sys-color-primary);
            background: rgba(255,255,255,0.12);
        }
        .md3-input {
            background: transparent;
            width: 100%;
            padding: 16px;
            color: white;
            font-size: 16px; /* Avoids auto-zoom on iOS */
            outline: none;
            border: none;
        }

        .modal-overlay {
            background-color: rgba(0,0,0,0.85);
            backdrop-filter: blur(8px);
            z-index: 1000;
        }

        .app-container {
            width: 100%;
            max-width: 90rem; /* Desktop Wide */
            margin: 0 auto;
        }

        .btn-pill {
            border-radius: 9999px;
            padding: 0 24px;
            height: 48px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
        }
        .btn-pill:active { transform: scale(0.96); }

        .icon-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--md-sys-color-secondary-container);
            color: var(--md-sys-color-primary);
            transition: all 0.2s;
            cursor: pointer;
            border: none;
        }
        .icon-btn:hover { background: #5a5468; }
        .icon-btn:active { transform: scale(0.9); }

        /* Typography & Images constraints */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;  
            overflow: hidden;
        }
        .max-h-32 { max-height: 15rem !important; }

        ::-webkit-scrollbar { width: 6px; }
        @media (min-width: 768px) { ::-webkit-scrollbar { width: 8px; } }
        ::-webkit-scrollbar-thumb { background: var(--md-sys-color-outline-variant); border-radius: 10px; }
