/* All phone changes are opt-in; desktop layout stays unchanged. */
body.mobile-client{--mobile-height:100dvh;--mobile-nav:calc(64px + env(safe-area-inset-bottom,0px));height:var(--mobile-height);min-height:0;width:100%;overflow:hidden;background:#fff;display:block;padding-top:env(safe-area-inset-top,0px);font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
.mobile-client #accounts,.mobile-client #functionRail,.mobile-client #conversationDivider{display:none!important}
.mobile-client #chatPane,.mobile-client #conversations,.mobile-client #settingsPane,.mobile-client #remindersPane,.mobile-client #explorePane,.mobile-client #mobileMe{position:absolute;left:0;right:0;top:env(safe-area-inset-top,0px);bottom:var(--mobile-nav);width:100%!important;max-width:none;min-width:0;height:auto;margin:0;border:0;overflow:hidden}
.mobile-client #chatPane{display:none}.mobile-client.mobile-chatting #chatPane{display:flex;bottom:0}
.mobile-client.mobile-chatting #conversations,.mobile-client.mobile-chatting #mobileTabs{display:none!important}
.mobile-client [hidden]{display:none!important}
.mobile-client #conversations{background:#fff;display:flex}.mobile-client #conversations>header{display:flex;align-items:center;gap:10px;flex-shrink:0;height:64px;padding:9px 14px;background:#fff;border-bottom:1px solid #edf0f3}
.mobile-client #conversations>header>b{flex:1;font-size:20px;font-weight:650;color:#202630}.mobile-client #status{position:absolute;top:54px;right:16px;font-size:10px}
.mobile-client .mobile-control{display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:#354252;min-width:42px;min-height:42px;padding:8px}
.mobile-client #mobileHeaderAvatar{width:40px;height:40px;min-width:40px;min-height:40px;border-radius:12px;background:#347df1;color:#fff;padding:7px;overflow:hidden}
#mobileHeaderAvatar img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.mobile-client #conversations .quick-actions{margin:0;position:relative;top:auto;right:auto;flex-shrink:0}.mobile-client #plusMenu{width:40px;height:42px;font-size:30px;padding:0;background:transparent;color:#354252}
.mobile-client #plusActions{top:44px;right:0;z-index:30;min-width:168px}.mobile-client #plusActions button{min-height:46px;font-size:15px}
.mobile-client #search{display:none;margin:12px 14px;height:44px;flex-shrink:0;font-size:16px;background:#f3f5f8}.mobile-client.mobile-search #search{display:block}
.mobile-client[data-mobile-tab=messages] .contact-tabs{display:none}.mobile-client[data-mobile-tab=contacts] #messagesTab{display:none}.mobile-client[data-mobile-tab=contacts] .contact-tabs{padding:10px 16px;gap:10px;flex-shrink:0}.mobile-client .contact-tabs button{min-height:42px;font-size:16px;flex:1}
.mobile-client #roomList{min-height:0;overflow:auto;overscroll-behavior:contain}.mobile-client .room{min-height:80px;padding:14px 16px;gap:12px;border-bottom:1px solid #f0f2f5}
.mobile-client .list-avatar{width:48px;height:48px;border-radius:13px}.mobile-client .room-body strong{font-size:16px}.mobile-client .room-body small{font-size:13px}.mobile-client .folder-heading{min-height:46px}
.mobile-client .mobile-empty{position:absolute;top:38%;left:0;right:0;text-align:center;color:#a5adb8;pointer-events:none;font-size:15px}.mobile-empty>.ui-icon{width:78px;height:78px;stroke:#82aae7;stroke-width:1.2}
.mobile-client .mobile-tabs{position:absolute;bottom:0;left:0;right:0;height:var(--mobile-nav);padding:5px 8px calc(4px + env(safe-area-inset-bottom,0px));display:flex;background:#f8f9fb;border-top:1px solid #edf0f3;z-index:70}
.mobile-tabs button{flex:1;min-width:0;display:flex!important;flex-direction:column;gap:3px;padding:4px!important;border-radius:10px;color:#a4abb6!important;font-size:11px}.mobile-tabs button .ui-icon{width:26px;height:26px;stroke-width:1.9}.mobile-tabs button[aria-current=page]{color:#347df1!important}.mobile-tabs button[aria-current=page] .ui-icon{fill:#347df111}
.mobile-client #chatTitle{min-height:64px;height:auto;flex-shrink:0;padding:10px 12px 10px 52px;gap:9px;background:#fff;font-size:16px}.mobile-client #chatTitle>.avatar{width:38px;height:38px;min-width:38px}.mobile-client #chatTitle small{font-size:10px;overflow-wrap:anywhere}.mobile-client #mobileChatBack{position:absolute;top:10px;left:3px;z-index:10}.mobile-client #messages{padding:16px 12px;min-height:0;overscroll-behavior:contain}
.mobile-client .message-row{max-width:96%;gap:7px}.mobile-client .message-row>.avatar{width:32px;min-width:32px;height:32px}.mobile-client .bubble{font-size:16px;padding:10px 12px}.mobile-client .image-bubble{padding:0}.mobile-client .image-bubble img{max-width:min(240px,66vw)}.mobile-client .msg{margin-bottom:16px}
.mobile-client #composer{height:auto;min-height:126px;max-height:225px;grid-template-rows:42px auto minmax(58px,1fr);padding:0 12px calc(10px + env(safe-area-inset-bottom,0px));gap:0 8px;background:#fff}
.mobile-client #composer .chat-tools{height:42px;gap:2px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.mobile-client #composer .chat-tools>button{min-width:38px;min-height:38px;padding:6px}.mobile-client #composer .chat-tools #recordsButton{font-size:12px;padding:7px;white-space:nowrap;margin-left:auto}.mobile-client #composer #text{min-height:58px;height:64px;max-height:125px;font-size:16px;line-height:1.5;padding:10px 0}.mobile-client #composer #send{height:44px;width:44px;align-self:center}
.mobile-client #emojiPanel{left:6px;right:6px;width:auto;max-width:none;max-height:250px}.mobile-client .message-reply-composer{max-height:82px;overflow:auto}.mobile-client #notice{max-width:90%;width:max-content;bottom:calc(var(--mobile-nav) + 16px);z-index:2500;font-size:13px}
.mobile-client dialog{width:calc(100% - 24px)!important;max-width:540px!important;max-height:calc(var(--mobile-height) - 30px)!important;left:0!important;top:0!important;margin:auto!important;transform:none!important;box-sizing:border-box;overflow:auto;padding:20px}
.mobile-client dialog input:not([type=checkbox]),.mobile-client dialog textarea,.mobile-client dialog select{font-size:16px!important;max-width:100%}.mobile-client dialog button{min-height:40px}.mobile-client #loginDialog{padding:26px 22px;max-height:calc(var(--mobile-height) - 24px)!important}.mobile-client #loginDialog[data-startup=true]{width:100%!important;max-width:none!important;height:var(--mobile-height);max-height:var(--mobile-height)!important;border-radius:0;border:0;box-shadow:none;padding:32px 26px}.mobile-client #loginForm{max-width:390px;margin:auto}.mobile-client #captchaRow{min-width:0}.mobile-client #captchaImage{width:92px;flex-shrink:0}
.mobile-client #selfProfileDialog{padding:0!important}.mobile-client #profileDragHandle{touch-action:auto!important;cursor:default}.mobile-client .room-menu{max-width:calc(100vw - 24px);min-width:185px;max-height:70vh;overflow:auto;z-index:2200}.mobile-client .room-menu button{min-height:45px;font-size:15px}.mobile-client #messages,.mobile-client #roomList{-webkit-touch-callout:none}
.mobile-client #mobileMe{background:#f5f6f8;overflow:auto;padding:18px 0}.mobile-profile-entry{display:flex;align-items:center;gap:18px;width:100%;padding:24px 22px 28px;margin-bottom:10px;background:#fff;text-align:left;border-radius:0}.mobile-my-avatar{display:grid;place-items:center;flex-shrink:0;width:68px;height:68px;border-radius:50%;overflow:hidden;background:#e6f0ff;color:#347df1;font-size:28px}.mobile-my-avatar img{width:100%;height:100%;object-fit:cover}.mobile-my-identity{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px}.mobile-my-identity strong{font-size:23px;color:#252a33;overflow-wrap:anywhere}.mobile-my-identity small{font-size:15px;color:#7c8490}.mobile-chevron{font-size:28px;color:#a9afb8}
.mobile-client .mobile-my-row{display:flex;justify-content:flex-start;gap:14px;width:100%;min-height:66px;padding:14px 23px;background:#fff;border-bottom:1px solid #f0f1f3;border-radius:0;text-align:left}.mobile-my-row>.ui-icon{color:#438cdf}.mobile-my-row>span{flex:1;font-size:17px}.mobile-my-row>small{font-size:13px;color:#999}.mobile-my-row>b{font-size:24px;font-weight:400;color:#aaa}.mobile-my-row>em{font-size:12px;font-style:normal;background:#e84e60;color:#fff;padding:3px 7px;border-radius:20px}.mobile-my-row:first-of-type .ui-icon{color:#52ae64}
.mobile-client #mobileAccounts>button{display:block;width:100%;margin-top:10px;padding:14px;text-align:left}.mobile-client #mobileAccounts>h2{font-size:20px}
.mobile-client #settingsPane>header,.mobile-client #remindersPane>header{min-height:64px;height:auto;padding:10px 14px;display:flex;align-items:center;gap:10px}.mobile-client .settings-content,.mobile-client .reminder-content{padding:14px;min-height:0;overflow:auto}.mobile-client .settings-card{padding:16px}.mobile-client .request-row{flex-wrap:wrap;padding:15px;gap:10px}.mobile-client .broadcast-layout{display:block}.mobile-client #broadcastRecipients{max-height:190px}
.mobile-client .explore-toolbar{height:auto;min-height:64px;padding:10px 8px;gap:4px;flex-wrap:wrap}.mobile-client .explore-controls{display:none}.mobile-client #exploreTabs{flex:1;min-width:0}.mobile-client #exploreFrame{width:100%;height:100%}.mobile-client #exploreViewport{min-height:0}.mobile-client #exploreFootnote{padding:8px;font-size:12px}
.mobile-client dialog.mobile-task-page{position:absolute;inset:env(safe-area-inset-top,0px) 0 var(--mobile-nav)!important;margin:0!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto;border:0;border-radius:0;box-shadow:none;background:#f5f6f8;padding:18px 16px;z-index:50}.mobile-task-page>.grading-work-head{padding:6px 0 14px;margin:0}.mobile-task-page>.grading-work-head h2{border-left:4px solid #347df1;padding-left:12px;color:#262d38}.mobile-task-page>.grading-work-head>button{display:none}.mobile-task-page .grading-help{font-size:11px}.mobile-task-page .grading-task-card{background:#fff;border:1px solid #edf0f4;box-shadow:0 3px 15px #20385806;border-radius:17px;margin:16px 0;padding:22px 18px;gap:14px}.mobile-task-page .grading-task-card h3{font-size:19px;color:#252b35;line-height:1.5}.mobile-task-page .grading-task-card p{font-size:14px;line-height:1.7;max-width:none}.mobile-task-page .grading-task-card small{font-size:13px;line-height:1.7}.mobile-task-page .grading-applicable-rate{display:block;width:fit-content;color:#df950d;background:#fff8ec;border-radius:8px;padding:9px 11px;margin-top:15px}.mobile-task-page .grading-start{flex-direction:row;gap:8px}.mobile-task-page .grading-start input{flex:1;min-width:0}.mobile-task-page .grading-start button{flex-shrink:0}.mobile-task-page .grading-history{flex-wrap:wrap}.mobile-task-page.is-settlement .grading-work-head{display:none}.mobile-task-page.is-settlement{background:#fff}.mobile-task-page .grading-status:empty{display:none}.mobile-task-page .grading-settlement{padding:24px 12px}
.mobile-client .gs-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mobile-client #groupSettingsDialog .gs-action-label{font-size:12px}.mobile-client #directPins{max-height:100px}.mobile-client .peer-header-identity{min-width:0}.mobile-client #text{scroll-margin-bottom:20px}.mobile-client .room-pin-label{font-size:10px}

.grading-task-state{display:none}.mobile-task-page .grading-task-state{display:inline-block;padding:3px 8px;border-radius:5px;background:#f1f3f6;color:#8e98a6;font-size:12px;margin-bottom:7px}.mobile-task-page .grading-task-card h3{margin-top:0}
