/* Default native presentation; custom bubble CSS is still applied by the original appearance engine. */
#phone .xy-native-chat .chat-screen-topbar { min-height:48px; display:flex; align-items:center; padding:6px 14px; background:var(--ios-group); border-bottom:1px solid var(--ios-line); }
#phone .xy-native-chat .xy-chat-heading { flex:1; min-width:0; display:flex; justify-content:center; align-items:center; gap:8px; }
#phone .xy-chat-heading #chat-masthead-title { margin:0; font:600 17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ios-ink); }
#phone .xy-chat-heading .chat-header-face { width:30px; height:30px; margin:0; border:0; border-radius:5px; background:var(--ios-surface); box-shadow:none; transform:none; }
#phone .xy-chat-heading .chat-header-avatar-img { width:30px; height:30px; border-radius:5px; }
#phone .xy-chat-heading .chat-header-initial { font-size:15px; }
#phone .xy-native-chat .chat-glass-topbar-title { display:none!important; }
#phone .xy-native-chat .chat-topbar-left,#phone .xy-native-chat .chat-topbar-right { position:static; flex:0 0 60px; }
#phone .xy-native-chat .chat-topbar-right { text-align:right; }
#phone .xy-native-chat #chat-thread-detail-open { width:40px; height:38px; border:0; border-radius:0; background:none; color:var(--ios-ink); box-shadow:none; transform:none; }
#phone .xy-native-chat #chat-thread-detail-open i { font-size:25px; }
#phone .xy-native-chat .chat-body-stack,#phone .xy-native-chat .chat-main { min-height:0; flex:1; background:var(--ios-group); }
#phone .xy-native-chat .chat-scroll { padding:0; display:flex; flex-direction:column; min-height:0; }
#phone .xy-native-chat .chat-identity-wrap[hidden] { display:none!important; }
#phone .xy-native-chat .chat-messages-stack { flex:1; min-height:0; margin:0; border:0; border-radius:0; }
#phone .xy-native-chat .chat-messages { padding:20px 12px; gap:18px; }
#phone .xy-native-chat .chat-msg-inner { gap:9px; max-width:100%; }
#phone .xy-native-chat .chat-msg-avatar { width:38px; height:38px; border-radius:5px; border:0; box-shadow:none; }
#phone .xy-native-chat .chat-msg-avatar-col { flex-basis:38px; width:38px; }
#phone .xy-native-chat .chat-msg-bubble-stack { max-width:calc(100% - 54px); }
#phone .xy-native-chat .chat-msg-bubble:not(.chat-msg-bubble--sticker) { border:0; border-radius:5px; background:var(--ios-surface); color:var(--ios-ink); box-shadow:none; padding:11px 13px; font-size:16px; line-height:1.5; }
#phone .xy-native-chat .chat-msg--user .chat-msg-bubble:not(.chat-msg-bubble--sticker) { background:#95ec69; color:#152211; }
#phone .xy-native-chat .chat-msg-meta { font-size:11px; color:var(--ios-secondary); letter-spacing:0; }
#phone .xy-native-chat .chat-msg-block-badge { border:0; background:none; color:var(--ios-secondary); }
#phone .xy-native-chat #chat-composer { flex:0 0 auto; padding:10px 12px 20px; background:var(--ios-group); border-top:1px solid var(--ios-line); box-shadow:none; }
#phone .xy-compose-row { display:flex; align-items:flex-end; gap:8px; }
#phone .xy-compose-row .chat-input-ruled { flex:1; min-width:0; padding:0; background:var(--ios-surface); border:0; border-radius:6px; }
#phone .xy-compose-row #chat-input { box-sizing:border-box; width:100%; min-height:40px; height:40px; max-height:130px; padding:9px 11px; resize:none; border:0; background:transparent; color:var(--ios-ink); font-size:16px; line-height:22px; }
#phone .xy-compose-row .chat-composer-fabs { display:flex; flex:0 0 auto; gap:7px; padding:0; position:static; }
#phone .xy-compose-row #chat-more { width:38px; height:40px; border:0; background:transparent; color:var(--ios-ink); box-shadow:none; }
#phone .xy-compose-row #chat-send { width:auto; height:38px; padding:0 12px; border:0; border-radius:5px; background:#078347; color:white; box-shadow:none; font-size:14px; }
#phone .xy-native-detail { background:var(--ios-group); }
#phone :is(.chat-detail-toolbar,.chat-thread-detail-toolbar) { background:var(--ios-surface); border-bottom:1px solid var(--ios-line); box-shadow:none; }
#phone .chat-detail-scroll { padding:16px; background:var(--ios-group); }
#phone :is(.chat-detail-hero-stamp,.chat-detail-group-idx,.chat-memo-eyebrow,.chat-memo-atmosphere,.chat-detail-hero::before,.chat-detail-hero::after) { display:none!important; }
#phone .chat-detail-hero { padding:10px 0 20px; border:0; background:none; box-shadow:none; }
#phone .chat-detail-hero-title { font:600 21px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-ink); }
#phone .xy-detail-section { margin:0 0 15px; background:var(--ios-surface); border-radius:12px; overflow:hidden; }
#phone .xy-detail-summary { padding:17px 16px; font-size:16px; font-weight:600; color:var(--ios-ink); cursor:pointer; }
#phone .xy-detail-section .chat-detail-group { margin:0; padding:0; }
#phone .xy-detail-section .chat-detail-group-head[hidden] { display:none!important; }
#phone .chat-detail-slab { background:none; border:0; padding:0 16px; box-shadow:none; border-radius:0; }
#phone .chat-detail-field { padding:15px 0; border:0; border-bottom:1px solid var(--ios-line); background:none; }
#phone .chat-detail-field-k { font:500 15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-ink); letter-spacing:0; }
#phone .chat-detail-lead { color:var(--ios-secondary); font-size:13px; line-height:1.5; }
#phone :is(.chat-inner-voice-panel,.chat-inner-voice-history-screen-panel) { background:var(--ios-surface); border:0; border-radius:18px 18px 0 0; box-shadow:0 -8px 35px #0002; }
#phone :is(.chat-inner-voice-mount,.chat-inner-voice-slab-panel,.chat-inner-voice-inset,.chat-memo-workspace,.chat-memo-workspace-inner,.chat-memo-hero-card,.chat-memo-automation) { background:var(--ios-surface); color:var(--ios-ink); border:0; box-shadow:none; border-radius:0; }
#phone :is(.chat-inner-voice-panel,.chat-inner-voice-history-screen-panel) .chat-slab { display:block; padding:0; }
#phone :is(.chat-inner-voice-panel,.chat-inner-voice-history-screen-panel) .chat-slab-spine { display:none; }
#phone .chat-inner-voice-capbar { display:flex; padding:18px 16px; border-bottom:1px solid var(--ios-line); background:var(--ios-surface); }
#phone .chat-inner-voice-cap-title { font-size:17px; font-family:inherit; }
#phone .chat-inner-voice-tabs { display:flex; padding:4px; margin:14px 16px; gap:4px; background:var(--ios-group); border:0; border-radius:9px; }
#phone .chat-inner-voice-tab { flex:1; border:0; border-radius:7px; background:none; color:var(--ios-secondary); font:500 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
#phone .chat-inner-voice-tab.is-active { background:var(--ios-surface); color:var(--ios-ink); box-shadow:0 1px 3px #0001; }
#phone .chat-inner-voice-bubble { border:0; border-radius:10px; background:var(--ios-group); padding:16px; box-shadow:none; }
#phone .chat-inner-voice-bubble-label { font-family:inherit; font-size:14px; letter-spacing:0; color:var(--ios-secondary); }
#phone .chat-inner-voice-bubble-text { font-family:inherit; font-size:16px; line-height:1.7; color:var(--ios-ink); }
#phone .chat-memo-shell { padding:0; }
#phone .chat-memo-title { font-family:inherit; font-size:23px; }
#phone .chat-memo-action-bar { display:flex; flex-wrap:wrap; gap:8px; }
#phone .chat-memo-automation { padding:16px; margin:16px 0; border-radius:12px; }
#phone [data-xy-retired="true"] { display:none!important; }
body #phone .xy-chat-heading #chat-masthead-title { font-size:17px!important; line-height:24px!important; }
body #phone .xy-native-chat #chat-input { border-radius:6px!important; min-height:40px!important; height:40px; padding:9px 11px; font-style:normal; }
body #phone .xy-native-chat #chat-send { transform:none!important; border-radius:5px!important; background:#078347!important; }
body #phone .xy-native-chat #chat-thread-detail-open { transform:none!important; background:none!important; box-shadow:none!important; border-radius:0!important; }


