
        @media (max-width: 480px) {
            .frosted-card {
                padding: 36px 24px;
                margin: 16px;
                border-radius: 24px;
            }

            .frosted-logo {
                width: 80px;
                height: 80px;
                margin-bottom: 24px;
            }

            .frosted-title {
                font-size: 26px;
            }

            .frosted-subtitle {
                font-size: 14px;
                margin-bottom: 28px;
            }

            .frosted-input {
                padding: 16px 46px 16px 46px;
                font-size: 16px; /* Prevents iOS zoom */
            }

            .frosted-button {
                padding: 16px 20px;
            }
        }

        @media (max-width: 480px) {
            .error-banner-content {
                flex-direction: column;
                align-items: flex-start;
                padding-right: 40px; /* Space for dismiss button */
            }

            .error-banner-dismiss {
                position: absolute;
                top: 8px;
                right: 8px;
            }

            .error-banner-message {
                word-break: break-word;
                overflow-wrap: break-word;
            }
        }


        @media (max-width: 480px) {
            .welcome-heading {
                font-size: 28px;
            }

            .welcome-subheading {
                font-size: 15px;
            }

            /* Small phones: Even tighter spacing */
            .animated-placeholder {
                right: 80px; /* Very tight on small phones */
                font-size: 13px;
                left: 42px; /* Increased from 26px for better spacing from search icon */
                max-width: calc(100% - 122px); /* Adjusted for new left padding */
            }

            .search-submit {
                padding: 10px 16px; /* Smaller button on small phones */
                font-size: 12px;
            }

            .search-icon {
                width: 18px; /* Slightly smaller icon */
                height: 18px;
            }

            /* Make voice orb smaller on mobile to fit in search bar */
            .ultra-fabric-orb {
                width: 36px; /* Reduced from 44px */
                height: 36px;
            }

            /* Match send button size to voice orb on mobile */
            .chat-send-btn {
                width: 36px;
                height: 36px;
            }

            /* Scale version number even smaller on mobile */
            .brand-version {
                font-size: 7px;
                margin-top: 1px;
            }

            /* Reduce gap in search bar on mobile */
            .search-inner {
                gap: 8px; /* Reduced from 12px */
                padding: 6px 10px; /* Reduced from 8px 12px */
            }

            /* Small phones: Even more compact header */
            .header {
                padding: 10px 12px; /* Further reduced */
            }

            .header-left {
                gap: 10px; /* Further reduced */
            }

            .brand-name {
                font-size: 15px; /* Further reduced */
            }

            .brand-tagline {
                font-size: 10px; /* Further reduced */
            }

            .new-conversation-btn {
                padding: 6px 10px; /* Further reduced */
                font-size: 12px; /* Further reduced */
                gap: 4px; /* Further reduced */
            }

            .new-conversation-btn svg {
                width: 12px; /* Further reduced */
                height: 12px;
            }

            .help-link-btn {
                padding: 6px 8px;
                font-size: 12px;
                gap: 3px;
            }

            .help-link-btn svg {
                width: 12px;
                height: 12px;
            }

            /* On very small screens, make button more compact (icon + abbreviated text) */
            .header-orb-logo {
                width: 32px; /* Slightly smaller logo */
                height: 32px;
            }

            /* Small phones: More aggressive message layout optimization */
            .message {
                padding: 6px 4px; /* Further reduced padding for max screen real estate */
                gap: 6px; /* Further reduced gap */
            }

            .message-avatar {
                width: 32px; /* Further reduced from 40px */
                height: 32px;
            }

            .message.user .message-avatar {
                font-size: 14px; /* Further reduced */
            }

            /* Small phones: Even more compact fixed input */
            .chat-input-container {
                padding: 10px 12px; /* Further reduced padding */
            }

            /* Adjust bottom padding for smaller input */
            .chat-messages {
                padding-bottom: 100px; /* Slightly less than tablet */
            }

            /* Prevent iOS auto-zoom on input focus */
            .chat-input-field {
                font-size: 16px; /* Minimum 16px prevents mobile browser auto-zoom */
                padding: 10px 12px; /* Further reduced padding */
            }

            .chat-input-field::placeholder {
                font-size: 11px; /* Further reduced from 12px */
            }
        }