/* Light surfaces must remain readable over a saved dark wallpaper. */
html[data-look][data-theme=light]{color-scheme:light;--d-surface:#f7f8fa;--d-panel:#eef0f3;--d-input:#fff;--d-message:#fff;--d-own:#e2ebe6;--d-ink:#202b33;--d-muted:#596873;--d-line:#d2d9de;--d-back:#e7ebef;--menu-surface121:#f3f4f6;--menu-hover121:#e1e5e9;--menu-ink121:#202b33;--menu-muted121:#596873}
html[data-look][data-theme=light][data-palette=green]{--d-own:#e0eddf;--d-accent:#386449;--d-active:#dce9df}
html[data-look][data-theme=light] .design-backdrop::after{background:#f7f8fa;opacity:.9}
html[data-look][data-theme=light] #messages{background-color:transparent!important}
html[data-look][data-theme=light] :is(.chat-header,#compose,.tools-heading){background:var(--d-surface)!important}
html[data-look][data-theme=light] :is(#composeField83,input,select,textarea){background-color:var(--d-input);color:var(--d-ink)}
html[data-look][data-theme=light] #messages .message:not(.join-notice):not(.sticker117):not(:has(.image-preview,video)){background:var(--d-message)!important}
html[data-look][data-theme=light] #messages .message.own:not(.join-notice):not(.sticker117):not(:has(.image-preview,video)){background:var(--d-own)!important}
html[data-interface-mode=space][data-look][data-theme=light] #messages .message:not(.join-notice):not(.sticker117):not(:has(.image-preview,video)){background:transparent!important}
html[data-look][data-theme=light] #messages :is(.body,.space-author121){color:var(--d-ink)}
/* Keep native video navigation large enough; text-sized Space rows collapse it. */
html[data-look] #messages .message:not(.join-notice):has(.video-frame118){width:min(100% - 38px,480px)!important;max-width:min(100% - 38px,480px)!important}
html[data-look] #messages .video-frame118{min-width:0;width:100%;color-scheme:dark}
html[data-look] #messages .message.video-quiet102 .message-status92 .open-media99{display:inline-flex!important;width:36px;min-width:36px;height:36px;min-height:36px;color:var(--d-accent);opacity:1}
@media(max-width:600px){html[data-look] #messages .message:not(.join-notice):has(.video-frame118){width:100%!important;max-width:100%!important}html[data-interface-mode=space][data-look] #messages .message:not(.join-notice):has(.video-frame118){width:calc(100% - 36px)!important;max-width:calc(100% - 36px)!important}}
/* Incoming Messenger videos reserve the avatar gutter inside available width. */
@media(max-width:600px){html[data-interface-mode=messenger][data-look] #messages .message.has-avatar:not(.own):not(.join-notice):has(.video-frame118){width:calc(100% - 36px)!important;max-width:calc(100% - 36px)!important;min-width:0!important}}
