/* AP MOBILE WHITE COMPONENTS V1 — paint-only, explicit light theme. */
@media (max-width: 767px) {
    html[data-ap-theme="light"] body #liveTalkScreen.is-open,
    html[data-ap-theme="light"] body #ap-native-keyboard,
    html[data-ap-theme="light"] body #ap-typing-language,
    html[data-ap-theme="light"] body #ap-dictation-panel,
    html[data-ap-theme="light"] body dialog.ap-sketch-bond,
    html[data-ap-theme="light"] body #profileCard {
        color-scheme: light !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen.is-open {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #faf9f6 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen.is-open .live-talk-panel {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: radial-gradient(ellipse at 50% 24%, #f2e8d5 0%, transparent 56%), #faf9f6 !important;
        border-color: #d6cfc3 !important;
        box-shadow: 0 12px 36px #352a1512 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-topbar {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: transparent !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-brand-mark {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        border-color: #977335 !important;
        background-color: transparent !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-brand-text strong,
    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-presence h1 {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-brand-text span,
    html[data-ap-theme="light"] body #liveTalkScreen #liveTalkSubtext,
    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-empty,
    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-footer,
    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-section-title {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-close {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
        box-shadow: none !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-status {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
        border-color: #b69b66 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-orb {
        background: radial-gradient(circle, #e8d5ac66, transparent 71%) !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-orb-inner {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: radial-gradient(circle at 32% 24%, #fffdf6, #ead8b1) !important;
        border-color: #977335 !important;
        box-shadow: inset 0 0 24px #ffffff80, 0 0 28px #b3914c25 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-orb-ring {
        border-color: #a3814c70 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-orb::before {
        border-color: #a3814c88 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-orb::after {
        background: radial-gradient(circle at 50% 1%, #886329 0 2px, #bb965b55 3px, transparent 7px) !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen[data-ap-live-state="Listening"] .live-talk-orb-inner {
        box-shadow: 0 0 32px #ae8b4630 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen[data-ap-live-state="Speaking"] .live-talk-orb-inner {
        box-shadow: 0 0 42px #ae8b4655 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #liveTalkTranscript {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
        scrollbar-color: #a99b83 transparent !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-message {
        background: transparent !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-message-label {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-message-body {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-section {
        background: transparent !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .ap-live-voice-picker {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #apLiveVoicePicker,
    html[data-ap-theme="light"] body #liveTalkScreen #apLiveVoicePicker option {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
        color-scheme: light !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-option {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-option.active {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
        border-color: #977335 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-symbol {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #eee4d0 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-text strong {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-text small {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-voice-check {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-controls {
        background: transparent !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-controls button {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen .live-talk-controls button span {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #liveTalkMicBtn.active {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
        border-color: #977335 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #liveTalkMicBtn.active span {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #liveTalkEndBtn {
        color: #963b35 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #fff1ef !important;
        border-color: #c38e87 !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #liveTalkEndBtn span {
        color: #963b35 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen #apLiveInterrupt {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
        border-color: #977335 !important;
    }

    html[data-ap-theme="light"] body #ap-native-keyboard {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1eee8 !important;
        border-color: #d6cfc3 !important;
        box-shadow: 0 4px 14px #352a1510 !important;
    }

    html[data-ap-theme="light"] body #ap-native-keyboard button {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
    }

    html[data-ap-theme="light"] body #ap-native-keyboard button.ap-key-control {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f5f0e7 !important;
        border-color: #b8aea0 !important;
    }

    html[data-ap-theme="light"] body #ap-native-keyboard button.ap-key-layer[aria-pressed="true"] {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
        border-color: #977335 !important;
    }

    html[data-ap-theme="light"] body #ap-native-keyboard button:active {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #e7d8bb !important;
        border-color: #977335 !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-chip,
    html[data-ap-theme="light"] body #ap-typing-language .ap-typing-candidate {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #977335 !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-chip span {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-list {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
        box-shadow: 0 8px 28px #352a1526 !important;
        scrollbar-color: #a99b83 transparent !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-list button {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: transparent !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-list button:hover,
    html[data-ap-theme="light"] body #ap-typing-language .ap-language-list button[aria-pressed="true"] {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-list button[aria-pressed="true"]::after {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-language-list small {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #ap-typing-language .ap-typing-hint {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
        background: #faf9f6 !important;
    }

    html[data-ap-theme="light"] body #ap-dictation-panel {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
        box-shadow: 0 8px 26px #352a1526 !important;
    }

    html[data-ap-theme="light"] body #ap-dictation-panel select,
    html[data-ap-theme="light"] body #ap-dictation-panel .ap-dictation-more select,
    html[data-ap-theme="light"] body #ap-dictation-panel select option,
    html[data-ap-theme="light"] body #ap-dictation-panel select optgroup {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
        color-scheme: light !important;
    }

    html[data-ap-theme="light"] body #ap-dictation-panel .ap-dictation-status,
    html[data-ap-theme="light"] body #ap-dictation-panel .ap-dictation-more {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #ap-dictation-panel .ap-dictation-hint {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #ap-dictation-panel .ap-dictation-close {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: transparent !important;
    }

    html[data-ap-theme="light"] body #ap-dictation-panel .ap-dictation-wave i {
        background: #977335 !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
        box-shadow: 0 16px 50px #352a152b !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond::backdrop {
        background: rgba(36,30,21,.42) !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-top h2,
    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-card strong {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond p {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-card {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-card small {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-close,
    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-docs {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: transparent !important;
    }

    html[data-ap-theme="light"] body dialog.ap-sketch-bond .ap-bond-docs span {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #profileCard {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
        box-shadow: 0 16px 45px #352a1520 !important;
    }

    html[data-ap-theme="light"] body #profileCard .popup-header,
    html[data-ap-theme="light"] body #profileCard .profile-hero,
    html[data-ap-theme="light"] body #profileCard .profile-status,
    html[data-ap-theme="light"] body #profileCard .profile-details,
    html[data-ap-theme="light"] body #profileCard .profile-capabilities,
    html[data-ap-theme="light"] body #profileCard .profile-account-section,
    html[data-ap-theme="light"] body #profileCard .google-identity-section,
    html[data-ap-theme="light"] body #profileCard .google-signin-section {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #profileCard .profile-identity,
    html[data-ap-theme="light"] body #profileCard .google-identity-copy {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: transparent !important;
    }

    html[data-ap-theme="light"] body #profileCard h2,
    html[data-ap-theme="light"] body #profileCard h3,
    html[data-ap-theme="light"] body #profileCard h4,
    html[data-ap-theme="light"] body #profileCard #profileName,
    html[data-ap-theme="light"] body #profileCard .profile-details strong {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #profileCard #profileEmail,
    html[data-ap-theme="light"] body #profileCard .profile-identity p,
    html[data-ap-theme="light"] body #profileCard .google-identity-copy p,
    html[data-ap-theme="light"] body #profileCard .profile-details span,
    html[data-ap-theme="light"] body #profileCard .profile-status span,
    html[data-ap-theme="light"] body #profileCard .google-identity-eyebrow {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #profileCard .popup-kicker,
    html[data-ap-theme="light"] body #profileCard .profile-section-label {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #profileCard .profile-avatar {
        color: #76551f !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1e7d3 !important;
        border-color: #c7af81 !important;
    }

    html[data-ap-theme="light"] body #profileCard .profile-capabilities span {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f1eee8 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #profileCard .synapse-account-action,
    html[data-ap-theme="light"] body #profileCard .popup-close,
    html[data-ap-theme="light"] body #profileCard .ap-profile-stable-google {
        color: #292722 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #ffffff !important;
        border-color: #b8aea0 !important;
    }

    html[data-ap-theme="light"] body #profileCard #authenticatedStatus {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
        background: #f2f0eb !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #profileCard #authenticatedStatus[data-auth-state="connected"] {
        color: #286347 !important;
        -webkit-text-fill-color: currentColor !important;
        background: #eaf4ed !important;
        border-color: #a4c6b1 !important;
    }

    html[data-ap-theme="light"] body #profileCard #googleConnectionStatus {
        color: #59554d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #profileCard[data-google-state="connected"] #googleConnectionStatus {
        color: #286347 !important;
        -webkit-text-fill-color: currentColor !important;
    }

    html[data-ap-theme="light"] body #liveTalkScreen :is(button,select):focus-visible,
    html[data-ap-theme="light"] body #ap-native-keyboard button:focus-visible,
    html[data-ap-theme="light"] body #ap-typing-language button:focus-visible,
    html[data-ap-theme="light"] body #ap-dictation-panel :is(button,select):focus-visible,
    html[data-ap-theme="light"] body dialog.ap-sketch-bond button:focus-visible,
    html[data-ap-theme="light"] body #profileCard button:focus-visible {
        outline-color: #977335 !important;
    }

    /* AP MOBILE WHITE FINISH V2 */
    html[data-ap-theme="light"] body #liveTalkScreen#liveTalkScreen .live-talk-footer {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
        background: transparent !important;
        border-color: #d6cfc3 !important;
        box-shadow: none !important;
    }

    html[data-ap-theme="light"] body #profileCard#profileCard #profileName {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
    }

    html[data-ap-theme="light"] body #profileCard#profileCard #profileEmail,
    html[data-ap-theme="light"] body #profileCard#profileCard .google-identity-copy p {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body #profileCard#profileCard #closeProfile {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #profileCard#profileCard #closeProfile svg {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
    }

    html[data-ap-theme="light"] body #profileCard.ap-profile-signed-out-v21 .google-identity-section:empty {
        display: none !important;
    }

    html[data-ap-theme="light"] body aside.sidebar.ap-sketch-sidebar :is(.ap-sketch-history-heading,.ap-sketch-see-all) span {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html[data-ap-theme="light"] body #stopBtn#stopBtn {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body #stopBtn#stopBtn .command-icon {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body span[data-ap-mobile-motto="true"] {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel,
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel,
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
        color-scheme: light !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(header,footer,.ap-notification-header,.ap-notification-list,.ap-notification-footer,.ap-notification-item),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(header,footer,.ap-notification-header,.ap-notification-list,.ap-notification-footer,.ap-notification-item),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(header,footer,.ap-notification-header,.ap-notification-list,.ap-notification-footer,.ap-notification-item) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(.ap-notification-empty,[class$="-empty"]),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(.ap-notification-empty,[class$="-empty"]),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(.ap-notification-empty,[class$="-empty"]) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(h2,h3,h4,strong),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(h2,h3,h4,strong),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(h2,h3,h4,strong) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(p,span,small,time),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(p,span,small,time),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(p,span,small,time) {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(.ap-notification-empty-icon,[class$="-empty-icon"]),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(.ap-notification-empty-icon,[class$="-empty-icon"]),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(.ap-notification-empty-icon,[class$="-empty-icon"]) {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: #f1e5cd !important;
        border-color: #ad8e51 !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(.ap-notification-empty,[class$="-empty"]) :is(strong,h3,h4),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(.ap-notification-empty,[class$="-empty"]) :is(strong,h3,h4),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(.ap-notification-empty,[class$="-empty"]) :is(strong,h3,h4) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        opacity: 1 !important;
    }

    html[data-ap-theme="light"] body #apStableNotificationPanel#apStableNotificationPanel :is(.ap-notification-empty,[class$="-empty"]) :is(span,p,small),
    html[data-ap-theme="light"] body #apSynapseNotificationCenter#apSynapseNotificationCenter .ap-notification-panel :is(.ap-notification-empty,[class$="-empty"]) :is(span,p,small),
    html[data-ap-theme="light"] body .ap-notification-panel.ap-notification-panel :is(.ap-notification-empty,[class$="-empty"]) :is(span,p,small) {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
        opacity: 1 !important;
    }

    html[data-ap-theme="light"] body #projectsPage .project-stat-card.project-stat-card {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #projectsPage .project-stat-card.project-stat-card :is(span,small,label,p) {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body #projectsPage .project-stat-card.project-stat-card :is(strong,b,h2,h3,[class$="-value"],[class$="-count"], [class$="-number"]) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
    }

    html[data-ap-theme="light"] body #codeStudioPage#codeStudioPage .ap-code-ai-head {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #codeStudioPage#codeStudioPage .ap-code-ai-head :is(span,strong,small,button,svg,i) {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: transparent !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #codeStudioPage#codeStudioPage :is(.ap-code-preview-header,.ap-code-preview-head) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body #codeStudioPage#codeStudioPage :is(.ap-code-preview-header,.ap-code-preview-head) :is(span,button,strong,small,svg) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: transparent !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-overlay {
        background: rgba(34,32,28,.38) !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-overlay .ap-cmb-panel,
    html[data-ap-theme="light"] body .ap-cmb-panel .ap-cmb-header,
    html[data-ap-theme="light"] body .ap-cmb-panel .ap-cmb-body {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel :is(.ap-cmb-title,.ap-cmb-label) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel :is(.ap-cmb-subtitle,.ap-cmb-progress-sub,.ap-cmb-label span) {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel :is(.ap-cmb-eyebrow,.ap-cmb-progress-title) {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel :is(.ap-cmb-style,.ap-cmb-close,.ap-cmb-btn:not(.primary)) {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel :is(.ap-cmb-style.is-active,.ap-cmb-btn.primary) {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: #f1e5cd !important;
        border-color: #ad8e51 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel #apCmbPrompt {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #ffffff !important;
        border-color: #c9b58e !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel #apCmbPrompt::placeholder {
        color: #777168 !important;
        -webkit-text-fill-color: #777168 !important;
        opacity: 1 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel .ap-cmb-progress {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel .ap-cmb-preview-card {
        color: #292722 !important;
        -webkit-text-fill-color: #292722 !important;
        background: #ffffff !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel .ap-cmb-preview-head {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
        background: #faf9f6 !important;
        border-color: #d6cfc3 !important;
    }

    html[data-ap-theme="light"] body .ap-cmb-panel .ap-cmb-error {
        color: #963b35 !important;
        -webkit-text-fill-color: #963b35 !important;
        background: #fff1ef !important;
        border-color: #c38e87 !important;
    }

    html[data-ap-theme="light"] body #apAprishaOrderAprishaBtnV1#apAprishaOrderAprishaBtnV1,
    html[data-ap-theme="light"] body #apAprishaOrderComboV1#apAprishaOrderComboV1 {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: linear-gradient(145deg, #fffdf8, #eee5d2) !important;
        border-color: #b69b66 !important;
        box-shadow: none !important;
    }

    html[data-ap-theme="light"] body #apAprishaOrderComboV1#apAprishaOrderComboV1 .apord-combo-btn {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: transparent !important;
        border-color: #cbb78e !important;
        box-shadow: none !important;
    }

    html[data-ap-theme="light"] body #apAprishaOrderAprishaBtnV1#apAprishaOrderAprishaBtnV1 .apord-label,
    html[data-ap-theme="light"] body #apAprishaOrderComboV1#apAprishaOrderComboV1 .apord-human-label {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: transparent !important;
        text-shadow: none !important;
    }

    html[data-ap-theme="light"] body #apAprishaOrderComboV1#apAprishaOrderComboV1 :is(.apord-stroke,.apord-ring,.apord-signal) {
        stroke: #987333 !important;
    }

    html[data-ap-theme="light"] body #apAprishaOrderComboV1#apAprishaOrderComboV1 .apord-fill {
        fill: #987333 !important;
    }

    html[data-ap-theme="light"] body #apAprishaOrderComboV1#apAprishaOrderComboV1 .apord-combo-btn[data-active="true"] {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: #e8d8b5 !important;
    }

    html[data-ap-theme="light"] body #heroScreen#heroScreen .ap-hero-signature {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        background: linear-gradient(145deg, #fffdf8, #eee5d2) !important;
        border-color: #b69b66 !important;
        text-shadow: none !important;
    }

    html[data-ap-theme="light"] body #heroScreen#heroScreen .ap-hero-signature :is(span,strong,b) {
        color: #76551f !important;
        -webkit-text-fill-color: #76551f !important;
        text-shadow: none !important;
    }
}

