/* LiveIM web. Visual language from the approved 播多多 IM prototype (scheme one): purple accent, white surfaces,
   rounded cards, system CJK typography. Phone: one column with a bottom tab bar. Desktop (≥900px): list left, chat right. */
:root{--primary:#5750ef;--primary-press:#4540ce;--ink:#11152c;--muted:#788294;--line:#edf0f5;--lavender:#f0efff;--chat-bg:#f6f7fb;
  --safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;height:100%}
body{color:var(--ink);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  font-size:16px;line-height:1.55;letter-spacing:-.018em;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,p{margin:0}
button,input,textarea,select{font:inherit;letter-spacing:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default;opacity:.46}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
a{color:var(--primary);text-decoration:none}
svg{vertical-align:middle;flex-shrink:0}
.sp{flex:1}
.js:not(.ready) #guest,.js:not(.ready) #app{visibility:hidden}

/* ---------- shared pieces (prototype) ---------- */
.brand-lockup{display:flex;align-items:center;gap:7px;min-width:0}
.brand-lockup>img{width:34px;height:31px;object-fit:contain;flex-shrink:0}
.brand-lockup>div,.brand-lockup>span:not(.brand-divider){display:flex;flex-direction:column;line-height:1.05}
.brand-lockup b{font-size:19px;letter-spacing:.01em;white-space:nowrap;font-weight:650}
.brand-lockup small{font-size:10px;font-weight:500;margin-top:5px;letter-spacing:0}
.brand-divider{width:1px;height:24px;background:#dfe1e8;margin:0 9px}
.brand-lockup h1{font-size:27px;font-weight:700;letter-spacing:-.035em;line-height:1.3;white-space:nowrap}
.tag{display:inline-flex;align-items:center;flex-shrink:0;max-width:100%;padding:1px 7px;border-radius:5px;font-size:11px;font-weight:550;line-height:20px;color:#6550d8;background:#eeebff}
.tag.green{color:#258864;background:#eaf7f1}
.tag.orange{color:#b8782e;background:#fff4e7}
.tag.gray{color:#7a8494;background:#f3f5f8}
.notice{display:flex;align-items:flex-start;gap:9px;margin:14px 0;padding:12px 13px;border-radius:10px;font-size:13px;line-height:1.7;color:#6b63ad;background:#f3f2ff}
.notice.orange{color:#a4763a;background:#fff7ec}
.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:11px 17px;border-radius:10px;font-size:15px;font-weight:600;line-height:1.5;transition:background .15s}
.button.primary{background:var(--primary);color:#fff}
.button.primary:active{background:var(--primary-press)}
.button.primary:disabled{opacity:1;background:#d7d4f6}
.button.secondary{color:#505b70;background:#fff;border:1px solid #dfe2eb}
.button.danger{color:#c74c65}
.button-row{display:flex;gap:10px;margin-top:14px}
.button-row>.button{flex:1}
.icon-button{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:40px;height:44px;color:var(--ink)}
.search-field{display:flex;align-items:center;gap:9px;height:45px;padding:0 13px;border-radius:10px;color:#96a0b1;background:#f4f5f9}
.search-field input{flex:1;min-width:0;height:43px;border:0;outline:none;background:none;color:var(--ink);font-size:15px}
.search-field input::placeholder{color:#929bad}
.search-field input::-webkit-search-cancel-button{display:none}
.avatar{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:50%;overflow:hidden;color:#6d66f6;background:#eeedff;font-weight:650;line-height:1}
.avatar img{width:58%;height:58%;object-fit:contain}
.avatar.person{color:#fff}
.avatar.brand{background:#eeebff}
.unread{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--primary);color:#fff;font-size:12px;font-weight:500;letter-spacing:0}
.setting-row{display:flex;align-items:center;gap:8px;min-height:68px;padding-right:15px;border-bottom:1px solid var(--line)}
.setting-row:last-child{border-bottom:0}
.setting-row-main{flex:1;display:flex;align-items:center;gap:11px;min-width:0;min-height:68px;padding:13px 0 13px 15px;text-align:left;opacity:1!important}
.setting-row-main>svg:last-child{color:#b0b3c1}
.row-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:32px;height:34px;color:#7165ce}
.row-copy{flex:1;display:flex;flex-direction:column;min-width:0}
.row-copy b{font-size:15px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-copy small{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.6}
.row-accessory{display:flex;align-items:center;gap:5px;flex-shrink:0;font-size:13px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 12px}
.section-title h3{font-size:17px;font-weight:650}
.section-title>button{display:inline-flex;align-items:center;gap:3px;min-height:36px;color:var(--primary);font-size:13px}
.empty{padding:38px 18px;text-align:center;color:var(--muted);font-size:14px;line-height:1.8}
.empty .button{margin-top:16px}

/* ---------- app shell ---------- */
.lv{position:fixed;inset:0;display:flex;background:#fff}
.shell{position:relative;display:flex;flex-direction:column;width:100%;min-width:0;height:100%}
.app-header{flex-shrink:0;padding-top:var(--safe-top);background:#fff;border-bottom:1px solid var(--line);z-index:5}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;height:62px;padding:0 17px}
.main-toolbar{height:61px}
.toolbar-actions{display:flex;align-items:center;gap:4px}
.lv:not([data-tab=chats]) .brand-only{display:none}
.lv:not([data-tab=chats]) .brand-lockup h1{font-size:28px}
.company-line{display:flex;align-items:center;gap:12px;height:44px;padding:0 20px;margin-top:-6px}
.company-switch{display:flex;align-items:center;gap:9px;min-width:0;height:44px}
.company-switch b{font-size:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-switch:disabled{opacity:1;cursor:default}
.search-row{padding:0 15px 10px}
.top-tabs{display:flex;gap:25px;height:44px;padding:0 19px}
.top-tabs button{position:relative;min-width:60px;height:44px;padding:0 8px;color:#6e788a;font-size:18px;font-weight:500}
.top-tabs button.selected{color:var(--primary);font-weight:650}
.top-tabs button.selected:after{content:"";position:absolute;left:5px;right:5px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--primary)}
.lv:not([data-tab=chats]) #chat-filter,.lv:not([data-tab=chats]) #search-row{display:none!important}
.lv:not([data-tab=work]) #work-filter{display:none!important}
.lv[data-tab=me] #company-line{display:none}
.lv[data-tab=contacts] .app-header,.lv[data-tab=me] .app-header{border-bottom-color:transparent}
.lv[data-tab=work] #head-actions,.lv[data-tab=me] #head-actions{display:none}
.notice-line{display:flex;align-items:center;gap:9px;margin:10px 15px 0;padding:10px 12px;border-radius:10px;color:#6b63ad;background:#f3f2ff;font-size:13px;line-height:1.6}
.notice-line>span:nth-child(2),.notice-line>#status-text{flex:1;min-width:0}
.notice-line button{flex-shrink:0;padding:5px 10px;border-radius:8px;background:var(--primary);color:#fff;font-size:12px;font-weight:600}
.notice-line button.quiet{background:none;color:var(--muted);padding:5px 4px}
.scroll{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.page{animation:.16s ease-out content-in}
.bottom-nav{flex-shrink:0;display:flex;justify-content:space-around;padding:8px 8px calc(var(--safe-bottom) + 6px);background:#fffffffa;border-top:1px solid #edf0f4}
.bottom-nav button{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:64px;padding:0 4px;color:#626d7a}
.bottom-nav button>span:not(.ico){font-size:12px;line-height:20px}
.bottom-nav button.selected{color:var(--primary)}
.nav-badge{position:absolute;top:-4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#f04f5f;color:#fff;font-size:11px;font-style:normal;font-weight:600;line-height:18px;text-align:center;letter-spacing:0}

/* ---------- 消息 ---------- */
.messages-content{padding:14px 15px calc(var(--safe-bottom) + 12px)}
.shift-banner{display:flex;align-items:center;gap:10px;width:100%;height:44px;margin-bottom:9px;padding:0 12px;border-radius:7px;color:var(--primary);background:#f0f0ff;font-size:14px}
.shift-banner>span:nth-child(2){flex:1;min-width:0;color:#1c2342;text-align:left;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shift-banner>b{font-size:13px;font-weight:500}
.conversation{display:flex;gap:13px;width:100%;min-height:78px;padding:12px 0 0;text-align:left;border-radius:8px}
.conversation>.avatar{margin-top:3px}
.conversation.on .conversation-body h3{color:var(--primary)}
.conversation-body{flex:1;min-width:0;padding:0 0 15px;border-bottom:1px solid #e9edf3}
.conversation-top{display:flex;align-items:center;gap:6px;min-height:29px}
.conversation-top h3{min-width:0;font-size:19px;font-weight:660;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-top time{margin-left:auto;padding-left:6px;color:#768192;font-size:11px;white-space:nowrap}
.conversation-top .tag{padding:0 5px;font-size:10px}
.conversation-bottom{display:flex;align-items:center;gap:10px;min-height:24px;margin-top:3px}
.conversation-bottom p{flex:1;min-width:0;color:#718096;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- 工作台 ---------- */
.work-screen{display:flex;flex-direction:column;gap:16px;padding:14px 20px calc(var(--safe-bottom) + 30px)}
.work-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:1px 0 3px}
.work-intro h2{margin:5px 0;font-size:23px;font-weight:750;letter-spacing:-.55px;line-height:1.4}
.work-intro p{color:var(--muted);font-size:13px;line-height:1.7}
.work-eyebrow{display:block;color:var(--muted);font-size:12px;font-weight:500;letter-spacing:.15px;line-height:1.6}
.work-me{width:48px;height:48px;border-radius:16px;font-size:19px}
.work-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 -6px}
.work-section-title h3{font-size:17px;font-weight:650}
.work-count{padding:3px 8px;border-radius:6px;color:var(--primary);background:#f4f0ff;font-size:12px;font-weight:600}
.work-panel{background:#fff;border:1px solid #eeedf3;border-radius:15px;box-shadow:0 2px 8px #22203505}
.work-list{padding:0 13px}
.work-list .setting-row{padding-right:2px}
.work-list .setting-row-main{padding-left:2px}
.work-list .row-copy b{font-size:16px}
.work-list .setting-row.quiet .row-icon{color:#4a9a77}
.work-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 6px;padding:12px 0 4px}
.work-tools>button{display:flex;flex-direction:column;align-items:center;gap:9px;min-height:76px;padding:0 2px;font-size:13px;color:var(--ink)}
.work-tools>button>span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.work-tool-icon{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:48px;height:48px;border-radius:14px;color:var(--primary);background:#f2eeff}
.work-tool-icon.shade-1{color:#5685d8;background:#edf4ff}
.work-tool-icon.shade-2{color:#7c73cc;background:#f0f0fd}
.work-tool-icon.shade-3{color:#2f9a74;background:#eaf7f1}
.work-tool-icon.shade-4{color:#c0803a;background:#fff4e7}
.work-foot{color:#aaaabc;font-size:12px;text-align:center}

/* ---------- 通讯录 / 我 ---------- */
.personal-screen{padding:6px 20px calc(var(--safe-bottom) + 24px)}
.personal-search{padding:8px 0}
.personal-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:2px 0 14px;border-bottom:1px solid #eceef5}
.personal-tabs button{position:relative;display:flex;justify-content:center;align-items:center;gap:5px;padding:13px 3px;color:#7a7d8e;font-size:16px;white-space:nowrap}
.personal-tabs button.active{color:var(--primary);font-weight:650}
.personal-tabs button.active:after{content:"";position:absolute;bottom:-1px;left:calc(50% - 13px);width:26px;height:3px;border-radius:4px;background:var(--primary)}
.personal-list-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:18px 0 2px}
.personal-list-caption>span:first-child{display:inline-flex;align-items:center;gap:7px;min-width:0;color:#757a8b;font-size:14px}
.personal-person-row{display:flex;align-items:center;gap:13px;width:100%;padding:13px 0;border-bottom:1px solid #f0f1f6;text-align:left}
.personal-person-row>svg{color:#b0b3c1}
.personal-person-copy{flex:1;min-width:0}
.personal-person-name{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;line-height:1.4}
.personal-person-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.personal-person-sub{display:block;margin-top:3px;color:#7a8093;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.check-square{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:21px;height:21px;border:1px solid #d0d5e0;border-radius:6px;background:#fff;color:#fff}
.check-square.checked{border-color:var(--primary);background:var(--primary)}
.check-square.locked{border-color:#e3e6ee;background:#f3f5f8}
.personal-me-card{display:flex;align-items:center;gap:16px;width:100%;padding:15px 0 8px;text-align:left}
.personal-me-copy{flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
.personal-me-name{font-size:25px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.personal-me-copy>span:last-child{color:#858a9b;font-size:14px}
.personal-section{margin:22px 0}
.personal-section-title{margin:0 0 8px;color:#71778b;font-size:14px;font-weight:600;letter-spacing:.02em}
.personal-section-body{border:1px solid #eeedf3;border-radius:15px;overflow:hidden}
.personal-section .setting-row-main{min-height:62px}
.personal-section .row-copy b{font-size:16px}
.personal-section .row-copy small{font-size:13px;line-height:1.5}
.personal-section select{border:1px solid #e1e4ec;border-radius:8px;padding:5px 8px;background:#fff;font-size:14px}
.personal-brand-note{margin:28px 0 4px;color:#aaaabc;font-size:13px;text-align:center}
.pick-bar{display:flex;align-items:center;gap:8px;padding:10px 15px;border-top:1px solid var(--line);background:#fff}
.pick-bar input{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid #e8ebf1;border-radius:10px;background:#f8f9fc;font-size:15px}
.pick-bar .button{min-height:44px;padding:8px 14px;font-size:14px}

/* ---------- chat ---------- */
.detail{display:flex;flex-direction:column;min-width:0;background:var(--chat-bg)}
.welcome{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:30px;color:var(--muted);font-size:14px;text-align:center}
.welcome img{width:72px;opacity:.9}
.chat{flex:1;display:flex;flex-direction:column;min-height:0}
.chat-header{border-bottom:1px solid #e9edf3}
.detail-toolbar{padding-left:9px;padding-right:12px}
.toolbar-title{flex:1;min-width:0;text-align:center}
.toolbar-title h2{font-size:18px;font-weight:690;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toolbar-title small{display:block;margin-top:1px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chat-more:not(.on){visibility:hidden}
.chat-viewport{flex:1;min-height:0;overflow:auto;padding:12px 15px 10px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.conversation-scope{display:flex;justify-content:center;align-items:center;gap:5px;margin:2px 0 6px;color:#8992a4;font-size:11px}
.chat-date{margin:14px 0 18px;color:#a1a7b3;font-size:11px;text-align:center}
.chat-sys{margin:10px auto;max-width:80%;color:#8992a4;font-size:12px;text-align:center;line-height:1.6}
.chat-more-btn{display:block;margin:4px auto 10px;padding:6px 12px;color:#7e75bb;font-size:12px}
.chat-line{display:flex;align-items:flex-start;gap:9px;margin:14px 0}
.chat-line.cont{margin-top:-6px}
.chat-line.own{justify-content:flex-end}
.chat-line .avatar{width:36px;height:36px;font-size:14px}
.chat-line.cont .avatar{visibility:hidden}
.bubble-column{min-width:0;max-width:calc(100% - 62px)}
.chat-line.own .bubble-column{display:flex;flex-direction:column;align-items:flex-end}
.bubble-column>small{display:block;margin-bottom:5px;color:#8a93a4;font-size:11px}
.bubble{overflow-wrap:anywhere;white-space:pre-wrap;padding:10px 13px;border:1px solid #e9edf3;border-radius:2px 12px 12px 12px;background:#fff;font-size:15px;line-height:1.7}
.own-bubble{color:#302776;background:#e9e7ff;border-color:#e2dfff;border-radius:12px 2px 12px 12px}
.bubble a{color:inherit;text-decoration:underline}
.bubble.media{padding:4px;line-height:0}
.bubble.media img{display:block;max-width:min(320px,100%);height:auto;border-radius:9px}
.bubble .file{display:flex;align-items:center;gap:10px;min-width:180px;color:inherit;text-decoration:none;line-height:1.4}
.bubble .file .fi{display:flex;justify-content:center;align-items:center;width:38px;height:38px;border-radius:9px;background:#f2eeff;color:var(--primary)}
.bubble .file small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.delivery{margin-top:5px;color:#8a93a4;font-size:10px;text-align:right}
.delivery.fail{color:#c74c65}
.delivery button{margin-left:6px;color:var(--primary);font-size:11px;text-decoration:underline}
.chat-business-card{margin:12px 0 18px 45px;max-width:420px;border:1px solid #e7e9f2;border-radius:11px;background:#fff;overflow:hidden}
.business-label{display:flex;align-items:center;gap:7px;padding:10px 14px;border-bottom:1px solid #efeff6;color:#7064bd;background:#faf9ff;font-size:12px}
.chat-business-card>h3{padding:13px 14px 4px;font-size:17px;font-weight:650;line-height:1.45}
.chat-business-card>p{padding:2px 14px;color:#555;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-business-card dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:8px 14px 2px;font-size:13px}
.chat-business-card dt{color:var(--muted)}
.chat-business-card dd{margin:0;text-align:right;font-weight:550;overflow-wrap:anywhere}
.card-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding:10px 14px;border-top:1px solid var(--line)}
.card-footer .acts{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.card-footer .acts button{min-height:34px;padding:5px 12px;border-radius:8px;font-size:13px;font-weight:600;color:var(--primary);background:#f1edff}
.card-footer .acts button.primary{color:#fff;background:var(--primary)}
.card-footer .acts button.danger{color:#c74c65;background:#fdf0f2}
.card-err{padding:0 14px 10px;color:#a4763a;font-size:12px}
.composer{flex-shrink:0;display:flex;align-items:flex-end;gap:8px;min-height:63px;padding:10px 14px calc(var(--safe-bottom) + 10px) 8px;border-top:1px solid #e9edf3;background:#fff}
.composer textarea{flex:1;min-width:0;min-height:41px;max-height:160px;padding:8px 11px;border:1px solid #edf0f4;border-radius:9px;background:#f6f7fa;font-size:15px;line-height:1.6;resize:none;outline:none}
.composer textarea::placeholder{color:#9ba3b3}
.composer .icon-button{height:41px}
.send-button{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:41px;height:41px;border-radius:9px;background:var(--primary);color:#fff}
.send-button:disabled{opacity:1;color:#a09abf;background:#e6e4f6}
.readonly{flex-shrink:0;padding:14px 18px calc(var(--safe-bottom) + 14px);border-top:1px solid #e9edf3;background:#fff;color:var(--muted);font-size:13px;text-align:center}

/* ---------- sheets ---------- */
.sheet-overlay{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center;background:#00000057}
.bottom-sheet{display:flex;flex-direction:column;width:100%;max-width:560px;max-height:88vh;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -16px 48px #0003;animation:.18s ease-out sheet-in}
.sheet-handle-zone{display:grid;place-items:center;height:26px;flex-shrink:0}
.sheet-handle{width:42px;height:5px;border-radius:999px;background:#c9c9c4}
.sheet-header{display:flex;align-items:center;gap:8px;padding:0 10px 8px 20px;flex-shrink:0}
.sheet-title{flex:1;font-size:18px;font-weight:700}
.sheet-content{padding:0 20px calc(var(--safe-bottom) + 24px);overflow:auto}
.field-label{display:block;margin:6px 0 4px;color:#555;font-size:14px;font-weight:550}
.row-in{display:flex;gap:8px;margin-top:9px}
.row-in input{flex:1;min-width:0;height:46px;padding:0 13px;border:1px solid #e8ebf1;border-radius:10px;background:#f8f9fc;font-size:15px;outline:none}
.row-in .button{min-height:46px;padding:8px 18px}
#g-pick .search-field{margin-bottom:6px}
.pick-list{max-height:40vh;overflow:auto}
#g-leave{width:100%;margin-top:18px}
.company-option{display:flex;align-items:center;gap:12px;width:100%;margin:10px 0;padding:15px 12px;border:1px solid #e9edf4;border-radius:12px;text-align:left}
.company-option>div{flex:1;min-width:0}
.company-option b{display:block;font-size:15px;font-weight:650}
.company-option small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.company-option.selected{color:var(--primary);background:#f7f6ff;border-color:#cfc9f8}

/* ---------- guest ---------- */
.guest{max-width:640px;margin:0 auto;padding:calc(var(--safe-top) + 14px) 20px 40px}
.guest-top{display:flex;align-items:center;gap:10px;height:56px}
.brand-product{font-size:22px!important}
.lang{border:1px solid #e1e4ec;border-radius:8px;padding:5px 8px;background:#fff;font-size:13px}
.guest-hero{padding:34px 0 18px}
.guest-hero h1{font-size:30px;font-weight:750;letter-spacing:-.04em;line-height:1.3}
.guest-hero p{margin:14px 0 24px;color:var(--muted);font-size:16px;line-height:1.75}
.guest-hero .button{min-width:220px}
.guest-card{margin:14px 0;padding:18px;border:1px solid #eeedf3;border-radius:15px}
.guest-card h2{font-size:17px;font-weight:650}
.guest-card p{margin-top:8px;color:var(--muted);font-size:14px;line-height:1.75}
.stores{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.guest-foot{display:flex;gap:18px;justify-content:center;margin-top:26px;font-size:13px}

@keyframes content-in{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes sheet-in{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.page,.bottom-sheet{animation:none}}

/* Phone: the chat covers the list. */
@media (max-width:899px){
  .detail{position:fixed;inset:0;z-index:20;transform:translateX(100%);transition:transform .22s cubic-bezier(.2,.8,.2,1);visibility:hidden}
  body.chat-open .detail{transform:none;visibility:visible}
  .welcome{display:none}
}
@media (max-width:360px){.work-screen,.personal-screen{padding-left:15px;padding-right:15px}.work-intro h2{font-size:21px}.top-tabs{gap:12px}}

/* Desktop: list left, chat right; the same look, a little more room. */
@media (min-width:900px){
  .shell{width:400px;flex-shrink:0;border-right:1px solid var(--line)}
  .detail{flex:1}
  #back{visibility:hidden}
  .conversation:hover .conversation-body h3{color:var(--primary)}
  .chat-viewport{padding:18px 28px 14px}
  .composer{padding-left:16px;padding-right:20px}
  .bottom-sheet{border-radius:18px;margin-bottom:6vh}
  .sheet-overlay{align-items:center}
  /* Left icon rail (DingTalk desktop): the same four tabs, vertical; 我 sits at the bottom. */
  .lv{padding-left:76px}
  .bottom-nav{position:fixed;left:0;top:0;bottom:0;z-index:6;width:76px;flex-direction:column;justify-content:flex-start;gap:6px;padding:calc(var(--safe-top) + 18px) 0 18px;background:#f6f7fb;border-top:0;border-right:1px solid var(--line)}
  .bottom-nav button{width:64px;min-width:0;margin:0 auto;padding:9px 0 6px;border-radius:12px}
  .bottom-nav button:hover{background:#eceef4}
  .bottom-nav button.selected{background:color-mix(in srgb,var(--primary) 11%,#fff)}
  .bottom-nav #nav-me{margin-top:auto}
  .bottom-nav .nav-badge{top:3px}
}
@media (min-width:1280px){.shell{width:430px}}

/* ---------- one person, many companies (DingTalk model; prototype v1.3) ---------- */
.account-switch-avatar{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:44px;height:44px;margin:0 4px 0 -4px;border-radius:50%}
.account-switch-avatar .avatar{border-radius:50%}
.conversation-company{margin-top:1px;color:#7e8798;font-size:11px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-company+.conversation-bottom{margin-top:0}
.sheet-sub{margin-top:3px;color:var(--muted);font-size:13px;line-height:1.6}
.account-sheet-profile{display:flex;align-items:center;gap:12px;width:100%;padding:8px 4px 14px;text-align:left}
.account-sheet-profile>span:nth-child(2){flex:1;min-width:0}
.account-sheet-profile b{display:block;font-size:18px;font-weight:650}
.account-sheet-profile small{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.account-sheet-profile>svg{color:#9aa2b2}
.company-option>svg:first-child{color:#4c5568}
.company-option.selected>svg{color:var(--primary)}
.company-manage-link{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 5px;color:var(--ink);font-size:15px}
.company-manage-link>svg{color:#9aa2b2}
.work-screen.wb-all-screen{gap:0;padding-top:14px}
.wb-date-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:20px;margin-bottom:13px;color:var(--muted);font-size:13px;line-height:20px}
.wb-date-row>span:last-child{color:#8983a8;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-greeting{margin:-4px 0 14px;font-size:21px;font-weight:700;letter-spacing:-.4px;line-height:1.4}
.wb-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 3px;margin-bottom:21px}
.wb-shortcut{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;min-height:72px;padding:2px 3px 0;color:var(--ink);text-align:center}
.wb-shortcut .application-icon{position:relative;width:45px;height:45px;border-radius:13px}
.wb-shortcut-label{display:block;max-width:100%;color:#2a3550;font-size:14px;font-weight:600;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-shortcut.is-unavailable .wb-shortcut-label{color:#8d95a4;font-weight:500}
.wb-shortcut.is-unavailable .application-icon{opacity:.6}
.wb-shortcut small{margin-top:-4px;color:#9ba2b2;font-size:12px}
.wb-shortcut-count{position:absolute;top:-4px;right:-5px;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:#7270df;color:#fff;font-size:10px;font-weight:600;line-height:13px;text-align:center;letter-spacing:0}
.wb-group-apps .wb-shortcut{gap:7px;min-height:78px}
.wb-group-apps .wb-shortcut-label{white-space:normal;overflow-wrap:anywhere;font-weight:500;line-height:1.5}
.application-icon{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:48px;height:48px;border-radius:14px;color:var(--primary);background:#efeeff}
.application-icon.blue{color:#5486e7;background:#eef4ff}
.application-icon.purple{color:#7767db;background:#f1eeff}
.application-icon.orange{color:#d99339;background:#fff5e7}
.application-icon.green{color:#40977e;background:#eaf7f1}
.application-icon.muted{color:#8891a3;background:#f1f3f7}
.wb-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:32px;margin-bottom:8px}
.wb-section-heading h3{display:flex;align-items:center;gap:7px;margin:0;font-size:17px;font-weight:650;line-height:24px}
.wb-section-heading>span{color:var(--muted);font-size:13px}
.wb-text-link{display:inline-flex;justify-content:flex-end;align-items:center;gap:2px;min-height:44px;margin:-6px 0;padding:6px 0 6px 6px;color:#818a9b;font-size:14px}
.wb-todo-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.wb-todo-row{display:flex;align-items:flex-start;gap:8px;width:100%;min-height:74px;padding:11px;border-bottom:1px solid var(--line);background:#fff;color:#9ba2af;text-align:left}
.wb-todo-row:last-child{border-bottom:0}
.wb-todo-row>svg{flex-shrink:0;margin-top:12px}
.wb-todo-icon{display:inline-flex;justify-content:center;align-items:center;flex:none;width:31px;height:34px;margin-top:4px;color:#8f84ca}
.wb-todo-icon.done{color:#4a9a77}
.wb-todo-copy{display:flex;flex-direction:column;flex:1;gap:1px;min-width:0}
.wb-todo-copy strong{color:#38425b;font-size:16px;font-weight:500;line-height:1.5}
.wb-todo-copy small{display:block;margin-top:3px;color:#929bab;font-size:14px;line-height:1.6}
.wb-company-section{margin-top:25px}
.wb-company-choice-list{display:flex;flex-direction:column;gap:10px}
.wb-company-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:88px;padding:14px 12px;border:1px solid #e9edf5;border-radius:13px;background:#fff;color:#929bad;text-align:left}
.wb-company-choice>span:nth-child(2){display:flex;flex-direction:column;flex:1;gap:4px;min-width:0}
.wb-company-choice strong{color:#303c56;font-size:16px;font-weight:600;line-height:1.5}
.wb-company-choice small{color:#8b95a7;font-size:14px;line-height:1.6}
.wb-company-choice small.wb-company-pending{color:#8175c5}
.wb-all-intro{margin:3px 0 6px}
.wb-all-intro h2{margin:0 0 8px;font-size:21px;line-height:1.4}
.wb-all-intro p{color:#8993a5;font-size:15px;line-height:1.7}
.wb-all-app-group{padding:21px 0 6px;border-top:1px solid var(--line);margin-top:16px}
.wb-all-app-group .wb-section-heading{margin-bottom:0}
.wb-group-sub{margin:0 0 12px;color:#8b95a7;font-size:14px}
.wb-empty{color:var(--muted);font-size:14px;line-height:1.7;padding:6px 0 14px}
.sheet-header>div{flex:1;min-width:0}
