:root{--primary:#ff8500;--primary-dark:#ee7900;--tab-h:64px}body{background:#f7f7f7;color:#222}.app{max-width:480px}.tabbar{max-width:480px;left:50%;right:auto;transform:translateX(-50%);width:100%;height:calc(64px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;padding-top:8px;background:#fff;z-index:40}.tabbar a{width:16.666%;display:flex;flex-direction:column;align-items:center;color:#999;font-size:12px;gap:2px}.tabbar a svg{width:25px;height:25px;color:#111}.tabbar a.on{color:#222}.tabbar a.on svg{color:#e6a020}.home-head{background:white;padding:24px 20px 15px}.home-head .brand{font-size:16px;font-style:normal;letter-spacing:0;font-weight:400;color:#222;text-shadow:none;display:flex;align-items:center;gap:10px;margin:8px 0 24px}.site-mark{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#fff4d9}.home-head .search{border:1px solid #eb950c;background:#f5f6f8;height:46px}.home-head .search svg{display:none}.home-head .search input{font-size:16px}.quick-actions{display:flex;justify-content:space-around;background:#fff5e9;padding:18px 10px 24px}.quick-actions a{display:flex;align-items:center;flex-direction:column;gap:8px;font-size:14px}.quick-actions i{width:60px;height:63px;border-radius:20px;color:white;display:grid;place-items:center;font-style:normal;font-size:31px;background:linear-gradient(145deg,#62c8f7,#2794ed)}.quick-actions a:nth-child(2) i{background:linear-gradient(145deg,#ffb263,#ff7800)}.quick-actions a:nth-child(3) i{background:linear-gradient(145deg,#ffe477,#ffc400)}.quick-actions a:nth-child(4) i{background:linear-gradient(145deg,#d76eff,#a22df6)}.home-games{background:white;border-radius:22px;padding:0 20px 8px}.seg-tabs{border:0;justify-content:flex-start;gap:20px;margin:0;padding:15px 0;background:white}.seg-tabs a{flex:none;font-size:16px;color:#666;padding:0}.seg-tabs a.on{color:#111;background:none;font-weight:600}.seg-tabs a.on:after{display:none}.seg-tabs .more-link{margin-left:auto;font-size:13px;color:#999}.cate-grid{padding:4px 0 14px;gap:18px 14px;grid-template-columns:repeat(5,minmax(0,1fr))}.cate-item .ico,.cate-item .ico.mobile-game{width:64px;height:64px;border-radius:16px;background:#f7f7f7;overflow:hidden}.cate-item .ico img{width:100%;height:100%;object-fit:cover}.cate-item .name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;margin-top:6px}.swiper-wrap{padding:0;margin:4px 0 0}.swiper{border-radius:10px;overflow:hidden;height:128px}.swiper .slide img{height:128px;object-fit:cover;width:100%}.notice-bar{margin:0;padding:14px 0;border:0;background:white;font-size:14px}.notice-bar .icon{color:#4088ff}.notice-bar .more{color:#999;font-size:12px}.section-title{display:none}.account-list{margin-top:22px;padding:0 20px;background:white}.account-card{border-radius:0;border-bottom:1px solid #f3f3f3;box-shadow:none;padding:18px 0;position:relative;min-height:130px;margin:0;display:block}.account-card .listing-title{font-size:16px;display:flex;align-items:center;gap:8px}.account-card .tag-top{background:#ff6848;font-size:11px;border-radius:4px;white-space:nowrap}.account-card .sub{font-size:12px;color:#999;margin-top:8px}.account-card .price{font-size:26px;color:#ff6e00;text-align:right;margin-top:18px;font-weight:600}.account-card .remain{position:absolute;right:0;top:46px;background:#999;color:white;font-size:11px;padding:4px 6px;border-radius:10px}.account-card .price small{font-size:19px}.recharge-notice{background:#f8c765;color:white;padding:10px 0}.login-invite{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom));width:calc(100% - 40px);max-width:440px;left:50%;transform:translateX(-50%);z-index:35;background:#333;color:white;border-radius:16px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}.login-invite a{background:#ff9900;border-radius:24px;padding:12px 18px}.login-invite small{display:block;color:#ccc;margin-top:4px}.uc-head{background:radial-gradient(ellipse at 90% 20%,#fff0d8,transparent 55%),linear-gradient(#fffcf1,#fff);padding:65px 18px 18px}.uc-head .uname{color:#222;font-weight:600}.uc-head .reg{color:#444}.uc-head .avatar{width:80px;height:80px;background:#eee;box-shadow:none}.uc-head .edit{top:90px;color:#333;border-color:#777;background:transparent;padding:4px 8px}.uc-stats{margin:0;background:#fff;border-radius:0;box-shadow:none;padding:8px 0 24px}.uc-stats .st+.st:before{display:none}.uc-stats .st .num{font-size:21px}.uc-stats .st .lab{font-size:14px;color:#444}.uc-box{border-radius:5px;padding:0 14px 14px;box-shadow:none;margin:12px 18px}.uc-box .box-hd{border-bottom:1px solid #f5f5f5;margin-bottom:14px}.uc-box .box-hd .t{font-weight:500}.uc-flow .fl .n{font-size:20px;font-weight:400}.uc-flow .fl .l{font-size:14px}.uc-grid{margin:12px 18px 40px;border-radius:5px;box-shadow:none}.uc-grid a .gi{background:none;color:#666;border-radius:0;width:40px;height:40px}.uc-grid a .gi svg{width:34px;height:34px}.uc-grid a .gl{font-size:14px}.detail-head{background:linear-gradient(120deg,#fffdf0,#fff);padding:22px 20px 34px}.detail-head .title{font-size:18px}.detail-head .price{color:red;font-size:38px}.detail-head .sub{display:inline-block;background:#f2f2f2;border-radius:14px;padding:2px 8px;color:#999}.detail-info{margin:0;background:#fff;padding:14px 20px}.detail-info .info-row{font-size:16px;padding:8px 0}.detail-service{margin:0;padding:20px;justify-content:space-between;background:#fcfcfc;color:#777;font-size:12px}.detail-flow{margin:0;padding:24px 20px 35px;border-radius:0 0 20px 20px}.detail-flow .step i{background:#edb578}.detail-flow .step span{color:#d7a675}.buybar{max-width:480px;left:50%;right:auto;transform:translateX(-50%);width:100%;gap:8px;padding:10px}.buybar .bar-tab{width:48px;font-size:11px}.buybar .buy-btn{background:#ff8500;border-radius:28px}.chat-overlay{position:fixed;inset:0;background:#0009;display:grid;place-items:center;z-index:100}.chat-dialog{width:84%;max-width:400px;background:white;border-radius:16px;padding:26px 40px;text-align:center}.chat-dialog h3{font-weight:400;font-size:21px;margin-bottom:30px}.chat-dialog input{border:0;border-bottom:1px solid #eee;border-radius:0;text-align:center;width:100%;padding:12px;font-size:16px}.chat-dialog button,.orange-btn{border:0;background:#ff8500;color:white;padding:13px 24px;border-radius:25px;font-size:16px;cursor:pointer}.chat-dialog button{width:100%;margin-top:30px}.chat-dialog .cancel{background:white;color:#999;margin-top:8px;padding:6px;font-size:13px}.chat-page{max-width:480px;margin:auto;min-height:100vh;background:#f6f6f6;padding-bottom:150px}.chat-header{position:sticky;top:0;background:white;padding:16px;display:flex;gap:14px;z-index:4}.chat-header a{color:#333}.chat-content{padding:16px}.chat-card{display:block;background:white;padding:16px;border-radius:12px;margin-bottom:12px;color:#333}.chat-message{display:flex;justify-content:flex-start;margin:12px 0}.chat-message.mine{justify-content:flex-end}.chat-message section{max-width:82%;min-width:80px}.chat-message p{background:white;border-radius:12px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.chat-message.mine p{background:#ffe3ba}.chat-message small{color:#999;font-size:10px}.chat-composer{position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));width:100%;max-width:480px;display:flex;padding:10px;background:white;gap:8px;box-sizing:border-box}.chat-composer textarea{flex:1;min-width:0;height:44px;resize:none;border:1px solid #ddd;border-radius:10px;padding:10px;font-family:inherit}.chat-help{background:#fff8e9;padding:15px;font-size:13px;line-height:1.7}.chat-seller-form{padding:16px;background:white;border-radius:12px;margin-bottom:12px}.chat-seller-form select,.chat-seller-form input{width:100%;padding:10px;margin:8px 0;border:1px solid #ddd;border-radius:6px;box-sizing:border-box}.chat-error{color:#b42318;font-size:13px;padding:8px}button:disabled{opacity:.5}@media(max-width:360px){.cate-item .ico,.cate-item .ico.mobile-game{width:50px;height:50px}.home-games{padding:0 14px}.uc-flow .fl .l{font-size:11px}}
[hidden]{display:none!important}.seg-tabs{width:100%;max-width:none;border-radius:0}.seg-tabs a.on{box-shadow:none}.chat-seller-form h3{margin:0 0 10px}.chat-seller-form p{font-size:13px;color:#777}.quick-actions svg{display:block}

/* 第二版：购买列表、空会话页 */
.buy-page .topbar{height:66px;background:linear-gradient(110deg,#fffefa,#fff4cf);padding:10px 14px;border:0}.buy-page .topbar .search{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:28px;background:#f3f3f3;height:44px}.buy-page .topbar .search input{border:0;background:transparent;width:80%;font-size:16px;padding:10px}.buy-page .sort-bar{display:flex;background:linear-gradient(110deg,#fffefa,#fff8e1);border:0;padding:12px 20px 18px;justify-content:space-around;position:sticky;top:66px;z-index:5}.buy-page .sort-bar a{color:#222;font-size:15px}.buy-page .goods-list{padding:12px 12px 0}.buy-page .goods-card{background:white;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:140px;padding:20px 26px;border-radius:0;margin:0;border-bottom:1px solid #f1f1f1;box-shadow:none}.buy-page .goods-card .body{flex:1;min-width:0}.buy-page .title-row{display:flex;align-items:center;gap:8px}.buy-page .type-tag{background:#7789f5;color:#fff;font-size:10px;border-radius:10px;padding:3px 5px;white-space:nowrap}.buy-page .tt{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buy-page .sub-row{display:flex;color:#999;gap:5px;font-size:14px;margin:12px 0 14px}.buy-page .cate-tag{background:#f1f1f1;color:#999;padding:3px 7px;border-radius:16px;font-size:13px}.buy-page .right{flex-shrink:0;text-align:right}.buy-page .right .price{font-size:26px;color:#f13225;font-weight:400;white-space:nowrap}.buy-page .right .price small{font-size:17px}.buy-page .right .remain{font-size:12px;color:#333;background:none;margin-top:10px}.chat-header{height:52px;justify-content:center;align-items:center}.chat-header strong{font-size:18px}.chat-header #chatBack{position:absolute;left:16px}.chat-page{background:#f8f8f8}.chat-page .chat-content:empty{padding:0}.seller-code{font-size:12px;color:#666;margin-top:12px}.seller-code strong{color:#e87900;letter-spacing:2px}@media(max-width:360px){.buy-page .goods-card{padding:18px 12px}.buy-page .right .price{font-size:23px}.buy-page .sub-row{font-size:12px}}
.cate-item .ico.search{width:64px;height:64px;background:#f7f7f7;color:#ffc21a}.cate-item .ico.search svg{width:36px;height:36px}@media(max-width:360px){.cate-item .ico.search{width:50px;height:50px}}

.chat-composer{flex-wrap:wrap;align-items:center}.chat-tools{width:100%;display:flex;align-items:center;gap:14px}.chat-tools button{font-size:24px;background:white;border:0;color:#555;padding:2px 4px}.chat-tools span{font-size:11px;color:#999}.chat-page{padding-bottom:210px}.emoji-picker{display:flex;flex-wrap:wrap;max-height:120px;overflow:auto;width:100%;gap:5px}.emoji-picker button{font-size:24px;border:0;background:white;cursor:pointer}.chat-message img{display:block;max-width:240px;width:100%;max-height:320px;object-fit:contain;cursor:zoom-in;border-radius:8px}.image-draft{width:100%;display:flex;align-items:center;gap:10px}.image-draft img{max-height:90px;max-width:120px}.image-draft button{padding:8px;border:1px solid #ddd;border-radius:8px;background:#fff}.voice-panel{position:fixed;top:65px;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:440px;background:#333;color:#fff;padding:18px;border-radius:16px;z-index:70;box-shadow:0 5px 25px #0003}.voice-panel strong{display:block;margin-bottom:12px}.voice-panel button{border:0;border-radius:20px;padding:10px 15px;margin:3px;background:#ff8500;color:white}.voice-panel #voiceEnd{background:#e64848}.chat-message .media-load{font-size:12px;color:#666;background:none;border:0}

/* 聊天页铺满可视窗口，只在消息区域滚动。 */
body:has(.chat-page){overflow:hidden;height:100dvh;overscroll-behavior:none}.chat-page{position:fixed;top:var(--chat-top,0);left:0;width:100%;max-width:none;height:var(--chat-height,100dvh);min-height:0;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden}.chat-page .chat-header{position:relative;top:auto;flex:0 0 52px}.chat-page .chat-error{flex:none;padding:0 12px}.chat-page .chat-error:empty{display:none}.chat-page .chat-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-anchor:none;-webkit-overflow-scrolling:touch;padding:12px 16px;scroll-behavior:auto}.chat-page .chat-composer{position:relative;bottom:auto;left:auto;max-width:none;width:100%;flex:0 0 auto;padding:8px 12px;gap:8px}.chat-page .chat-composer textarea{font-size:16px;line-height:22px;height:44px;margin:0}.chat-page .chat-tools{gap:16px}.chat-tools button{display:grid;place-items:center;width:36px;height:36px;padding:5px;touch-action:manipulation}.chat-tools button svg{display:block}.chat-page .tabbar{position:relative;transform:none;left:auto;right:auto;bottom:auto;max-width:none;flex:0 0 calc(64px + env(safe-area-inset-bottom));height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}.chat-keyboard .chat-page .tabbar{display:none}.chat-page .chat-message section{max-width:82%}.chat-page .chat-message img{max-width:260px;width:auto;max-height:320px}.chat-page .chat-composer [type=submit]{touch-action:manipulation}.chat-page .voice-panel{position:absolute;top:60px}.chat-page .image-draft{max-height:110px;overflow:auto}

.home-games .swiper{height:auto;aspect-ratio:3.68;background:transparent;isolation:isolate}.home-games .swiper-track{height:100%}.home-games .swiper .slide{height:100%;overflow:hidden}.home-games .swiper .slide img{height:100%;width:100%;object-fit:cover}.home-games .swiper .slide.banner-trim img{transform:scaleY(1.1)}

/* 全站语音：全屏弹窗与最小化悬浮按钮。 */
.site-voice-root{position:fixed;inset:0;width:100%;height:100dvh;z-index:2147483000;background:linear-gradient(150deg,#182231,#374253);color:white;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top) 20px env(safe-area-inset-bottom);font-family:-apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif;box-sizing:border-box}.site-voice-card{width:100%;max-width:520px;text-align:center}.site-voice-minimize{position:absolute;right:22px;top:calc(20px + env(safe-area-inset-top));background:transparent;color:white;border:1px solid #ffffff77;width:44px;height:40px;border-radius:12px;font-size:24px}.site-voice-avatar{width:112px;height:112px;display:grid;place-items:center;margin:0 auto 32px;border-radius:32px;background:linear-gradient(140deg,#ffb34f,#ff7900);font-size:60px}.site-voice-card h2{font-size:25px;font-weight:500;margin:0 0 16px}.site-voice-card p{font-size:16px;color:#d6dbe3;line-height:1.7}.site-voice-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:70px}.site-voice-actions button{background:#69788d;color:#fff;border:0;border-radius:36px;min-width:78px;height:64px;padding:0 18px;font-size:16px;cursor:pointer}.site-voice-actions [data-accept]{background:#36b974}.site-voice-actions [data-end]{background:#ea4c59}.site-voice-note{margin-top:40px;font-size:12px!important;color:#8e9aaa!important}.site-voice-root.is-minimized{inset:auto 14px calc(80px + env(safe-area-inset-bottom)) auto;width:150px;height:64px;padding:0;background:#263749;border-radius:18px;box-shadow:0 5px 18px #0003}.site-voice-bubble{display:flex;align-items:center;gap:8px;padding:12px;color:white;background:transparent;border:0;width:100%;height:100%;font-size:12px;cursor:pointer}.site-voice-bubble>span:first-child{font-size:26px}.site-voice-bubble [data-bubble]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-voice-frame{position:fixed;inset:0;display:block;width:100%;height:100dvh;border:0;background:#fff;z-index:2147482000}.site-voice-shell{overflow:hidden!important}.site-voice-shell> :not(.site-voice-root):not(.site-voice-frame){display:none!important}

.site-voice-avatar{overflow:hidden}.site-voice-avatar img{width:100%;height:100%;object-fit:cover}.site-voice-card [data-clock]{font-size:30px;font-variant-numeric:tabular-nums;color:white;margin:10px 0}.chat-message.call-event,.chat-message.call-event.mine{justify-content:center}.chat-message .call-record{background:#eef2f6;color:#536171;font-size:13px;text-align:center;border-radius:18px}.chat-message.call-event small{display:block;text-align:center}

.tabbar a{position:relative}.message-badge{position:absolute;top:-2px;left:calc(50% + 6px);background:#f24646;color:white;border-radius:10px;min-width:16px;padding:1px 4px;font-size:10px;line-height:14px;text-align:center}.chat-unread{float:right;background:#f24646;color:white;font-size:11px;padding:1px 6px;border-radius:12px}.site-message-toast{position:fixed;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:2147483500;width:calc(100% - 24px);max-width:430px;background:#fff;border:1px solid #eee;border-radius:14px;box-shadow:0 6px 25px #0002;padding:14px;color:#333;text-align:left;cursor:pointer}.chat-header-actions{position:absolute;right:10px;display:flex;align-items:center;gap:10px}.chat-header-actions button{border:0;background:transparent;color:#666;font-size:12px;cursor:pointer;padding:4px}.chat-header-actions #messageNotify{font-size:21px}.chat-block-notice{flex:none;padding:8px 12px;background:#fff3e7;color:#94611e;font-size:12px;text-align:center}.site-voice-card [data-outputs] button{padding:10px;border:0;background:#fff2;color:white;border-radius:10px;margin:4px}

body.site-voice-shell>.site-message-toast{display:block!important}.chat-card{position:relative}.chat-card>.chat-unread{position:absolute;right:14px;bottom:14px}

.site-voice-actions button svg{width:28px;height:28px;display:block;margin:auto}.site-voice-actions button{min-width:64px;width:64px;padding:0;display:grid;place-items:center}.site-voice-actions [data-end] svg{transform:rotate(135deg)}.site-voice-actions .is-muted{background:#bb7f32}.site-voice-bubble svg{width:26px;height:26px}.chat-message.call-event{justify-content:flex-start}.chat-message.call-event.mine{justify-content:flex-end}.chat-message .call-record{display:flex;align-items:center;gap:8px;text-align:left}.call-record svg{width:20px;height:20px;flex-shrink:0}.chat-message.call-event.mine .call-record{background:#ffe3ba}.call-sender{display:flex;align-items:center;gap:7px;color:#666;font-size:12px;margin-bottom:6px}.chat-message.mine .call-sender{justify-content:flex-end}.call-sender-avatar{position:relative;width:26px;height:26px;background:#e5e9ed;border-radius:50%;display:grid;place-items:center;overflow:hidden}.call-sender-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.chat-message.call-event small{text-align:left}.chat-message.call-event.mine small{text-align:right}

.cate-item .name{min-height:18px}.cate-item .ico img{display:block}.cate-item{min-width:0}

/* 防止iOS键盘收起后遗留offsetTop造成头部大留白。 */
html.chat-document{height:100%;overflow:hidden;overscroll-behavior:none}body.chat-layout{position:fixed;inset:0 auto auto 0;width:100%;height:var(--chat-height,100%);margin:0;overflow:hidden;overscroll-behavior:none}.chat-layout .chat-page{position:absolute;inset:0;width:100%;height:100%;min-height:0;top:0!important;transform:none}.chat-layout .chat-header{flex:0 0 52px;position:relative;top:0}.chat-layout .chat-content{flex:1 1 auto;min-height:0}.chat-layout .chat-composer{flex-shrink:0}.chat-layout .chat-composer textarea{font-size:16px;-webkit-text-size-adjust:100%}.chat-layout .tabbar{flex-shrink:0}

.chat-layout .chat-header,.chat-layout .chat-composer{transform:translateZ(0)}.chat-layout #composer [type=submit][aria-disabled="true"]{opacity:.6}.chat-layout .chat-content{overflow-anchor:none;scroll-behavior:auto!important}.chat-layout #composer [type=submit]{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

.chat-layout .chat-header,.chat-layout .chat-composer{transform:none}.chat-layout .chat-content{contain:layout style}.chat-layout,.chat-layout .chat-page{transition:none!important;animation:none!important}

.planet-home{margin:0;background:#eef7fb;color:#122c45;font-family:system-ui,sans-serif}.planet-main{max-width:560px;margin:auto;min-height:100dvh;padding-bottom:calc(80px + env(safe-area-inset-bottom));background:#f7fcff}.planet-main header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:#fff}.planet-main header a{color:#125d90;text-decoration:none}.planet-main header span{font-size:13px;color:#45627c}.planet-hero{position:relative}.planet-hero img,.planet-market img,.planet-guide-img{display:block;width:100%;height:auto}.planet-dots{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);display:flex}.planet-dots button{border:0;background:transparent;width:30px;height:28px;cursor:pointer}.planet-dots button:before{content:'';display:block;margin:auto;border-radius:99px;width:8px;height:8px;background:#ffffffa8}.planet-dots button[aria-pressed=true]:before{background:#fff;box-shadow:0 0 0 2px #1269a0}.planet-section{padding:16px}.planet-section h1{font-size:22px;margin:0 0 14px}.planet-market{display:block;overflow:hidden;border-radius:16px;background:#fff;color:#125d90;text-decoration:none;box-shadow:0 5px 18px #22648c14}.planet-market span{display:flex;justify-content:space-between;padding:12px 14px}.planet-links{display:flex;gap:12px;padding-top:0}.planet-links a,.planet-cta{border-radius:12px;padding:12px;background:#dff3ff;color:#10517a;text-decoration:none}.planet-guide-img{border-radius:12px}.planet-section li{margin:14px 0;line-height:1.55}.planet-cta{display:inline-block}.planet-home .tabbar a.on svg{color:#1474b4}.friend-panel{flex:0 1 auto;overflow:auto;max-height:60%;padding:12px 16px;background:#f1faff;border-bottom:1px solid #dceaf4}.friend-panel p,.friend-panel h2{margin:6px 0 10px;font-size:15px}.friend-panel form,.friend-row{display:flex;gap:8px;align-items:center}.friend-panel input{flex:1;min-width:0;padding:8px;border:1px solid #a5bed0;border-radius:8px;font-size:16px}.friend-panel button{border:0;border-radius:8px;background:#12699b;color:white;padding:8px;white-space:nowrap}.friend-row{padding:7px 0}.friend-row span{flex:1;overflow-wrap:anywhere}

.friend-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.friend-panel{background:#fff;padding:14px 16px}.friend-list{margin-top:10px;color:#4b6174}.friend-row{border-top:1px solid #edf1f5;padding:10px 0}.friend-dialog{border:0;border-radius:18px;padding:20px;width:min(380px,calc(100vw - 32px));box-sizing:border-box;color:#15273e;box-shadow:0 16px 60px #1234}.friend-dialog::backdrop{background:#10233e88}.friend-dialog h2{margin:0;font-size:20px}.friend-dialog form{display:grid;gap:10px}.friend-dialog input,.friend-dialog button{padding:10px 12px;border-radius:10px;font-size:16px}.friend-dialog input{width:100%;border:1px solid #b8cadd}.friend-dialog button{border:0;background:#176bb4;color:white}.friend-dialog [role=status]{margin-top:10px;color:#205779}.chat-content .chat-card{border:1px solid #e7edf4;box-shadow:0 2px 8px #17305208;border-radius:13px}

.inbox-layout .chat-page{background:#f4f4fa}.inbox-layout .chat-header{display:none}.inbox-layout .friend-panel{background:transparent;max-height:none;flex:none;padding:20px 12px 0}.inbox-layout .friend-toolbar h1{margin:0;font-size:26px}.inbox-layout .friend-toolbar p{color:#626681;font-size:13px}.inbox-layout .friend-toolbar button{border:1px solid #e2def2;border-radius:16px;background:#fff;color:#6049c3}.inbox-switch{display:flex;gap:20px;margin:14px 0}.inbox-switch button,.inbox-switch button:hover{padding:0;background:none;color:#79778d;font-size:17px;font-weight:600}.inbox-switch button[aria-pressed=true]{color:#20213b}.inbox-layout #inboxSearch{width:100%;background:#fff;border:1px solid #e3e0ef;border-radius:12px;padding:12px}.inbox-layout #inboxLabel{font-size:13px;color:#626681;margin:11px 0 5px}.inbox-layout .chat-content,.inbox-contacts{padding:8px 12px;overflow:auto;min-height:0;flex:1}.inbox-layout [hidden]{display:none!important}.inbox-layout .inbox-card{display:flex;align-items:center;gap:12px;padding:14px;background:white;border:1px solid #e3e0ef;color:#24253d;margin-bottom:9px}.inbox-avatar{position:relative;overflow:hidden;display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:50%;background:#ede8ff;color:#5945bb}.inbox-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.inbox-copy{min-width:0;flex:1}.inbox-copy small,.inbox-copy p{display:block;margin:4px 0 0;color:#626681;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inbox-meta{font-size:12px;color:#626681}.inbox-meta b{display:block;float:none;margin-top:5px}.inbox-empty{color:#626681;text-align:center;padding:18px}.inbox-contacts .friend-row{background:#fff;border-radius:12px;margin-bottom:8px;padding:12px}.inbox-contacts button{border:0;border-radius:8px;padding:8px;background:#ede8ff;color:#533daf}

.friend-dialog{padding:22px;border:1px solid #eee8fa}.friend-dialog p{line-height:1.6;color:#565570}.friend-dialog label{font-weight:600;font-size:14px;color:#33304c}.friend-dialog input:focus{outline:2px solid #8c72e5;outline-offset:1px}.friend-dialog form button{background:#654abf;font-weight:600;min-height:44px}.friend-dialog [data-close]{background:#f0ebfc;color:#5642a8}.friend-dialog [role=status]{min-height:20px}

.inbox-layout [data-add]{display:inline-flex;align-items:center;gap:4px}.platform-notice{width:100%;text-align:left;cursor:pointer;font:inherit}.platform-notice .inbox-copy{display:block}#platformNotice{max-height:85dvh;overflow:auto}#platformNotice article{white-space:pre-wrap;line-height:1.7}

.new-friends-entry{display:block;padding:8px 12px;border:1px solid #e2def2;border-radius:12px;background:white;color:#6049c3;cursor:pointer}.friend-avatar{width:40px;height:40px;object-fit:cover;border-radius:50%;flex:none}.friend-dialog .friend-list{max-height:55dvh;overflow:auto}.friend-dialog .friend-row{display:flex;align-items:center;gap:8px}.friend-dialog .friend-row span{flex:1}.platform-notice{text-decoration:none}

.peer-identity{display:flex;align-items:center;gap:12px;margin-top:16px}.peer-identity small{display:block;color:#60647a;margin-top:4px}.peer-actions{display:grid;gap:8px}.peer-actions button{background:#fff1f2;color:#a62037}.peer-identity img[hidden]{display:none}

#messageNotify[hidden]{display:none!important}.peer-settings{display:grid;gap:10px;margin:12px 0}.peer-settings [data-results]{max-height:25vh;overflow:auto;overflow-wrap:anywhere}.peer-settings label{display:flex;align-items:center;gap:8px}.peer-settings label input{width:auto}#peerProfile{max-height:85dvh;overflow:auto}.friend-dialog form button,.inbox-layout [data-add],.new-friends-entry{color:#896023;background:#fff4dc;border-color:#eed7a7}

#peerProfile .peer-identity{padding:12px;background:#fff8e9;border-radius:14px}
#peerProfile .peer-settings .peer-toggle-row{justify-content:space-between;margin:0;padding:10px 12px;border:1px solid #eee5d6;border-radius:10px;background:#fff;min-height:44px;cursor:pointer;font-size:15px}
#peerProfile .peer-toggle-row input{appearance:none;flex:none;width:38px;height:22px;margin:0;border:0;border-radius:12px;background:#cbc8c3;position:relative;cursor:pointer}
#peerProfile .peer-toggle-row input::before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff}
#peerProfile .peer-toggle-row input:checked{background:#a76918}
#peerProfile .peer-toggle-row input:checked::before{left:19px}
#peerProfile .peer-toggle-row input:focus-visible{outline:2px solid #a76918;outline-offset:3px}

.new-friends-entry.inbox-card{width:100%;text-align:left;margin:4px 0 8px;font:inherit}.chat-read-receipt{color:#756d5d}

.friend-request-dialog .friend-request-content{text-align:center;padding:20px 0}.friend-request-avatar{width:80px;height:80px;margin:0 auto 16px;border-radius:50%;overflow:hidden;background:#ede8ff}.friend-request-avatar img{width:100%;height:100%;object-fit:cover}.friend-request-dialog h3{font-size:18px;font-weight:600;margin:0 0 8px;color:#24253d}.friend-request-message{color:#626681;font-size:14px;margin:0}.friend-request-actions{display:flex;gap:10px;margin-top:20px}.friend-request-actions button{flex:1;padding:12px;border:0;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer}.btn-accept{background:#36b974;color:#fff}.btn-reject{background:#f1f1f1;color:#666}.friend-request-dialog [role=status]{min-height:24px;margin-top:12px;color:#36b974;font-size:14px}