/* AP MOBILE WHITE V3 — exact finishing corrections. */
@media (max-width: 767px) {
    html[data-ap-theme="light"] body #projectsPage .project-dashboard-stats .project-stat-card > span {
        color: #59554d !important;
        -webkit-text-fill-color: #59554d !important;
        opacity: 1 !important;
    }
    /* Preserve native send/stop behavior and the original ready state. */
    html[data-ap-theme="light"] body .command-bar #sendBtn#sendBtn#sendBtn[data-ap-premium-send]:not([data-ap-premium-send="ready"]) {
        background: #f1e5cd !important;
        border-color: #ad8e51 !important;
        color: #76551f !important;
        box-shadow: 0 3px 10px #92733b20 !important;
    }
    html[data-ap-theme="light"] body .command-bar #sendBtn#sendBtn#sendBtn[data-ap-premium-send]:not([data-ap-premium-send="ready"]) > svg.ap-premium-send-final-arrow {
        color: #76551f !important;
    }
    /* Restore original signed-out account visibility policy. */
    html[data-ap-theme="light"] body #profileCard#profileCard.ap-profile-signed-out-v21:not(.ap-profile-signed-in-v21) .google-identity-section {
        display: none !important;
    }
    /* Only collapse the vacated sign-in wrapper when the real mount exists elsewhere. */
    html[data-ap-theme="light"] body #profileCard#profileCard.ap-profile-signed-out-v21:not(.ap-profile-signed-in-v21):has(#googleSignInButton) .google-signin-section:not(:has(#googleSignInButton,button,input,select,textarea,iframe,a,[role="button"],[tabindex],[contenteditable])) {
        display: none !important;
    }
}

/* AP MOBILE WHITE V4 — vacated Google mount only; preserve its availability. */
@media (max-width: 760px) {
    html[data-ap-theme="light"] body #profileCard#profileCard.ap-profile-signed-out-v21:not(.ap-profile-signed-in-v21):has(.ap-profile-stable-auth:not([hidden]) :is(.g_id_signin,iframe,.ap-profile-stable-google)) .google-signin-section:has(> #googleSignInButton:empty:only-child):not(:has(button,iframe,input,select,textarea,a,[role="button"],[tabindex],[contenteditable],.g_id_signin)) {
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border-width: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    html[data-ap-theme="light"] body #profileCard#profileCard.ap-profile-signed-out-v21:not(.ap-profile-signed-in-v21):has(.ap-profile-stable-auth:not([hidden]) :is(.g_id_signin,iframe,.ap-profile-stable-google)) .google-signin-section:has(> #googleSignInButton:empty:only-child):not(:has(button,iframe,input,select,textarea,a,[role="button"],[tabindex],[contenteditable],.g_id_signin)) > #googleSignInButton:empty {
        min-height: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border-width: 0 !important;
    }
}