body #phone .xy-native-chat .chat-msg-inner { width:100%; }
body #phone .xy-native-chat .chat-msg { width:100%; }
body #phone .xy-native-chat .chat-msg--user .chat-msg-inner { justify-content:flex-start; }
body #phone .xy-native-chat .chat-msg-bubble-stack { max-width:calc(100% - 55px); }
body #phone .xy-native-chat .chat-msg-bubble:not(.chat-msg-bubble--sticker) { border-radius:5px; box-shadow:none; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-bubble:not(.chat-msg-bubble--sticker) { border:0!important; border-radius:5px!important; background:var(--ios-surface)!important; color:var(--ios-ink)!important; box-shadow:none!important; transform:none!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg--user .chat-msg-bubble:not(.chat-msg-bubble--sticker) { background:#95ec69!important; color:#152211!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-avatar { display:grid!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) img.chat-msg-avatar { display:block!important; }
body #phone #chat-screen.xy-native-chat .chat-messages { margin:0!important; padding:20px 12px!important; transform:none!important; }
body #phone #chat-screen.xy-native-chat .chat-messages-stack { margin:0!important; }
body #phone #chat-screen.xy-native-chat #chat-input { box-sizing:border-box!important; flex:none!important; min-height:40px!important; height:40px!important; line-height:22px!important; padding:9px 11px!important; }
body #phone #chat-screen.xy-native-chat #chat-input::placeholder { font-style:normal; }
body #phone #chat-screen.xy-native-chat #chat-thread-detail-open .chat-thread-detail-tape-btn-sheen { display:none!important; }
body #phone #chat-screen.xy-native-chat .chat-main { display:flex!important; flex-direction:column!important; }
body #phone #chat-screen.xy-native-chat .chat-scroll { flex:1 1 0%!important; }
body #phone #chat-screen.xy-native-chat #chat-composer { margin:0!important; position:relative; inset:auto; }
body #phone #chat-screen.xy-native-chat #chat-thread-detail-open { display:inline-grid!important; place-items:center; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg--user .chat-msg-inner { flex-direction:row!important; justify-content:flex-end; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg--assistant .chat-msg-inner { flex-direction:row!important; justify-content:flex-start; }
body #phone #chat-screen.xy-native-chat .chat-time-divider { border:0; background:none; padding:4px; margin:0 0 15px; }
body #phone #chat-screen.xy-native-chat .chat-time-divider::before,body #phone #chat-screen.xy-native-chat .chat-time-divider::after { display:none; }
body #phone #chat-screen.xy-native-chat .chat-time-divider-label { background:none; border:0; border-radius:0; box-shadow:none; padding:0; font:400 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-secondary); }
body #phone #chat-screen.xy-native-chat #chat-input { background:var(--ios-surface)!important; }
body #phone #chat-char-inner-voice .chat-inner-voice-panel.xy-voice-panel { width:100%; max-width:100%; height:min(78dvh,680px); max-height:calc(100% - 60px); overflow:hidden; border-radius:18px 18px 0 0; margin-top:auto; }
body #phone #chat-char-inner-voice { align-items:flex-end; padding:0; }
body #phone #chat-char-inner-voice .chat-inner-voice-capbar { display:flex!important; flex:0 0 auto; align-items:center; gap:12px; margin:0; padding:16px; }
body #phone #chat-char-inner-voice .chat-inner-voice-cap-title { flex:1; margin:0; color:var(--ios-ink); font:600 17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body #phone #chat-char-inner-voice .chat-inner-voice-close { flex:0 0 34px; width:34px; height:34px; border:0; border-radius:50%; background:var(--ios-group); color:var(--ios-ink); }
body #phone #chat-char-inner-voice .chat-inner-voice-tabs { flex:0 0 auto; }
body #phone #chat-char-inner-voice .chat-inner-voice-pane:not([hidden]) { display:block; flex:1 1 auto; min-height:0; height:auto; overflow:auto; padding:0 16px 24px; }
body #phone #chat-char-inner-voice .chat-inner-voice-inset { display:block; height:auto; max-height:none; overflow:visible; padding:0; }
body #phone #chat-char-inner-voice .chat-inner-voice-body { display:flex; height:auto; min-height:160px; flex:none; overflow:visible; gap:12px; padding:16px 0; }
body #phone #chat-char-inner-voice .chat-inner-voice-toolbar { padding:0 0 12px; }
body #phone #chat-char-inner-voice .chat-inner-voice-hint { font-style:normal; }
body #phone .xy-native-detail .chat-detail-hero.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; overflow:hidden!important; clip-path:inset(50%); }
body #phone #chat-char-inner-voice .chat-composer-cap-l { display:none!important; }
body #phone #chat-char-inner-voice .chat-inner-voice-mood { font-style:normal; color:var(--ios-secondary); padding:10px 0; }
body #phone #chat-char-inner-voice .chat-inner-voice-cap-title { text-align:left; max-width:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body #phone #chat-char-inner-voice .chat-inner-voice-hero:not([hidden]) { flex:0 0 100px; max-height:100px; overflow:hidden; }
body #phone .xy-chat-usage { color:var(--ios-secondary); font-size:12px; padding:14px 0; }
body #phone #chat-screen.xy-native-chat :is(.chat-main,.chat-body-stack) { overflow:clip!important; }
body #phone #chat-screen.xy-native-chat #chat-msg-multi-bar[hidden] { display:none!important; }
/* One WeChat presentation; no competing iMessage skin in the component bridge. */
body #phone #chat-screen.xy-native-chat .settings-topbar-meta[hidden] { display:none!important; }
body #phone #chat-screen.xy-native-chat .settings-ambient,
body #phone #chat-screen.xy-native-chat .chat-filmgrain { display:none!important; }
body #phone #chat-screen.xy-native-chat :is(.chat-topbar-left,.chat-topbar-right) { flex:0 0 52px; }
body #phone #chat-screen.xy-native-chat #chat-close { display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0; padding:0; background:none; border:0; box-shadow:none; color:var(--ios-ink); }
body #phone #chat-screen.xy-native-chat #chat-close span { display:none; }
body #phone #chat-screen.xy-native-chat #chat-close i { font-size:24px; }
body #phone #chat-screen.xy-native-chat #chat-thread-detail-open i { font-size:26px; }
body #phone #chat-screen.xy-native-chat #chat-header-char-face { flex:none; width:28px; height:28px; overflow:hidden; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-inner { gap:9px!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg--user .chat-msg-inner { flex-direction:row!important; justify-content:flex-end!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-bubble-stack { flex:0 1 auto; max-width:calc(100% - 54px); }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-avatar-col { display:flex!important; flex:0 0 38px; width:38px; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-avatar { flex:none; border-radius:5px!important; }
body #phone #chat-screen.xy-native-chat #chat-composer { padding:8px 12px max(20px,env(safe-area-inset-bottom)); }
body #phone #chat-screen.xy-native-chat #chat-more { min-width:44px; min-height:44px; }
body #phone #chat-screen.xy-native-chat #chat-header-char-face[hidden] { display:none!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-inner { align-items:flex-start!important; }
body #phone #chat-screen.xy-native-chat:not(.xy-custom-chat) .chat-msg-avatar { margin-top:0!important; align-self:flex-start!important; }
body #phone #chat-thread-detail-panel .chat-detail-lead { font-family:inherit!important; font-size:var(--f7-block-footer-font-size,13px)!important; font-style:normal!important; letter-spacing:normal!important; }
