/* Shared native surfaces for the retained tools and dialogs. No styling of authored HTML messages. */
body #phone { contain:layout paint; }
body #phone .ios-pages,body #phone .ios-app,body #phone .ios-dock,body #phone .ios-widget { background-size:cover; background-position:center; }
body #phone #relation-screen .relation-masthead::before,body #phone #relation-screen .relation-masthead::after { display:none!important; }
body #phone :is(.relation-feed-idx,.relation-section-label>i) { display:none; }
body #phone #relation-screen .relation-feed-item { display:flex; align-items:center; gap:12px; padding:16px; border:0; border-bottom:1px solid var(--ios-line); border-radius:0; background:var(--ios-surface); box-shadow:none; transform:none; }
body #phone #relation-screen .relation-feed-item::before,body #phone #relation-screen .relation-feed-item::after,body #phone #relation-screen .relation-av-orbit::before,body #phone #relation-screen .relation-av-orbit::after { display:none; }
body #phone #relation-screen .relation-av-orbit { width:48px; height:48px; padding:0; border:0; background:none; }
body #phone #relation-screen .relation-av { width:48px; height:48px; border-radius:7px; box-shadow:none; }
body #phone #relation-screen .relation-feed-name { font:500 17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-ink); }
body #phone #relation-screen .relation-feed-sub { font-size:13px; color:var(--ios-secondary); }
body #phone :is(.chat-more-drawer,.drawer-head h2,.sticker-title,.redpack-title,.mask-switch-title) { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-style:normal; letter-spacing:0; }
body #phone .chat-more-drawer .drawer-head h2 { font-size:17px; font-weight:600; }
body #phone :is(.minimax-card,.chat-send-choice-card,.chat-more-sheet-card,.mask-switch-card,.wallet-bills-card,.sticker-add-card,.sticker-export-card,.char-st-unlock-card,.chat-detail-panel,.sticker-card,.chat-memo-prompt-modal-card,.chat-bubble-actions-card,.relation-link-set-sheet) {
 background:var(--ios-surface)!important; color:var(--ios-ink); border:0!important; border-radius:16px!important; backdrop-filter:none!important; box-shadow:0 16px 50px #0002!important; transform:none;
}
body #phone :is(.minimax-title,.sticker-title,.wallet-bills-title,.mask-switch-title,.chat-bubble-actions-title,.chat-memo-prompt-modal-title) { font:600 18px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:0; }
body #phone :is(.minimax-head,.sticker-head,.wallet-bills-head,.mask-switch-head) { border-bottom:1px solid var(--ios-line); padding:16px; }
body #phone :is(.minimax-body,.sticker-body,.wallet-bills-body,.mask-switch-body) { padding:16px; }
body #phone :is(.minimax-label,.settings-api-label,.char-label,.world-book-label) { color:var(--ios-ink); font-size:14px; font-weight:500; letter-spacing:0; font-family:inherit; }
body #phone :is(.settings-api-input,.settings-ai-select,.char-textarea,.char-input,.minimax-input,.minimax-textarea,.chat-detail-textarea,.chat-detail-input) { background:var(--ios-group); color:var(--ios-ink); border:1px solid var(--ios-line); border-radius:8px; box-shadow:none; font-family:inherit; font-size:15px; padding:11px 12px; box-sizing:border-box; max-width:100%; }
body #phone :is(.settings-panel,.char-studio-panel,.world-book-card,.world-book-editor,.relation-char-card) { background:var(--ios-surface); border:0; border-radius:12px; box-shadow:none; }
body #phone :is(.settings-sec-head,.settings-panel,.settings-section,.char-studio-card,.world-book-card) { transform:none; }
body #phone :is(.settings-masthead-title,.world-book-title,.relation-masthead-title) { font-family:inherit!important; font-size:26px!important; letter-spacing:-.4px; }
body #phone :is(.relation-masthead-en,.relation-verse,.relation-section-label-k,.world-book-kicker,.world-book-watermark) { display:none!important; }
body #phone .relation-masthead { padding:18px 20px; border:0; background:none; }
body #phone .relation-pane { background:var(--ios-group); }
body #phone .relation-feed { display:flex; flex-direction:column; gap:0; background:var(--ios-surface); }
body #phone .relation-char-card { border-bottom:1px solid var(--ios-line)!important; border-radius:0!important; padding:16px; transform:none; }
body #phone .relation-char-card::before,body #phone .relation-char-card::after { display:none; }
body #phone .chat-thread-li { transform:none!important; margin:0; border:0!important; border-radius:0!important; background:var(--ios-surface)!important; box-shadow:none!important; }
body #phone .chat-thread-card { min-height:78px; padding:13px 12px; border:0; border-bottom:1px solid var(--ios-line); border-radius:0; background:var(--ios-surface); box-shadow:none; transform:none; text-align:left; }
body #phone .chat-thread-card-k,body #phone .chat-thread-card-count { display:none; }
body #phone .chat-thread-card-name { margin:0 0 7px; font:500 17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-ink); }
body #phone .chat-thread-card-snippet { margin:0; font-size:14px; color:var(--ios-secondary); font-style:normal; }
body #phone .chat-thread-card-meta { font-size:11px; color:var(--ios-secondary); }
body #phone .chat-thread-card::before,body #phone .chat-thread-card::after { display:none; }
body #phone .chat-thread-card { display:flex; align-items:center; gap:12px; width:100%; }
body #phone .xy-thread-avatar { flex:0 0 48px; height:48px; border-radius:7px; display:grid; place-items:center; font-size:22px; color:var(--ios-ink); background:var(--ios-group); }
body #phone .xy-thread-copy { flex:1; min-width:0; display:flex; flex-direction:column; }
body #phone .xy-thread-copy .chat-thread-card-snippet { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body #phone .chat-thread-card-meta { align-self:flex-start; margin-top:3px; white-space:nowrap; }
body #phone .chat-thread-li.is-pinned .chat-thread-card { background:var(--ios-group); }
body #phone .chat-thread-bead { width:28px; height:28px; border:0; background:transparent; box-shadow:none; }
body #phone .chat-thread-bead-wrap { right:4px; bottom:5px; }
body #phone .world-book-shelf-grid { display:flex; flex-direction:column; gap:0; padding:0; background:var(--ios-surface); }
body #phone .world-book-li { margin:0; padding:0; border-bottom:1px solid var(--ios-line); }
body #phone .world-book-tile-wrap { display:flex; align-items:center; }
body #phone .world-book-tile { flex:1; height:auto; min-height:90px; background:var(--ios-surface); border:0; border-radius:0; box-shadow:none; transform:none; text-align:left; }
body #phone .world-book-tile-inner { display:flex; flex-direction:column; gap:6px; padding:16px; border:0; background:none; box-shadow:none; }
body #phone :is(.world-book-tile-kicker,.world-book-tile-idx,.world-book-tile-seal) { display:none; }
body #phone .world-book-tile::before,body #phone .world-book-tile::after { display:none; }
body #phone .world-book-tile-name { order:-1; font:500 17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-ink); }
body #phone .world-book-tile-kw { font-size:13px; color:var(--ios-secondary); }
body #phone .world-book-tile-tools { padding:0 12px; }
body #phone .world-book-form-surface { background:var(--ios-surface); border:0; border-radius:12px; box-shadow:none; padding:16px; }
body #phone .moments-post { padding:20px 16px; }
body #phone .moments-post-head { display:flex; gap:10px; align-items:center; padding:0; border:0; background:none; }
body #phone .moments-post-av { width:40px; height:40px; border-radius:5px; }
body #phone .moments-post-av-img { border-radius:5px; }
body #phone .moments-post-user { color:#536b91; font-size:16px; font-weight:600; }
body #phone .moments-post-caption { display:block; padding:12px 0 8px 50px; font-size:16px; line-height:1.6; }
body #phone .moments-post-caption-user { display:none; }
body #phone .moments-post-cmts,body #phone .moments-post-likes { background:var(--ios-group); border-radius:4px; margin-left:50px; padding:8px 10px; }
body #phone .moments-post-cmt-user { color:#536b91; font-weight:500; }
body #phone .moments-post-time { font-size:12px; color:var(--ios-secondary); padding-left:50px; }
body #phone #chat-list-screen.xy-moments-mode>.settings-inner { padding-bottom:20px!important; }
body #phone #chat-list-screen.xy-moments-mode .xy-tabbar { display:none; }
body #phone #chat-list-screen.xy-moments-mode .chat-list-scroll { padding:0!important; background:var(--ios-surface)!important; }
body #phone #chat-list-screen.xy-moments-mode .ios-inbox-head { padding:12px 16px; background:var(--ios-group); }
body #phone #chat-list-screen.xy-moments-mode .xy-inbox-title h1 { font-size:18px; margin:0; }
body #phone .xy-moments-actions { display:flex; gap:8px; }
body #phone .xy-moments-actions[hidden] { display:none!important; }
body #phone #chat-list-panel-moments .moments-ins-topbar[hidden] { display:none!important; }
body #phone #chat-list-panel-moments .moments-ins-profile { min-height:245px; padding:135px 20px 20px; box-sizing:border-box; background:#436a8d url('vendor/ios-home/wallpaper.webp') center/cover; color:#fff; }
body #phone #chat-list-panel-moments .moments-ins-profile-row { display:flex; justify-content:flex-start; align-items:center; gap:14px; }
body #phone #chat-list-panel-moments .moments-ins-topbar-name { color:#fff; font:600 18px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-shadow:0 1px 3px #0005; }
body #phone #chat-list-panel-moments .moments-ins-stat-summary,body #phone #chat-list-panel-moments .moments-ins-bio-name { display:none; }
body #phone #chat-list-panel-moments .moments-ins-bio { padding:15px 0 0; margin:0; min-height:0; background:none; color:#fff; }
body #phone #chat-list-panel-moments .moments-ins-bio-line { color:#fff; font-style:normal; }
body #phone #chat-list-panel-moments .moments-ins-avatar { background:var(--ios-surface); color:var(--ios-ink); }
body #phone .moments-feed-empty { padding:45px 22px; border:0; border-radius:0; box-shadow:none; background:var(--ios-surface); color:var(--ios-secondary); }
body #phone .moments-feed-empty-title { font:500 16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ios-ink); }
body #phone .moments-feed-empty-desc { font-size:13px; color:var(--ios-secondary); }
body #phone :is(.call-hero-scrawl,.call-topbar-kicker,.call-topbar-flake,.call-hero-orbit,.call-outbound-pulse-ring,.call-hero-tape,.call-hero-corner,.call-card-kicker,.call-mood-sticker,.chat-offline-eyebrow,.chat-offline-dock-shade,.chat-offline-dock-panel) { display:none!important; }
body #phone #chat-call-screen { background:#262b32; color:#fff; }
body #phone #chat-call-screen .settings-inner { background:#262b32; }
body #phone #chat-call-screen .settings-topbar { background:none; border:0; }
body #phone #chat-call-screen .chat-call-body { background:none; }
body #phone #chat-call-screen .chat-call-grid { display:flex; flex-direction:column; gap:18px; }
body #phone #chat-call-screen .chat-call-side { width:100%; }
body #phone #chat-call-screen .call-hero { background:none; border:0; box-shadow:none; border-radius:0; transform:none; padding:25px 16px; text-align:center; }
body #phone #chat-call-screen .call-hero-av { width:90px; height:90px; border:0; border-radius:14px; box-shadow:none; background:#49525d; }
body #phone #chat-call-screen .call-hero-visual { display:flex; justify-content:center; }
body #phone #chat-call-screen .call-hero-title { font:600 24px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:#fff; margin:18px 0 8px; }
body #phone #chat-call-screen .call-hero-sub { color:#d4d9df; font-size:15px; }
body #phone #chat-call-screen .call-hero-pillrow { justify-content:center; }
body #phone #chat-call-screen .call-hero-pill { background:none; border:0; color:#d4d9df; }
body #phone #chat-call-screen .chat-call-card { border:0; border-radius:12px; background:#343b44; box-shadow:none; color:#fff; }
body #phone #chat-call-screen .chat-call-input2 { color:#fff; background:#434c57; border:0; border-radius:8px; }
body #phone #chat-call-screen .chat-call-send2 { border:0; border-radius:8px; background:#078347; color:#fff; }
body #phone #chat-offline-screen .chat-offline-ambient { background:var(--ios-group); }
body #phone #chat-offline-screen .chat-offline-inner { background:var(--ios-group); }
body #phone #chat-offline-screen .chat-offline-dock { background:none; box-shadow:none; border:0; }
body #phone #chat-offline-screen .chat-f2f-diary-sheet { background:var(--ios-surface); color:var(--ios-ink); border:0; border-radius:8px; box-shadow:none; padding:18px; }
body #phone #chat-offline-screen .chat-f2f-diary-polaroid { background:none; border:0; box-shadow:none; transform:none; }
body #phone #chat-offline-screen .chat-msg-bubble-prose { font-family:inherit; font-size:16px; line-height:1.8; }
body #phone #chat-screen:not(.xy-custom-chat) .chat-photo-polaroid { padding:0; border:0; background:none; box-shadow:none; transform:none; border-radius:7px; overflow:hidden; }
body #phone #chat-screen:not(.xy-custom-chat) :is(.chat-photo-polaroid-gloss,.chat-photo-polaroid-footer,.chat-photo-polaroid-tape) { display:none; }
body #phone #chat-screen:not(.xy-custom-chat) .chat-call-recap-sheet { background:var(--ios-surface); color:var(--ios-ink); border:0; border-radius:6px; padding:14px; box-shadow:none; transform:none; }
body #phone #chat-video-call-screen :is(.vcall-live,.vcall-bg-grain,.vcall-bar-sep) { display:none; }
body #phone #chat-video-call-screen .vcall-bg-fallback { background:#252c35; }
body #phone #chat-video-call-screen .vcall-topbar { background:rgba(20,25,32,.45); border:0; border-radius:0; box-shadow:none; padding:16px; }
body #phone #chat-video-call-screen .vcall-topbar-name { font:600 21px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:white; }
body #phone #chat-video-call-screen .vcall-topbar-label { font-family:inherit; font-size:13px; letter-spacing:0; }
body #phone #chat-video-call-screen .vcall-user-pip { border:0; border-radius:9px; box-shadow:0 5px 20px #0003; }
body #phone #chat-video-call-screen .vcall-bottom { padding:12px 16px 24px; }
body #phone #chat-video-call-screen .vcall-bar { display:flex; flex-direction:column; gap:15px; padding:12px; border:0; border-radius:16px; background:rgba(20,25,32,.7); box-shadow:none; }
body #phone #chat-video-call-screen .vcall-bar-field { width:100%; }
body #phone #chat-video-call-screen .vcall-bar-cluster { display:flex; justify-content:center; gap:16px; width:100%; }
body #phone #chat-video-call-screen .vcall-btn { width:48px; height:48px; border:0; border-radius:50%; background:#525b65; color:white; box-shadow:none; }
body #phone #chat-video-call-screen .vcall-btn--danger { background:#e34444; }
body #phone #chat-video-call-screen .vcall-btn--send { background:#078347; }
body #phone .chat-more-drawer { background:var(--ios-group); color:var(--ios-ink); border:0; border-radius:16px 16px 0 0; box-shadow:0 -10px 35px #0002; padding:16px; }
body #phone .chat-more-drawer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 10px; padding:14px 0; }
body #phone .chat-more-drawer-item { border:0; background:none; padding:0; min-width:0; box-shadow:none; transform:none; display:flex; flex-direction:column; align-items:center; gap:9px; font-size:12px; color:var(--ios-secondary); }
body #phone .chat-more-drawer-item>i { display:grid; place-items:center; width:54px; height:54px; border-radius:12px; background:var(--ios-surface); color:var(--ios-ink); font-size:26px; }
body #phone .chat-bubble-actions-menu { display:flex; flex-direction:column; gap:0; }
body #phone .chat-bubble-actions-row { border:0; border-bottom:1px solid var(--ios-line); border-radius:0; padding:15px 18px; color:var(--ios-ink); background:none; font:400 16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body #phone .chat-bubble-actions-row--danger { color:#d73131; }
body #phone .chat-bubble-actions-title { padding:12px 16px; color:var(--ios-secondary); font-size:13px; }
body #phone :is(.moments-item,.moments-card,.moments-post) { background:var(--ios-surface); border:0; border-bottom:1px solid var(--ios-line); border-radius:0; box-shadow:none; transform:none; }
body #phone :is(.moments-item-text,.moments-post-text,.moments-card-text) { font:400 16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body #phone :is(.moments-item-name,.moments-post-name,.moments-author-name) { color:#536b91; font-size:16px; font-weight:600; }
body #phone :is(.settings-ai-blurb,.settings-api-hint,.settings-ai-key-note) { color:var(--ios-secondary); font-size:13px; line-height:1.6; }
body #phone :is(button,input,textarea,select):focus-visible { outline:2px solid var(--ios-blue); outline-offset:3px; }
body #phone textarea,body #phone input { caret-color:var(--ios-blue); }
body #phone ::selection { background:#b8ddff; color:#112337; }
body #phone :is(.settings-body,.chat-detail-scroll,.chat-messages,.my-body) { scrollbar-width:thin; scrollbar-color:var(--ios-line) transparent; }
body #phone button:disabled { opacity:.45; cursor:default; }
@media(max-width:430px){body #phone .chat-more-drawer-grid{gap:16px 8px;}body #phone .chat-detail-scroll{padding:14px 12px;}}
@media(prefers-reduced-motion:reduce){body #phone *,body #phone *::before,body #phone *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}}
