/* Generated shared semantic appearance from native-design.css; web navigation additions below. */
/* Plain WK content, Apple semantic colors. All actual glass is native. */
html.family-web-theme:not(.family-native-shell) {
  color-scheme:light;
  --ios-background:#fff;--ios-surface:#f2f2f7;--ios-grouped:#f2f2f7;
  --ios-label:#000;--ios-secondary:#3c3c4399;--ios-tertiary:#3c3c434d;
  --ios-separator:#3c3c434a;--ios-fill:#7676801f;
  --ios-blue:#007aff;--ios-red:#ff3b30;--ios-green:#34c759;--ios-orange:#ff9500;
}
html.family-web-theme:not(.family-native-shell)[data-theme="dark"] {
  color-scheme:dark;
  --ios-background:#000;--ios-surface:#1c1c1e;--ios-grouped:#000;
  --ios-label:#fff;--ios-secondary:#ebebf599;--ios-tertiary:#ebebf54d;
  --ios-separator:#54545899;--ios-fill:#7676803d;
  --ios-blue:#0a84ff;--ios-red:#ff453a;--ios-green:#30d158;--ios-orange:#ff9f0a;
}
html.family-web-theme:not(.family-native-shell),html.family-web-theme:not(.family-native-shell)[data-theme] {
  --bg:var(--ios-background);--panel:var(--ios-background);--panel-2:var(--ios-surface);
  --text:var(--ios-label);--muted:var(--ios-secondary);--line:var(--ios-separator);
  --brand:var(--ios-blue);--brand-dark:var(--ios-blue);--brand-ink:var(--ios-blue);
  --brand-soft:var(--ios-fill);--brand-border:var(--ios-separator);
  --danger:var(--ios-red);--good:var(--ios-green);
  --navigation-glass-fill:var(--ios-surface);--navigation-glass-highlight:none;
  --navigation-glass-shadow:none;--navigation-glass-filter:none;--navigation-glass-border:var(--ios-separator);
}
html.family-web-theme:not(.family-native-shell) body{background:var(--ios-background)!important;color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) :is(.card,.post,.composer,.profile-page,.chat-inbox,.own-call-directory,.own-cache-screen,.family-tree-mobile-browser,.family-tree-mobile-detail,.alice-glass-bubble,.post-comments-sheet,.mobile-context-menu,.mobile-family-sheet){background:var(--ios-background)!important;background-image:none!important;color:var(--ios-label)!important;border-color:var(--ios-separator)!important;box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) :is(.small,.muted,.post-meta,.comment-meta,.chat-last-message,.chat-time,.family-presence,.own-call-contact-presence,.own-call-history-meta){color:var(--ios-secondary)!important}
html.family-web-theme:not(.family-native-shell) :is(h1,h2,h3,h4,.post-author,.chat-name,.profile-name-display strong,.own-call-contact-name){color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) :is(input,textarea,select){background:var(--ios-surface)!important;color:var(--ios-label)!important;border-color:var(--ios-separator)!important;caret-color:var(--ios-blue);accent-color:var(--ios-blue)}
html.family-web-theme:not(.family-native-shell) :is(input,textarea)::placeholder{color:var(--ios-secondary)!important}
html.family-web-theme:not(.family-native-shell) :is(.avatar,.own-contact-avatar,.family-tree-avatar):not(:has(img)){background:var(--ios-surface)!important;color:var(--ios-label)!important;background-image:none!important}
html.family-web-theme:not(.family-native-shell) div:is(.family-org-avatar,.family-tree-mobile-result-avatar,.family-tree-mini-avatar,.family-tree-edit-avatar-image,.chat-header-avatar,.chat-avatar,.post-avatar,.profile-avatar){background:var(--ios-surface)!important;color:var(--ios-label)!important;background-image:none!important}
html.family-web-theme:not(.family-native-shell) :is(button.secondary,button.ghost,.filepick,.profile-name-display,.profile-icon-button,.profile-password-toggle,.profile-push-button,.post-comment-button,.reaction-summary,.reaction-button,.note-item,.own-cache-card){background:var(--ios-surface)!important;background-image:none!important;color:var(--ios-label)!important;border-color:var(--ios-separator)!important;box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) :is(.error,.danger,.message-context-delete,.profile-mobile-logout){color:var(--ios-red)!important}
html.family-web-theme:not(.family-native-shell) :is(.success,.profile-push-status){color:var(--ios-green)!important}
html.family-web-theme:not(.family-native-shell) :is(.post-comments-header,.album-head,.profile-notes-toggle,.alice-current-status,.alice-tabs button,.alice-event-types button,.alice-event-types button > span){background:var(--ios-surface)!important;background-image:none!important;box-shadow:none!important;color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) :is(.alice-tabs button.active,.alice-event-types button.active){background:var(--ios-fill)!important;color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) .messages{background:var(--ios-background)!important}
html.family-web-theme:not(.family-native-shell) .family-custom-chat-background .messages{background:transparent!important}
html.family-web-theme:not(.family-native-shell) .own-call-overlay:not(.own-conference-with-video){background:var(--ios-background)!important;color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) .own-call-overlay:not(.own-conference-with-video) :is(h2,[data-status],.own-call-kind,.own-conference-members){color:var(--ios-label)!important;text-shadow:none!important}
html.family-web-theme:not(.family-native-shell) .own-call-overlay .call-control{background:var(--ios-surface)!important;color:var(--ios-label)!important;box-shadow:none!important;border-color:var(--ios-separator)!important}
html.family-web-theme:not(.family-native-shell) .own-call-overlay .call-control:is(.danger,.call-end-button){background:var(--ios-red)!important;color:#fff!important}
html.family-web-theme:not(.family-native-shell) .own-conference-with-video .call-control{background:#2c2c2e!important;color:#fff!important}
html.family-web-theme:not(.family-native-shell) .own-conference-with-video :is(h2,[data-status]){color:#fff!important}
html.family-web-theme:not(.family-native-shell) .own-call-overlay .own-call-avatar{background:var(--ios-surface)!important;color:var(--ios-label)!important;box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) .own-call-overlay .own-call-answer{color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) .own-call-answer-icon{color:#fff!important}
html.family-web-theme:not(.family-native-shell) :is(.family-games,.game-invite-banner,.game-topbar-navigation){--game-glass:var(--ios-surface);--game-border:var(--ios-separator);--game-shadow:none}
html.family-web-theme:not(.family-native-shell) :is(.game-card,.game-invite-banner){background:var(--ios-surface)!important;background-image:none!important;color:var(--ios-label)!important;border-color:var(--ios-separator)!important;box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) .game-bubble{box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) .own-conference-controls{background:transparent!important;border:0!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){html.family-web-theme:not(.family-native-shell) *,html.family-web-theme:not(.family-native-shell) *::before,html.family-web-theme:not(.family-native-shell) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


html.family-web-theme:not(.family-native-shell) :is(.chat-header,.mobile-family-panel,.profile-info-dialog){background:var(--ios-surface)!important;background-image:none!important;color:var(--ios-label)!important;border-color:var(--ios-separator)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.family-web-theme:not(.family-native-shell) :is(.mobile-bottom-item.active,.mobile-header-button.active,.tabs button.active,.person-action-icon,.own-call-segment[aria-selected=true]){color:var(--ios-blue)!important}
html.family-web-theme:not(.family-native-shell) :is(.chat-row,.own-call-contact){background:transparent!important;box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) :is(.chat-row:hover,.note-item:hover){background:var(--ios-fill)!important}
html.family-web-theme:not(.family-native-shell) :is(.chat-row-preview,.chat-row-side time,.own-call-presence,.own-call-history-direction){color:var(--ios-secondary)!important}
html.family-web-theme:not(.family-native-shell) .own-call-history-row.is-missed :is(strong,.own-call-history-direction){color:var(--ios-red)!important}
html.family-web-theme:not(.family-native-shell) :is(.error,.danger,.profile-logout){color:var(--ios-red)!important}
html.family-web-theme:not(.family-native-shell) .profile-form-page{--panel:var(--ios-background);--panel-2:var(--ios-surface);--text:var(--ios-label);--muted:var(--ios-secondary);--line:var(--ios-separator);--brand:var(--ios-blue);background:var(--ios-grouped)!important}
html.family-web-theme:not(.family-native-shell)[data-theme=dark] .profile-form-page{--panel:var(--ios-surface)}
html.family-web-theme:not(.family-native-shell).app-loading,html.family-web-theme:not(.family-native-shell).app-loading :is(body,#app),html.family-web-theme:not(.family-native-shell) .app-splash{background:var(--ios-background)!important;color:var(--ios-label)!important}
@media(prefers-contrast:more){html.family-web-theme:not(.family-native-shell){--ios-secondary:var(--ios-label);--ios-separator:var(--ios-label)}}
/* Message content remains in WKWebView; native controls retain system rendering. */
html.family-web-theme:not(.family-native-shell) body.chat-open-page .messages > .message:not(.mine):not(.visual-media-message){background:#e9e9eb!important;background-image:none!important;border:0!important;color:#000!important}
html.family-web-theme:not(.family-native-shell)[data-theme="dark"] body.chat-open-page .messages > .message:not(.mine):not(.visual-media-message){background:#2c2c2e!important;color:#fff!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .messages > .message.mine:not(.visual-media-message){background:#007aff!important;color:#fff!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message.mine:not(.visual-media-message) :is(.message-text,.message-text a,.message-text .chat-web-link,.message-head > strong,.message-reply-quote strong,.message-reply-quote span){color:#fff!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message.mine:not(.visual-media-message) .message-text :is(a,.chat-web-link){text-decoration:underline}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message.mine:not(.visual-media-message) :is(.message-meta,.message-status){color:rgba(255,255,255,.8)!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message.mine:not(.visual-media-message) .message-reply-quote{background:rgba(0,0,0,.12)!important;border-color:rgba(255,255,255,.6)!important}

/* Quotes and links also occur in incoming messages and media captions. */
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message .message-reply-quote{background:rgba(128,128,128,.16)!important;border-color:currentColor!important;color:inherit!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message .message-reply-quote :is(strong,span){color:inherit!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message .message-text :is(a,a:visited,.chat-web-link){color:#007aff!important;text-decoration:underline}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message.mine .message-text :is(a,a:visited,.chat-web-link){color:#fff!important}

/* Media metadata sits outside bubbles and must not inherit the web brand pink. */
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message :is(.message-meta,.message-status){color:#6c6c70!important}
html.family-web-theme:not(.family-native-shell)[data-theme="dark"] body.chat-open-page .message :is(.message-meta,.message-status){color:#aeaeb2!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message .message-status.read{color:#007aff!important}
html.family-web-theme:not(.family-native-shell) body.chat-open-page .message.mine:not(.visual-media-message) :is(.message-meta,.message-status,.message-status.read){color:rgba(255,255,255,.8)!important}

html.family-web-theme:not(.family-native-shell) .visual-media-message{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}

/* Retain the accepted semantic palette while restoring web navigation material. */
html.family-web-theme:not(.family-native-shell),html.family-web-theme:not(.family-native-shell)[data-theme]{--navigation-glass-fill:rgba(255,255,255,.20);--navigation-glass-highlight:linear-gradient(120deg,rgba(255,255,255,.34),rgba(255,255,255,.05) 46%,rgba(128,128,128,.08));--navigation-glass-border:rgba(255,255,255,.72);--navigation-glass-shadow:0 16px 42px rgba(46,46,46,.22),inset 0 1px 0 rgba(255,255,255,.78);--navigation-glass-filter:blur(26px) saturate(180%)}
html.family-web-theme:not(.family-native-shell)[data-theme=dark]{--navigation-glass-fill:rgba(28,28,30,.22);--navigation-glass-highlight:linear-gradient(120deg,rgba(255,255,255,.055),transparent 48%,rgba(128,128,128,.09));--navigation-glass-border:rgba(255,255,255,.12);--navigation-glass-shadow:0 18px 44px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.09)}
html.family-web-theme:not(.family-native-shell) .topbar{background:transparent!important}
html.family-web-theme:not(.family-native-shell) :is(.topbar-inner,.mobile-header-cluster,.mobile-header-add-button,.mobile-bottom-nav,.own-call-segments,.person-action-icon,.post-action-button){background:var(--navigation-glass-fill)!important;border-color:var(--navigation-glass-border)!important;box-shadow:var(--navigation-glass-shadow)!important;backdrop-filter:var(--navigation-glass-filter)!important;-webkit-backdrop-filter:var(--navigation-glass-filter)!important;color:var(--ios-label)}
@media(prefers-reduced-transparency:reduce){html.family-web-theme:not(.family-native-shell)[data-theme]{--navigation-glass-fill:var(--ios-surface);--navigation-glass-filter:none;--navigation-glass-highlight:none;--navigation-glass-shadow:none}}

/* On mobile the header is two separate floating controls, not one wide pane. */
@media(max-width:699px){
html.family-web-theme:not(.family-native-shell) :is(.topbar-inner,.mobile-header-actions){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.family-web-theme:not(.family-native-shell) .topbar-inner::before{display:none!important;background:none!important;box-shadow:none!important}
}

/* Call directory: keep the sticky switch translucent, including its selection. */
html.family-web-theme:not(.family-native-shell) body.call-page .own-call-segments{top:6px;background:rgba(255,255,255,.12)!important;backdrop-filter:blur(26px) saturate(180%)!important;-webkit-backdrop-filter:blur(26px) saturate(180%)!important}
html.family-web-theme:not(.family-native-shell)[data-theme=dark] body.call-page .own-call-segments{background:rgba(28,28,30,.14)!important}
html.family-web-theme:not(.family-native-shell) body.call-page .own-call-segment[aria-selected=true]{background:rgba(255,255,255,.18)!important;background-image:none!important;border-color:rgba(255,255,255,.65)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 12px rgba(0,0,0,.1)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
html.family-web-theme:not(.family-native-shell)[data-theme=dark] body.call-page .own-call-segment[aria-selected=true]{background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 12px rgba(0,0,0,.22)!important}
@media(prefers-reduced-transparency:reduce){html.family-web-theme:not(.family-native-shell)[data-theme] body.call-page .own-call-segments{background:var(--ios-surface)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.family-web-theme:not(.family-native-shell)[data-theme] body.call-page .own-call-segment[aria-selected=true]{background:var(--ios-background)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* Calls must scroll behind the floating top controls for their backdrop to be visible. */
@media(max-width:699px){
html.family-web-theme:not(.family-native-shell) body.call-page .shell{padding-top:0}
html.family-web-theme:not(.family-native-shell) body.call-page .layout{height:calc(var(--app-viewport-height,100dvh) - 84px - env(safe-area-inset-bottom));padding:0 10px}
html.family-web-theme:not(.family-native-shell) body.call-page .own-call-directory.own-call-list-card{padding-top:0;scroll-padding-top:calc(74px + env(safe-area-inset-top))}
html.family-web-theme:not(.family-native-shell) body.call-page .own-call-segments{top:calc(74px + env(safe-area-inset-top));margin-top:calc(76px + env(safe-area-inset-top))}
html.family-web-theme:not(.family-native-shell) body.call-page :is(.topbar,.topbar-inner){isolation:auto}
}

/* Let list content reach beneath the bottom glass; do not stack an opaque highlight. */
@media(max-width:699px){
html.family-web-theme:not(.family-native-shell) body.call-page .layout{height:var(--app-viewport-height,100dvh)}
html.family-web-theme:not(.family-native-shell) body.chat-page:not(.chat-open-page) .layout{height:var(--app-viewport-height,100dvh);padding-bottom:0}
html.family-web-theme:not(.family-native-shell) body.chat-page:not(.chat-open-page) .chat-inbox{padding:0;border:0}
html.family-web-theme:not(.family-native-shell) body.chat-page:not(.chat-open-page) .chat-list{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
html.family-web-theme:not(.family-native-shell) body:is(.call-page,.chat-page) .mobile-bottom-nav::before{display:none!important;background:none!important}
html.family-web-theme:not(.family-native-shell) body:is(.call-page,.chat-page) .mobile-bottom-item:not(.active){background:transparent!important;box-shadow:none!important}
html.family-web-theme:not(.family-native-shell) body:is(.call-page,.chat-page) .mobile-bottom-item.active{background:rgba(255,255,255,.12)!important;background-image:none!important;border-color:var(--navigation-glass-border)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)!important}
html.family-web-theme:not(.family-native-shell)[data-theme=dark] body:is(.call-page,.chat-page) .mobile-bottom-item.active{background:rgba(255,255,255,.06)!important}
}

/* Open chat composer: glass belongs to each control, not a solid full-width form. */
html.family-web-theme:not(.family-native-shell) body.chat-page.chat-open-page :is(.message-form,.message-composer-bar){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.family-web-theme:not(.family-native-shell) body.chat-page.chat-open-page .message-composer-bar>:is(input[name=text],.chat-filepick,button){background:var(--navigation-glass-fill)!important;background-image:none!important;border-color:var(--navigation-glass-border)!important;box-shadow:var(--navigation-glass-shadow)!important;backdrop-filter:var(--navigation-glass-filter)!important;-webkit-backdrop-filter:var(--navigation-glass-filter)!important;color:var(--ios-label)!important}
html.family-web-theme:not(.family-native-shell) body.chat-page.chat-open-page .message-composer-bar>.message-send-button{color:var(--ios-blue)!important}
html.family-web-theme:not(.family-native-shell) body.chat-page.chat-open-page .message-composer-bar>.message-record-button.recording{background:var(--ios-red)!important;color:#fff!important}
