:root {
            --green: #07c160;
            --bg-main: #f0f0f0;
            --bg-page: #f2f2f7;
            --bg-wechat: #ededed;
            --text-main: #333;
            --text-sub: #888;
            --border: #d9d9d9;
            --nav-height: 74px;
            --col-width: calc((375px - 40px - 54px) / 4);
            --badge-bg: #ff3b30;
            --safe-top: env(safe-area-inset-top, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
        }
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
        *::-webkit-scrollbar { display: none; }
        html, body { width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background-color: #000; margin: 0; padding: 0; }
        body { display: flex; justify-content: center; align-items: flex-start; padding: 40px 0; position: fixed; top: 0; left: 0; right: 0; bottom: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
        input, textarea { -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default; }
        
        /* Utilities */
        .hidden { display: none !important; }
        .no-select { -webkit-touch-callout: none !important; -webkit-user-select: none !important; user-select: none !important; }
        .flex { display: flex; }
        .flex-col { display: flex; flex-direction: column; }
        .flex-center { display: flex; justify-content: center; align-items: center; }
        .flex-between { display: flex; justify-content: space-between; align-items: center; }
        .flex-1 { flex: 1; }
        .w-full { width: 100%; }
        .h-full { height: 100%; }
        .obj-cover { object-fit: cover; }
        .text-green { color: var(--green); }
        .font-bold { font-weight: 600; }
        .text-center { text-align: center; }
        .relative { position: relative; }
        .absolute { position: absolute; }
        .cursor-pointer { cursor: pointer; }

        /* Phone Frame */
        .phone-frame { width: 375px; height: 812px; background: #000; border-radius: 40px; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 0 8px #111; display: flex; flex-direction: column; transform: scale(0.8); transform-origin: top center; flex-shrink: 0; opacity: 0; transition: opacity 0.3s ease-in-out; }
        .status-bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; padding: 0 20px; color: white; font-size: 12px; font-weight: 600; z-index: 100; pointer-events: none; transition: opacity 0.3s; }
        .status-bar .icons { gap: 6px; font-size: 12px; }
        .pages-container { flex: 1; position: relative; background: #fff; }
        .page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; background: var(--bg-page); padding: 0 0 84px; overflow-y: auto; }
        .page.active { display: block; }
        .page.flex-col.active { display: flex; }
        .page::-webkit-scrollbar { display: none; }

        /* Home Screen */
        .home-screen { background-color: #e8e8e8; background-image: radial-gradient(#d0d0d0 1.5px, transparent 1.5px); background-size: 20px 20px; padding: 0; overflow: hidden; }
        .home-pages-wrapper { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
        .home-pages-wrapper::-webkit-scrollbar { display: none; }
        .home-page { min-width: 100%; height: 100%; scroll-snap-align: start; padding-top: 60px; padding-bottom: 100px; overflow-y: auto; }
        .home-page::-webkit-scrollbar { display: none; }
        .ios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 18px; grid-auto-rows: minmax(56px, auto); padding: 0 20px; height: 100%; align-content: start; }
        .ios-grid > div { transform: scale(0.95); }
        .widget-1x1 { grid-column: span 1; grid-row: span 1; }
        .widget-2x2 { grid-column: span 2; grid-row: span 2; }
        .widget-4x2 { grid-column: span 4; grid-row: span 2; }
        .widget-4x3 { grid-column: span 4; grid-row: span 3; }
        .widget-4x4 { grid-column: span 4; grid-row: span 4; }
        .app-icon { background: transparent; border: none; outline: none; transition: transform 0.1s, opacity 0.1s; }
        .app-icon:active { transform: scale(0.9); opacity: 0.8; }
        .icon-img-wrapper { 
            width: 60px; 
            height: 60px; 
            border-radius: 16px; 
            font-size: 28px; 
            color: #fff; 
            background: rgba(255, 255, 255, 0.25); 
            backdrop-filter: blur(20px) saturate(150%); 
            -webkit-backdrop-filter: blur(20px) saturate(150%); 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            overflow: hidden; 
            margin: 0 auto; 
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                0 4px 15px rgba(0, 0, 0, 0.05);
            position: relative;
        }
        .icon-img-wrapper::after {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 40%, rgba(255,255,255,0.05) 100%);
            pointer-events: none;
        }
        .app-icon span { margin-top: 6px; font-size: 12px; color: #fff; font-weight: 400; text-align: center; display: block; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
        .widget-bg { 
            background: rgba(255, 255, 255, 0.25); 
            backdrop-filter: blur(20px) saturate(150%); 
            -webkit-backdrop-filter: blur(20px) saturate(150%); 
            border: 1px solid rgba(255, 255, 255, 0.4); 
            box-shadow: 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                0 4px 15px rgba(0, 0, 0, 0.05);
        }
        .dock { 
            bottom: 15px; left: 15px; right: 15px; height: 84px; 
            background: rgba(255, 255, 255, 0.25); 
            backdrop-filter: blur(20px) saturate(150%); 
            -webkit-backdrop-filter: blur(20px) saturate(150%); 
            border-radius: 32px; padding: 0 30px; z-index: 10; 
            border: 1px solid rgba(255, 255, 255, 0.4); 
            box-shadow: 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                0 4px 15px rgba(0, 0, 0, 0.05); 
            display: flex; justify-content: space-around; align-items: center; 
        }
        .dock .app-icon span { display: none; }

        /* Nav Bar */
        .nav-bar { height: var(--nav-height); padding: calc(30px + var(--safe-top)) 15px 0; background: #f8f8f8; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 50; }
        .nav-title { font-size: 17px; font-weight: 600; color: #000; }
        .nav-left, .nav-right { width: 60px; font-size: 16px; color: #333; cursor: pointer; }
        .nav-right { justify-content: flex-end; }

        /* WeChat */
        .page.wechat { background: var(--bg-wechat); padding-bottom: 0; flex-direction: column; overflow: hidden; }
        .page.wechat.active { display: flex; }
        #wechat-main-content, #wechat-contacts-content, #wechat-discover-content, #wechat-me-content { flex: 1; overflow-y: auto; padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)); }
        #wechat-main-content::-webkit-scrollbar, #wechat-contacts-content::-webkit-scrollbar, #wechat-discover-content::-webkit-scrollbar, #wechat-me-content::-webkit-scrollbar, #main-chat-list::-webkit-scrollbar { display: none; }
        .page.wechat .nav-bar { background: var(--bg-wechat); border-bottom: none; }
        .page.wechat .nav-title { font-weight: 500; }
        .page.wechat .nav-right { color: #000; font-size: 20px; }
        .chat-list, .item-list-container { background: #fff; }
        .me-list { background: #fff; margin-bottom: 10px; }
        .chat-item, .list-item, .me-item { padding: 12px 15px; border-bottom: 1px solid var(--bg-main); cursor: pointer; }
        .chat-item:active { background: #f5f5f5; }
        .chat-item img, .list-item img { width: 48px; height: 48px; border-radius: 6px; margin-right: 12px; }
        .chat-info { flex: 1; overflow: hidden; }
        .chat-header .nickname { font-size: 16px; color: #333; }
        .last-message { font-size: 14px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        .wechat-tab-bar { bottom: 0; left: 0; right: 0; height: calc(50px + env(safe-area-inset-bottom, 0px)); background: #f7f7f7; border-top: 1px solid var(--border); z-index: 10; justify-content: flex-start; }
        .wechat-tab-bar-inner { height: 50px; align-items: center; }
        .tab-item { flex: 1; color: #191919; font-size: 10px; cursor: pointer; height: 100%; justify-content: center; }
        .tab-item i { font-size: 22px; margin-bottom: 2px; }
        .tab-item.active { color: var(--green); }
        .tab-text-en { display: none; }
        .wechat-tab-bar-deco { display: none; }

        /* Chat Detail */
        #wechat-chat-detail { background: var(--bg-wechat); padding: 0; z-index: 20; overflow: hidden; }
        #wechat-chat-detail.active { display: flex; }
        .chat-header-detail { height: var(--nav-height); background: var(--bg-wechat); padding: calc(30px + var(--safe-top)) 10px 0; position: relative; z-index: 50; flex-shrink: 0; transition: background 0.3s; }
        .chat-header-detail .header-left { font-size: 16px; color: #000; width: 80px; cursor: pointer; }
        .chat-header-detail .header-center { font-size: 17px; font-weight: 500; flex: 1; text-align: center; }
        .chat-header-detail .header-right { width: 80px; text-align: right; font-size: 18px; cursor: pointer; }
        .message-list { flex: 1; overflow-y: auto; padding: 15px 8px; gap: 15px; background: var(--bg-wechat); display: flex; flex-direction: column; }
        .message-list::-webkit-scrollbar { display: none; }
        .message-item { max-width: 85%; align-items: flex-start; }
        .their-message { align-self: flex-start; }
        .my-message { align-self: flex-end; flex-direction: row-reverse; }
        .avatar-msg-container { width: 40px; height: 40px; flex-shrink: 0; position: relative; }
        .avatar-msg { width: 100%; height: 100%; border-radius: 4px; overflow: hidden; object-fit: cover; }
        .message-bubble { padding: 9px 12px; border-radius: 4px; font-size: 15px; line-height: 1.4; word-break: break-word; white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: inline-block; position: relative; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
        .transfer-bubble, .system-msg, .recall-msg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
        .their-message .message-bubble { background: #fff; margin-left: 10px; color: #000; }
        body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .their-message .message-bubble::before, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .their-message .message-bubble::before, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .their-message .message-bubble::before, body:not(.korean-gray-ui) #check-phone-app-wechat-chat .their-message .message-bubble::before { content: ""; position: absolute; top: 13px; left: -5px; border-width: 5px 6px 5px 0; border-style: solid; border-color: transparent #fff transparent transparent; }
        .my-message .message-bubble { background: #95ec69; margin-right: 10px; color: #000; }
        body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .my-message .message-bubble::after, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .my-message .message-bubble::after, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .my-message .message-bubble::after, body:not(.korean-gray-ui) #check-phone-app-wechat-chat .my-message .message-bubble::after { content: ""; position: absolute; top: 13px; right: -5px; border-width: 5px 0 5px 6px; border-style: solid; border-color: transparent transparent transparent #95ec69; }
        .transparent-bubble::before, .transparent-bubble::after { display: none !important; }
        
        .transfer-bubble { border-radius: 4px; padding: 10px 15px; width: 220px; display: flex; flex-direction: column; color: #fff; position: relative; }
        .transfer-pending { background: #f39b1a; }
        .transfer-accepted, .transfer-rejected { background: #f9c996; }
        body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-pending::before, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-pending::before, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-pending::before { content: ""; position: absolute; top: 13px; left: -5px; border-width: 5px 6px 5px 0; border-style: solid; border-color: transparent #f39b1a transparent transparent; }
        body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-pending::after, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-pending::after, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-pending::after { content: ""; position: absolute; top: 13px; right: -5px; border-width: 5px 0 5px 6px; border-style: solid; border-color: transparent transparent transparent #f39b1a; }
        body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-accepted::before, body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-rejected::before, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-accepted::before, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-rejected::before, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-accepted::before, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .their-message .transfer-bubble.transfer-rejected::before { content: ""; position: absolute; top: 13px; left: -5px; border-width: 5px 6px 5px 0; border-style: solid; border-color: transparent #f9c996 transparent transparent; }
        body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-accepted::after, body:not(.korean-gray-ui) #wechat-chat-detail:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-rejected::after, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-accepted::after, body:not(.korean-gray-ui) #bubble-preview-container:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-rejected::after, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-accepted::after, body:not(.korean-gray-ui) #interface-preview-container:not(.custom-bubble-active) .my-message .transfer-bubble.transfer-rejected::after { content: ""; position: absolute; top: 13px; right: -5px; border-width: 5px 0 5px 6px; border-style: solid; border-color: transparent transparent transparent #f9c996; }
        .transfer-bubble-top { align-items: center; margin-bottom: 8px; }
        .transfer-icon-wrapper { width: 36px; height: 36px; border-radius: 50%; margin-right: 10px; }
        .transfer-pending .transfer-icon-wrapper, .transfer-rejected .transfer-icon-wrapper { background: rgba(255,255,255,0.2); }
        .transfer-accepted .transfer-icon-wrapper { border: 2px solid #fff; }
        .transfer-icon-wrapper i { color: #fff; font-size: 18px; }
        .transfer-amount { font-size: 16px; }
        .transfer-title { font-size: 12px; opacity: 0.8; margin-top: 2px; }
        .transfer-bubble-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 4px; font-size: 12px; opacity: 0.8; margin-top: 4px; }
        .transfer-extra-text { display: none; }

        .chat-input-bar { min-height: calc(56px + env(safe-area-inset-bottom, 0px)); background: #f7f7f7; border-top: 1px solid var(--border); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 10px; flex-shrink: 0; align-items: center; }
        .chat-input-bar i { font-size: 26px; color: #191919; cursor: pointer; }
        .chat-input-bar img.custom-icon { width: 28px; height: 28px; cursor: pointer; object-fit: contain; }
        .ai-reply-btn { margin-right: 0; }
        .chat-input-bar input { flex: 1; height: 40px; border: none; border-radius: 4px; padding: 0 12px; font-size: 16px; outline: none; background: #fff; min-width: 0; }
        .send-btn { background: var(--green); color: white; border: none; padding: 0 16px; height: 32px; border-radius: 4px; font-size: 14px; font-weight: 500; display: none; cursor: pointer; flex-shrink: 0; }
        
        .quote-block { background: #f0f0f0; color: #666; font-size: 12px; padding: 4px 8px; border-radius: 4px; margin-bottom: 4px; text-align: left; word-break: break-all; }
        .recall-msg { text-align: center; color: #999; font-size: 12px; margin: 10px 0; width: 100%; }
        .message-checkbox { display: none; margin-right: 10px; width: 20px; height: 20px; flex-shrink: 0; }
        .multi-select-mode .message-checkbox { display: block; }
        .multi-select-mode .message-item { align-items: center; }
        .multi-select-bar { display: none; height: calc(56px + env(safe-area-inset-bottom, 0px)); background: #f7f7f7; border-top: 1px solid var(--border); z-index: 30; padding: 0 30px env(safe-area-inset-bottom, 0px); flex-shrink: 0; align-items: center; }
        #quote-preview { display: none; background: #e5e5ea; padding: 4px 10px; font-size: 12px; color: #8e8e93; border-radius: 4px; margin-bottom: 4px; }
        #quote-preview i { right: 8px; top: 4px; cursor: pointer; font-size: 14px; }
        #chat-plus-panel::-webkit-scrollbar, #chat-emoticon-panel::-webkit-scrollbar, #chat-emoticon-panel *::-webkit-scrollbar { display: none; }

        .emo-group-tab { padding: 5px 10px; font-size: 14px; color: #666; cursor: pointer; white-space: nowrap; border-radius: 4px; }
        .emo-group-tab.active { background: #e0e0e0; color: #333; font-weight: 500; }

        /* Accompany */
        .accompany-tag { padding: 8px 16px; background: #fff; border-radius: 8px; font-size: 13px; color: #666; cursor: pointer; border: 1px solid #eee; transition: all 0.3s; }
        .accompany-tag.active { background: #f0f0f0; color: #333; border-color: #f0f0f0; box-shadow: 0 2px 8px rgba(0,0,0,0.02); font-weight: 500; }
        .accompany-time-tag { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: #666; cursor: pointer; border-radius: 6px; transition: all 0.3s; }
        .accompany-time-tag.active { background: #f0f0f0; color: #333; font-weight: 600; }
        @keyframes breath { 0% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.2; } 100% { transform: scale(0.9); opacity: 0.5; } }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .typing-dots { display: inline-flex; align-items: center; height: 20px; }
        .typing-dots span { font-size: 24px; line-height: 1; margin: 0 2px; animation: typing-dot 1.4s infinite both; }
        .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
        .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typing-dot { 0%, 80%, 100% { opacity: 0.2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

        /* Voice Message */
        .voice-bubble { display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-width: 60px; max-width: 220px; height: 40px; padding: 0 12px; box-sizing: border-box; }
        .my-message .voice-bubble { flex-direction: row-reverse; }
        .voice-icon-play { font-size: 16px; color: #000; }
        .my-message .voice-icon-play { transform: rotate(-90deg); }
        .their-message .voice-icon-play { transform: rotate(90deg); }
        .voice-duration { font-size: 14px; color: #888; white-space: nowrap; }

        /* Me & Forms */
        .me-header { background: #fff; padding: 40px 20px; margin-bottom: 10px; cursor: pointer; }
        .me-header img { width: 64px; height: 64px; border-radius: 8px; margin-right: 20px; }
        .me-info h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
        .me-info p { font-size: 14px; color: #888; }
        .me-item i { width: 24px; font-size: 18px; margin-right: 15px; text-align: center; }
        .me-item span { flex: 1; font-size: 16px; }
        .me-item .arrow { color: #c7c7cc; font-size: 14px; }
        
        .persona-form { padding: 20px; background: #fff; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; }
        .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
        .image-upload-placeholder { width: 80px; height: 80px; background: #f7f7f7; border: 1px dashed #ccc; color: #999; font-size: 12px; cursor: pointer; overflow: hidden; }
        
        .advanced-form { padding: 20px; background: #f5f5f5; min-height: calc(100% - 74px); }
        .advanced-form .form-card { background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%); border-radius: 16px; padding: 20px 16px; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02); border: 1px solid rgba(230,230,230,0.8); }
        .advanced-form .form-group { margin-bottom: 20px; }
        .advanced-form .form-group:last-child { margin-bottom: 0; }
        .advanced-form .form-group label { display: block; font-size: 12px; color: #888888; margin-bottom: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
        .advanced-form .form-group input, .advanced-form .form-group textarea { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #eaeaea; border-radius: 0; font-size: 16px; background: transparent; transition: all 0.3s; outline: none; color: #333; }
        .advanced-form .form-group input:focus, .advanced-form .form-group textarea:focus { border-bottom-color: #555; }
        .advanced-form .image-upload-placeholder { width: 88px; height: 88px; background: #f9f9f9; border-radius: 28px; color: #cccccc; font-size: 24px; cursor: pointer; overflow: hidden; display: flex; justify-content: center; align-items: center; transition: all 0.3s; border: 1px dashed #e0e0e0; margin: 0 auto 10px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
        .advanced-form .image-upload-placeholder:active { transform: scale(0.95); }
        .add-btn-block { padding: 15px; background: #fff; color: #576b95; font-weight: 500; cursor: pointer; margin-top: 10px; }
        .danger-btn { background: #fff; color: #ff3b30; border: 1px solid #ffe5e5; padding: 16px; width: 100%; border-radius: 16px; font-size: 16px; font-weight: 500; margin-top: 20px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(255,59,48,0.05); }
        .danger-btn:active { transform: scale(0.98); background: #fff5f5; }
        .btn-primary { background: #e0e0e0; color: #4a4a4a; border: none; padding: 14px; width: 100%; border-radius: 8px; font-size: 14px; font-weight: 600; margin-top: 16px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(224,224,224,0.4); letter-spacing: 1px; }
        .btn-primary:active { transform: scale(0.98); box-shadow: 0 2px 6px rgba(224,224,224,0.3); }

        /* Overlays */
        .selector-overlay { top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; display: none; transition: all 0.3s ease; }
        .selector-sheet { bottom: 0; left: 0; right: 0; background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px 16px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 85%; overflow-y: auto; box-shadow: 0 -10px 40px rgba(130,130,130,0.08); border-top: 1px solid rgba(240,240,240,0.8); }
        .selector-sheet h3 { font-size: 15px; font-weight: 600; color: #555555; margin-bottom: 16px; letter-spacing: 0.5px; }
        .selector-option { padding: 12px; background: #fff; border-radius: 12px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 2px 10px rgba(130,130,130,0.03); border: 1px solid rgba(240,240,240,1); transition: all 0.2s ease; color: #666666; font-size: 14px; }
        .selector-option:active { transform: scale(0.98); background: #f5f5f5; }
        .selector-option img { width: 36px; height: 36px; border-radius: 8px; margin-right: 12px; object-fit: cover; border: 1px solid rgba(0,0,0,0.05); }
        .selector-option.selected { border: 2px solid #d0d0d0; background: #f5f5f5; }
        .sheet-cancel { width: 100%; padding: 14px; border: 1px solid #e8e8e8; border-radius: 12px; margin-top: 10px; background: #fff; font-size: 14px; color: #999999; font-weight: 500; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(130,130,130,0.02); }
        .sheet-cancel:active { transform: scale(0.98); background: #f5f5f5; }
        .selector-sheet input[type="text"], .selector-sheet input[type="number"], .selector-sheet textarea { width: 100%; padding: 14px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; font-size: 14px; color: #555555; outline: none; margin-bottom: 12px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); transition: all 0.3s ease; box-sizing: border-box; }
        .selector-sheet input:focus, .selector-sheet textarea:focus { border-color: #d0d0d0; box-shadow: 0 0 0 3px rgba(200,200,200,0.2); }

        /* Misc */
        .contact-group-title { padding: 5px 15px; font-size: 12px; color: #888; background: var(--bg-wechat); }
        .group-tag { padding: 4px 12px; background: #e5e5ea; border-radius: 12px; font-size: 12px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; }
        .group-tag.selected { background: #e8f4ff; color: #007aff; border-color: #007aff; }
        .page.home-screen ~ .status-bar { color: white; }
        body.not-home .status-bar { color: black; }
        
        /* Switches & Moments */
        .switch { position: relative; display: inline-block; width: 40px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; transition: .4s; border-radius: 24px; }
        .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider { background: var(--green); }
        input:checked + .slider:before { transform: translateX(16px); }
        
        .moment-item { gap: 12px; padding: 15px 0; border-bottom: 1px solid #eee; }
        .moment-item .m-avatar { width: 42px; height: 42px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
        .moment-item .m-content { flex: 1; }
        .moment-item .m-name { color: #576b95; font-weight: 600; margin-bottom: 4px; }
        .moment-item .m-text { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
        .moment-item .m-imgs { display: grid; gap: 5px; }
        .moment-item .m-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
        .moment-item .m-footer { margin-top: 10px; color: #888; font-size: 12px; }

        #message-context-menu { display: none; background: #ffffff; color: #333333; border-radius: 8px; padding: 0; z-index: 1000; font-size: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); flex-direction: row; flex-wrap: nowrap; overflow: hidden; }
        .menu-item { padding: 10px 12px; cursor: pointer; white-space: nowrap; border-right: 1px solid #f0f0f0; }
        .menu-item:last-child { border-right: none; }
        .emo-tabs-container::-webkit-scrollbar, #chat-search-results::-webkit-scrollbar, .memory-edit-textarea::-webkit-scrollbar, #edit-offline-message-textarea::-webkit-scrollbar, #offline-custom-css-input::-webkit-scrollbar { display: none; }
        
        .memory-switch input:checked + .slider { background: #555555 !important; }
        .memory-switch .slider { background: #d0d0d0 !important; }
        #diary-list::-webkit-scrollbar, #diary-detail-scroll-area::-webkit-scrollbar { display: none; }
        #diary-detail-page.active, #accompany-setup-page.active, #accompany-active-page.active, #offline-settings-page.active, #offline-active-page.active { display: flex; }
        #accompany-chat-area::-webkit-scrollbar, #offline-chat-area::-webkit-scrollbar, #offline-settings-scroll-area::-webkit-scrollbar, #offline-style-list::-webkit-scrollbar, #offline-rule-list::-webkit-scrollbar, #offline-status-content::-webkit-scrollbar, #call-chat-area::-webkit-scrollbar { display: none; }

        body.dark-text-mode .status-bar { color: #555 !important; }
        body.dark-text-mode .app-icon span { color: #555 !important; text-shadow: none !important; }
        body.dark-text-mode .icon-img-wrapper { color: #555 !important; }
        body.dark-text-mode #home-widget-top-text,
        body.dark-text-mode #home-widget-location-text,
        body.dark-text-mode #home-widget-name,
        body.dark-text-mode #home-widget-sub,
        body.dark-text-mode #home-widget-quote,
        body.dark-text-mode #widget-date-korean,
        body.dark-text-mode #anni-text-1,
        body.dark-text-mode #anni-text-2,
        body.dark-text-mode #anni-title,
        body.dark-text-mode #anni-days,
        body.dark-text-mode .real-time-clock,
        body.dark-text-mode #home-widget-music-title,
        body.dark-text-mode #music-time-current,
        body.dark-text-mode #music-time-total { color: #555 !important; text-shadow: none !important; }
        body.dark-text-mode .widget-2x2 .flex-center i.fas.fa-map-marker-alt { color: #555 !important; }
        body.dark-text-mode .anni-wave { stroke: #555 !important; }
        body.dark-text-mode .music-progress-bg { background: rgba(0,0,0,0.15) !important; }
        body.dark-text-mode #music-progress { background: #555 !important; box-shadow: none !important; }
        body.dark-text-mode #music-thumb { color: #555 !important; text-shadow: none !important; }
        
        body.offline-settings-active .status-bar { color: #888 !important; }

        /* Premium Sliders */
        input[type=range] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 24px;
            background: transparent;
            outline: none;
            margin: 5px 0;
        }
        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 3px;
            background: #d0d0d0;
            border-radius: 1.5px;
        }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 4px;
            height: 16px;
            background: #555;
            cursor: pointer;
            margin-top: -6.5px;
            border: none;
            border-radius: 2px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
            transition: background 0.2s;
        }
        input[type=range]::-webkit-slider-thumb:active {
            background: #000;
        }
        body.korean-gray-ui input[type=range]::-webkit-slider-runnable-track {
            background: #eaeaea;
        }
        body.korean-gray-ui input[type=range]::-webkit-slider-thumb {
            background: #888;
            border: none;
            box-shadow: none;
        }

        .korean-ui-elem { display: none; }

        /* Korean Gray UI */
        body.korean-gray-ui {
            --wechat-theme-color: #000000;
            --wechat-bg-color: #ffffff;
            --wechat-item-bg: #ffffff;
            --wechat-border-color: #f5f5f5;
            --wechat-bubble-my: #f0f0f0;
            --wechat-bubble-their: #ffffff;
            --badge-bg: #8e8e93;
        }
        body.korean-gray-ui .page { font-weight: 500; }
        body.korean-gray-ui input, body.korean-gray-ui textarea, body.korean-gray-ui button { font-weight: 500; }
        body.korean-gray-ui .page.wechat { background: var(--wechat-bg-color); }
        body.korean-gray-ui .page.wechat .nav-bar { background: var(--wechat-bg-color); border-bottom: 1px solid #f0f0f0; }
        body.korean-gray-ui .page.wechat .nav-title { font-weight: 500; font-size: 15px; color: #888; }
        body.korean-gray-ui .page.wechat .nav-left, body.korean-gray-ui .page.wechat .nav-right { color: #888; }
        
        body.korean-gray-ui #wechat-main-content {
            overflow-y: hidden !important;
            display: flex;
            flex-direction: column;
            padding-bottom: 0 !important;
        }
        
        body.korean-gray-ui #main-chat-list {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 110px !important;
        }
        
        body.korean-gray-ui #wechat-discover-content, 
        body.korean-gray-ui #wechat-me-content {
            padding-bottom: 110px !important;
        }
        
        body.korean-gray-ui #wechat-contacts-content {
            overflow-y: hidden !important;
            display: flex;
            flex-direction: column;
            padding-bottom: 0 !important;
        }
        body.korean-gray-ui #wechat-contacts-content .item-list-container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        body.korean-gray-ui #new-friends-container {
            flex-shrink: 0;
        }
        body.korean-gray-ui #friends-list-container {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 110px !important;
        }
        
        body.korean-gray-ui .chat-list, body.korean-gray-ui .item-list-container, body.korean-gray-ui .me-list { background: transparent; }
        body.korean-gray-ui .chat-item, body.korean-gray-ui .list-item, body.korean-gray-ui .me-item, body.korean-gray-ui .me-header { background: var(--wechat-item-bg); border-bottom: 1px solid var(--wechat-border-color); }
        body.korean-gray-ui .contact-group-title { background: #ffffff; color: #b2b2b2; font-size: 12px; padding: 8px 20px; border-bottom: 1px solid #f5f5f5; }
        body.korean-gray-ui #wechat-chat-detail { background: #f5f5f5; }
        body.korean-gray-ui .chat-header-detail { background: #f5f5f5; border-bottom: none; box-shadow: none; padding: max(env(safe-area-inset-top), 20px) 20px 10px; height: auto; min-height: var(--nav-height); justify-content: flex-start; align-items: center; }
        body.korean-gray-ui .chat-header-detail .header-left { width: auto; color: #d0d0d0; font-size: 22px; margin-right: 15px; }
        body.korean-gray-ui .chat-header-detail .header-center { flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; }
        body.korean-gray-ui .chat-header-detail .header-center #chat-detail-nickname { font-size: 18px; font-weight: 600; color: #4a4a4a; letter-spacing: 0.5px; font-family: 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif; }
        body.korean-gray-ui .chat-header-detail .header-center #typing-status { font-size: 12px !important; color: #888 !important; font-weight: 500 !important; margin-left: 10px; margin-top: 0; }
        body.korean-gray-ui .chat-header-detail .header-right { width: auto; color: #888; font-size: 20px; }
        
        body.korean-gray-ui .message-list { background: #f5f5f5; padding: 20px 15px; }
        
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar { background: #f5f5f5; border-top: none; box-shadow: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 0; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar .flex,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar .flex,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar .flex { gap: 10px; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) #text-input-container, 
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .text-input-container,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) #text-input-container, 
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .text-input-container,
        body.korean-gray-ui #check-phone-app-wechat-chat .text-input-container { background: #ffffff !important; border-radius: 20px !important; padding: 0 12px !important; border: none !important; box-shadow: none !important; height: 40px !important; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar input, 
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar .preview-chat-input,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar input, 
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar .preview-chat-input,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar input { background: transparent !important; height: 40px !important; font-size: 15px !important; color: #333 !important; padding: 0 !important; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar input::placeholder,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar input::placeholder,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar input::placeholder { color: #bbb; font-weight: 400; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar .custom-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar .custom-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar .custom-icon { filter: opacity(0.4); transition: all 0.2s; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar .custom-icon:active,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar .custom-icon:active,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar .custom-icon:active { filter: opacity(0.6); transform: scale(0.95); }
        
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .default-ui-elem,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .default-ui-elem,
        body.korean-gray-ui #check-phone-app-wechat-chat .default-ui-elem { display: none !important; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .korean-ui-elem,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .korean-ui-elem,
        body.korean-gray-ui #check-phone-app-wechat-chat .korean-ui-elem { display: block; }
        
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar img.custom-icon.ai-reply-btn,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar img.custom-icon.ai-reply-btn,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar img.custom-icon.ai-reply-btn { content: url('https://tc-new.z.wiki/autoupload/Lps16m1XQxemt1c-RRKmtdiO_OyvX7mIgxFBfDMDErs/20260324/3gv8/968X760/IMG_8391.png'); width: 18px !important; height: 18px !important; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar img.custom-icon.voice-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar img.custom-icon.voice-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar img.custom-icon.voice-icon { content: url('https://tc-new.z.wiki/autoupload/Lps16m1XQxemt1c-RRKmtdiO_OyvX7mIgxFBfDMDErs/20260324/022v/659X966/IMG_8392.png'); width: 15px !important; height: 15px !important; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar img.custom-icon.smile-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar img.custom-icon.smile-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar img.custom-icon.smile-icon { content: url('https://tc-new.z.wiki/autoupload/Lps16m1XQxemt1c-RRKmtdiO_OyvX7mIgxFBfDMDErs/20260324/yN7I/887X967/IMG_8393.png'); width: 18px !important; height: 18px !important; }
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar img.custom-icon.plus-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar img.custom-icon.plus-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar img.custom-icon.plus-icon { content: url('https://tc-new.z.wiki/autoupload/Lps16m1XQxemt1c-RRKmtdiO_OyvX7mIgxFBfDMDErs/20260324/2Y2B/966X959/IMG_8394.png'); width: 18px !important; height: 18px !important; }

        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar.is-typing .ai-reply-btn,
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar.is-typing .voice-icon,
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar.is-typing .smile-icon,
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar.is-typing .plus-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar.is-typing .ai-reply-btn,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar.is-typing .voice-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar.is-typing .smile-icon,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar.is-typing .plus-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar.is-typing .ai-reply-btn,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar.is-typing .voice-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar.is-typing .smile-icon,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar.is-typing .plus-icon { display: none !important; }
        
        body.korean-gray-ui #wechat-chat-detail:not(.custom-interface-active) .chat-input-bar:not(.is-typing) .k-send,
        body.korean-gray-ui #interface-preview-container:not(.custom-interface-active) .chat-input-bar:not(.is-typing) .k-send,
        body.korean-gray-ui #check-phone-app-wechat-chat .chat-input-bar:not(.is-typing) .k-send { display: none !important; }
        
        body.korean-gray-ui #wechat-chat-detail .my-message .message-bubble, body.korean-gray-ui #bubble-preview-container .my-message .message-bubble, body.korean-gray-ui #interface-preview-container .my-message .message-bubble, body.korean-gray-ui #check-phone-app-wechat-chat .my-message .message-bubble { background: #ebebeb; color: #676767; border-radius: 15px; padding: 6px 15px; font-size: 13px; box-shadow: none; border: 1px solid #cccccc; }
        body.korean-gray-ui #wechat-chat-detail .their-message .message-bubble, body.korean-gray-ui #bubble-preview-container .their-message .message-bubble, body.korean-gray-ui #interface-preview-container .their-message .message-bubble, body.korean-gray-ui #check-phone-app-wechat-chat .their-message .message-bubble { background: #ffffff; color: #676767; border: 1px solid #cccccc; box-shadow: none; border-radius: 15px; padding: 6px 15px; font-size: 13px; }
        
        body.korean-gray-ui .chat-time-center span { background: transparent !important; color: #999 !important; font-size: 11px !important; font-weight: 500; }
        body.korean-gray-ui .bubble-status-time { font-size: 10px !important; color: #b2b2b2 !important; margin-top: 4px !important; align-items: center !important; line-height: 1 !important; }
        body.korean-gray-ui .bubble-status-time span { color: #b2b2b2 !important; }
        body.korean-gray-ui .read-status-text { font-size: 0 !important; letter-spacing: 0 !important; display: inline-flex; align-items: center; }
        body.korean-gray-ui .read-status-text::after { content: "Read"; font-size: 10px; color: #b2b2b2; letter-spacing: normal; line-height: 1; }
        body.korean-gray-ui .bubble-timestamp-text { line-height: 1 !important; }
        body.korean-gray-ui .avatar-timestamp-text { line-height: 1 !important; }
        body.korean-gray-ui .quote-block { background: transparent !important; border: none !important; border-left: 2px solid #d0d0d0 !important; border-radius: 0 !important; padding: 2px 8px !important; color: #888 !important; }
        body.korean-gray-ui #quote-preview { background: transparent !important; border: none !important; border-left: 2px solid #d0d0d0 !important; border-radius: 0 !important; padding: 2px 8px !important; color: #888 !important; }
        body.korean-gray-ui .my-message .voice-text-bar { background: #ebebeb !important; border: 1px solid #cccccc !important; border-radius: 15px !important; color: #676767 !important; box-shadow: none !important; font-size: 12px !important; padding: 6px 12px !important; margin-top: 6px !important; }
        body.korean-gray-ui .their-message .voice-text-bar { background: #ffffff !important; border: 1px solid #cccccc !important; border-radius: 15px !important; color: #676767 !important; box-shadow: none !important; font-size: 12px !important; padding: 6px 12px !important; margin-top: 6px !important; }
        .icon-img-wrapper.has-custom-icon { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: transparent !important; border: none !important; box-shadow: none !important; }
        .icon-img-wrapper.has-custom-icon::after { display: none !important; }
        
        body.korean-gray-ui #wechat-chat-detail .transfer-bubble, body.korean-gray-ui #bubble-preview-container .transfer-bubble, body.korean-gray-ui #interface-preview-container .transfer-bubble { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 18px; padding: 12px 16px; width: auto; min-width: 220px; max-width: 280px; color: #333; box-shadow: none; }
        body.korean-gray-ui #wechat-chat-detail .my-message .transfer-bubble, body.korean-gray-ui #bubble-preview-container .my-message .transfer-bubble, body.korean-gray-ui #interface-preview-container .my-message .transfer-bubble { background: #ffffff; border: 1px solid #e0e0e0; }
        body.korean-gray-ui #wechat-chat-detail .transfer-bubble::before, body.korean-gray-ui #wechat-chat-detail .transfer-bubble::after, body.korean-gray-ui #bubble-preview-container .transfer-bubble::before, body.korean-gray-ui #bubble-preview-container .transfer-bubble::after, body.korean-gray-ui #interface-preview-container .transfer-bubble::before, body.korean-gray-ui #interface-preview-container .transfer-bubble::after { display: none !important; }
        body.korean-gray-ui #wechat-chat-detail .transfer-bubble-top, body.korean-gray-ui #bubble-preview-container .transfer-bubble-top, body.korean-gray-ui #interface-preview-container .transfer-bubble-top { margin-bottom: 0; align-items: center; }
        body.korean-gray-ui #wechat-chat-detail .transfer-bubble-bottom, body.korean-gray-ui #bubble-preview-container .transfer-bubble-bottom, body.korean-gray-ui #interface-preview-container .transfer-bubble-bottom { display: none; }
        body.korean-gray-ui #wechat-chat-detail .transfer-icon-wrapper, body.korean-gray-ui #bubble-preview-container .transfer-icon-wrapper, body.korean-gray-ui #interface-preview-container .transfer-icon-wrapper { width: 32px; height: 32px; background: transparent; border-radius: 50%; border: 1px solid #e0e0e0; }
        body.korean-gray-ui #wechat-chat-detail .my-message .transfer-icon-wrapper, body.korean-gray-ui #bubble-preview-container .my-message .transfer-icon-wrapper, body.korean-gray-ui #interface-preview-container .my-message .transfer-icon-wrapper { background: transparent; }
        body.korean-gray-ui #wechat-chat-detail .transfer-icon-wrapper i, body.korean-gray-ui #bubble-preview-container .transfer-icon-wrapper i, body.korean-gray-ui #interface-preview-container .transfer-icon-wrapper i { color: #ccc !important; font-size: 14px !important; }
        body.korean-gray-ui #wechat-chat-detail .transfer-info, body.korean-gray-ui #bubble-preview-container .transfer-info, body.korean-gray-ui #interface-preview-container .transfer-info { flex: 1; align-items: flex-start; margin-left: 12px; overflow: hidden; }
        body.korean-gray-ui #wechat-chat-detail .transfer-amount, body.korean-gray-ui #bubble-preview-container .transfer-amount, body.korean-gray-ui #interface-preview-container .transfer-amount { font-size: 15px !important; font-weight: 600 !important; color: #676767 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
        body.korean-gray-ui #wechat-chat-detail .transfer-title, body.korean-gray-ui #bubble-preview-container .transfer-title, body.korean-gray-ui #interface-preview-container .transfer-title { font-size: 11px !important; color: #999 !important; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
        body.korean-gray-ui #wechat-chat-detail .transfer-extra-text, body.korean-gray-ui #bubble-preview-container .transfer-extra-text, body.korean-gray-ui #interface-preview-container .transfer-extra-text { display: block; font-size: 11px !important; color: #ccc !important; font-family: 'Georgia', serif; font-style: italic; align-self: center; }
        body.korean-gray-ui #wechat-chat-detail .transfer-extra-text::after, body.korean-gray-ui #bubble-preview-container .transfer-extra-text::after, body.korean-gray-ui #interface-preview-container .transfer-extra-text::after { content: "Transfer"; }
        body.korean-gray-ui .send-btn { background: #555; border-radius: 18px; height: 36px; padding: 0 20px; font-weight: 600; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
        
        body.korean-gray-ui .avatar-msg-container { width: 36px; height: 36px; }
        body.korean-gray-ui .avatar-msg { border-radius: 50%; border: none; padding: 0; background: transparent; box-shadow: none; }
        
        body.korean-gray-ui .wechat-tab-bar {
            bottom: calc(10px + env(safe-area-inset-bottom, 0px));
            left: 20px;
            right: 20px;
            height: 70px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: none;
            border-radius: 24px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.02);
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        body.korean-gray-ui .wechat-tab-bar-inner {
            height: 40px;
            margin-top: 5px;
        }

        body.korean-gray-ui .tab-item {
            color: #999;
            position: relative;
        }
        
        body.korean-gray-ui .tab-item i {
            display: none;
        }
        
        body.korean-gray-ui .tab-text-cn {
            display: none;
        }
        
        body.korean-gray-ui .tab-text-en {
            display: block;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            font-size: 14px;
            letter-spacing: 0.5px;
            text-transform: capitalize;
        }
        
        body.korean-gray-ui .tab-item.active {
            color: #333;
            font-weight: 600;
        }
        
        body.korean-gray-ui .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 2px;
            background: #333;
            border-radius: 1px;
        }

        body.korean-gray-ui .wechat-tab-bar-deco {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 20px;
            margin-bottom: 5px;
            color: #d0d0d0;
            font-size: 10px;
            letter-spacing: 1px;
        }

        body.korean-gray-ui .wechat-tab-bar .badge {
            top: 0px !important;
            right: 10px !important;
            border: 1px solid #fff !important;
        }

        /* Korean UI specific overrides */
        body.korean-gray-ui #korean-profile-header { display: flex !important; flex-shrink: 0; }
        body.korean-gray-ui #wechat-search-container { background: #ffffff !important; padding: 10px 20px 20px !important; border-bottom: 1px solid #f5f5f5; flex-shrink: 0; }
        body.korean-gray-ui #wechat-search-box { background: transparent !important; padding: 0 0 0 10px !important; justify-content: flex-start !important; }
        body.korean-gray-ui #wechat-search-center { position: static !important; opacity: 1 !important; transform: none !important; color: #999 !important; font-size: 13px !important; font-weight: 500; }
        body.korean-gray-ui #wechat-search-center i { font-size: 18px; margin-right: 30px; color: #999; }
        body.korean-gray-ui #wechat-search-left-icon { display: none !important; }
        body.korean-gray-ui #wechat-search-input { display: none !important; }
        
        body.korean-gray-ui .chat-item { padding: 12px 20px; }
        body.korean-gray-ui .chat-item img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #e0e0e0; padding: 3px; background: #fff; }
        body.korean-gray-ui .chat-header .nickname { font-size: 14px; font-weight: 500; color: #000; }
        body.korean-gray-ui .last-message { font-size: 13px; color: #b2b2b2; margin-top: 4px; }
        body.korean-gray-ui .chat-time { display: block !important; font-size: 12px; color: #ccc; margin-right: 8px; }

        /* Discover & Me Korean UI */
        body.korean-gray-ui #wechat-discover-content { background: #ffffff !important; }
        body.korean-gray-ui #wechat-me-content { background: #f5f5f5 !important; }
        
        body.korean-gray-ui #moments-cover-container { border-radius: 0; box-shadow: none; margin-bottom: 0; }
        body.korean-gray-ui #moments-list { padding: 0 15px !important; margin-top: 0 !important; }
        body.korean-gray-ui .moment-item { background: transparent; border-radius: 0; margin: 0; padding: 15px 0; border: none; border-bottom: 1px solid #f5f5f5; box-shadow: none; }
        body.korean-gray-ui .moment-item .m-avatar { border-radius: 50%; width: 42px; height: 42px; border: 1px solid #eee; padding: 2px; }
        body.korean-gray-ui .moment-item .m-name { color: #555; font-size: 15px; font-weight: 600; }
        body.korean-gray-ui .moment-item .m-text { color: #333; font-size: 15px; margin-top: 0; }
        body.korean-gray-ui .moment-item .m-imgs { margin-top: 0; }
        body.korean-gray-ui .moment-item .m-imgs img { border-radius: 2px; }
        body.korean-gray-ui .moment-item [style*="#576b95"] { color: #555 !important; }
        
        body.korean-gray-ui .me-header { background: #ffffff; border-radius: 20px; margin: 15px; padding: 24px 20px; border: 1px solid #eaeaea; box-shadow: 0 4px 15px rgba(0,0,0,0.02); align-items: center; overflow: hidden; }
        body.korean-gray-ui .me-header img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid #eee; padding: 3px; }
        body.korean-gray-ui .me-info h2 { font-size: 22px; color: #333; }
        body.korean-gray-ui .me-info p { font-size: 13px; color: #999; margin-top: 4px; }
        
        body.korean-gray-ui .me-list { background: #ffffff; border-radius: 20px; margin: 0 15px 15px; border: 1px solid #eaeaea; box-shadow: 0 4px 15px rgba(0,0,0,0.02); padding: 4px 0; overflow: hidden; }
        body.korean-gray-ui .me-item { background: transparent; border-bottom: 1px solid #f5f5f5; padding: 16px 20px; }
        body.korean-gray-ui .me-item:last-child { border-bottom: none; }
        body.korean-gray-ui .me-item i:first-child { color: #888 !important; font-size: 18px; }
        body.korean-gray-ui .me-item span { font-size: 15px; color: #444; font-weight: 500; }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* Music App Styles */
        .music-playing #vinyl-record { animation-play-state: running !important; }
        .music-playing #mini-player-cover { animation-play-state: running !important; }
        .music-playing #vinyl-stylus { transform: rotate(0deg) !important; }

        @media (max-width: 480px) {
            :root {
                --nav-height: calc(44px + max(env(safe-area-inset-top), 10px));
                --col-width: calc((100vw - 40px - 54px) / 4);
            }
            body.has-status-bar {
                --nav-height: calc(68px + max(env(safe-area-inset-top), 5px));
            }
            html, body { 
                background-color: #000 !important; 
            }
            body { 
                padding: 0; 
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100%;
                height: 100vh;
                height: 100dvh;
                overflow: hidden;
            }
            .phone-frame { 
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100%; 
                height: 100%; 
                border-radius: 0; 
                transform: none; 
                box-shadow: none; 
                border: none;
                background-color: var(--bg-main) !important;
            }
            .status-bar { 
                padding-top: max(env(safe-area-inset-top), 5px);
                height: calc(24px + max(env(safe-area-inset-top), 5px));
            }
            .nav-bar { padding-top: max(env(safe-area-inset-top), 10px); }
            .chat-header-detail { padding-top: max(env(safe-area-inset-top), 10px); }
            .home-page { padding-top: calc(10px + max(env(safe-area-inset-top), 10px)); }
            
            body.has-status-bar .nav-bar { padding-top: calc(24px + max(env(safe-area-inset-top), 5px)); }
            body.has-status-bar .chat-header-detail { padding-top: calc(24px + max(env(safe-area-inset-top), 5px)); }
            body.has-status-bar .home-page { padding-top: calc(34px + max(env(safe-area-inset-top), 5px)); }
            
            .dock { bottom: max(env(safe-area-inset-bottom, 0px), 15px); }
            .page { padding-bottom: calc(84px + max(env(safe-area-inset-bottom, 0px), 15px)); }
        }
@keyframes eq {
                0% { height: 3px; }
                100% { height: 12px; }
            }
            @keyframes ecg-line {
                0% { stroke-dashoffset: 60; }
                100% { stroke-dashoffset: -60; }
            }
