:root{--bg:#f4f6f5;--surface:#fff;--ink:#202b27;--muted:#81908a;--subtle:#a1aaa6;--line:#e9eeeb;--green:#248c63;--green-dark:#1d7553;--green-soft:#eaf5ef;--red:#c45353;--blue:#557b9b;--shadow:0 12px 36px rgba(25,57,40,.06);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-synthesis:none;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button:focus-visible,a:focus-visible{outline:3px solid #94c7ae;outline-offset:3px}input:focus,textarea:focus{outline:none;border-color:#7dbba0!important;box-shadow:0 0 0 3px #248c630c}button{border:0}input,textarea{color:var(--ink)}input::placeholder,textarea::placeholder{color:#a0aaa4}textarea{resize:vertical}input[type=search]::-webkit-search-cancel-button{cursor:pointer}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand-mark{background:var(--green);display:grid;place-items:center;width:42px;height:42px;border-radius:14px;color:white;box-shadow:0 6px 12px #248c6314}.brand-mark .icon{width:25px;height:25px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;color:var(--muted);display:flex;align-items:center;gap:8px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);flex-shrink:0}.status-dot.muted,.status-dot.unknown{background:#adb9b2}.status-dot.offline{background:#c7cdc9}.status-dot.error{background:var(--red)}.button{min-height:38px;border:1px solid #e0e7e2;background:#fff;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 15px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}.button:hover{background:#f6f8f6;border-color:#cbd8cf}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:var(--green-dark);border-color:var(--green-dark);box-shadow:0 3px 10px #248c6318}.button.danger{background:#c75252;color:#fff;border-color:#c75252}.button.small{font-size:12px;min-height:33px;padding:6px 11px}.button.small .icon{width:16px;height:16px}.button.wide{width:100%}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:5px;border-radius:7px;background:transparent;color:var(--muted)}.icon-button:hover{background:#ecf1ed;color:var(--ink)}.text-button{padding:0;background:transparent;color:var(--green);font-size:12px;font-weight:550}.text-button:hover{color:var(--green-dark)}.muted-label{color:var(--muted);font-size:12px}.inline-error{font-size:12px;color:var(--red);line-height:1.7;margin:12px 0}.text-input{width:100%;border:1px solid #dde6df;border-radius:8px;padding:12px;background:#fff;line-height:1.5}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.spinner{width:26px;height:26px;border:2px solid #e0ede5;border-top-color:var(--green);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(100deg,#eef2ef 30%,#f7f9f7 50%,#eef2ef 70%);background-size:200% 100%;animation:shimmer 1.6s infinite;border-radius:6px}@keyframes shimmer{to{background-position:-200% 0}}
/* Sign in */
.login-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:90px 24px 75px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 10%,#e9f2eb 0,transparent 52%),#f4f7f3}.login-brand{position:absolute;left:48px;top:34px;display:flex;align-items:center;gap:12px;font-size:14px;color:#63736a}.login-brand b{font-weight:600;margin-left:8px;color:var(--ink)}.login-card{width:430px;max-width:100%;padding:42px 40px 30px;border:1px solid #fff;border-radius:20px;background:rgba(255,255,255,.94);box-shadow:0 30px 100px #2e533512;z-index:1}.login-card .eyebrow{font-size:11px;letter-spacing:1px;color:#6a8a76}.login-card h1{font-size:33px;font-weight:600;line-height:1.5;letter-spacing:-1px;margin:22px 0 12px}.login-intro{font-size:13px;line-height:1.9;color:var(--muted)}.login-card form{margin-top:30px}.login-card label,.modal form label{display:block;font-size:12px;font-weight:600;margin:0 0 9px}.login-card label span,.modal label span{color:#9ea8a1;margin-left:5px;font-size:10px;font-weight:400}.input-with-icon{position:relative}.input-with-icon>.icon{position:absolute;top:14px;left:13px;color:#91a397;width:18px;height:18px}.input-with-icon input{width:100%;height:47px;border-radius:9px;border:1px solid #dde6df;background:#fbfcfa;padding:12px 12px 12px 40px;font-size:12px}.field-hint{font-size:11px;color:#9aa59e;line-height:1.75;margin:9px 0 20px}.login-submit,.login-card .button{height:44px;font-size:13px}.login-card .button>.icon{margin-left:auto}.login-private{display:flex;align-items:center;justify-content:center;gap:6px;color:#a0aba3;font-size:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:26px}.login-private .icon{width:13px;height:13px}.login-footer{position:absolute;bottom:27px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:2px;color:#a3afa6}.login-footer span{margin-left:18px;letter-spacing:1px}.login-decoration{position:absolute;inset:0;pointer-events:none}.login-decoration div{position:absolute;border:1px solid #dce8dd;border-radius:50%;height:560px;width:560px;left:-270px;bottom:-250px}.login-decoration div:nth-child(2){height:760px;width:760px;left:-370px;bottom:-350px;opacity:.7}.login-decoration div:nth-child(3){height:430px;width:430px;left:auto;right:-190px;bottom:auto;top:-240px;opacity:.5}
/* Frame */
.workspace{display:grid;grid-template-columns:76px 232px minmax(0,1fr);height:100dvh;overflow:hidden}.nav-rail{display:flex;flex-direction:column;align-items:center;padding:24px 0 15px;background:#f1f5f1;border-right:1px solid #e1e9e3;gap:37px}.nav-rail .brand-mark{width:39px;height:39px;border-radius:13px}.nav-items,.nav-bottom{width:100%;display:flex;align-items:center;flex-direction:column;gap:12px}.nav-bottom{margin-top:auto;gap:6px}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:52px;height:58px;padding:8px 2px;border-radius:10px;background:transparent;color:#839187;font-size:10px;transition:.15s}.nav-item .icon{width:21px;height:21px}.nav-item:hover{color:var(--green);background:#e6eee6}.nav-item.active{color:var(--green);background:#e0eee4;font-weight:650}.nav-bottom .nav-item{height:49px;font-size:9px}.nav-bottom .icon{width:18px;height:18px}.account-sidebar{background:#fcfdfb;display:flex;flex-direction:column;border-right:1px solid var(--line);min-width:0;padding:28px 14px 0}.sidebar-brand{font-size:16px;font-weight:650;letter-spacing:.1px;padding:3px 5px 32px;display:flex;align-items:center;gap:9px}.workspace-tag{font-size:9px;font-weight:500;background:#edf3ed;padding:3px 6px;border-radius:4px;color:#809487}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 5px 13px;font-size:11px;color:#87988d}.sidebar-heading b{font-weight:500;margin-left:5px;color:#9ead9f}.account-list{overflow-y:auto;min-height:0;max-height:calc(100dvh - 275px);display:flex;flex-direction:column;gap:7px}.account-item{display:flex;align-items:center;text-align:left;gap:10px;border-radius:9px;padding:12px 10px;min-height:68px;background:transparent;border:1px solid transparent;width:100%}.account-item:hover{background:#f1f5f0}.account-item.active{background:#edf5ef;border-color:#ddece2}.account-avatar{height:37px;width:37px;border-radius:11px;background:#e9eee9;color:#75877a;display:grid;place-items:center;font-size:14px;font-weight:550;position:relative;flex-shrink:0}.account-item.active .account-avatar{background:#daeade;color:#377451}.account-avatar .status-dot{position:absolute;right:-2px;bottom:-1px;border:2px solid #fcfdfb;width:10px;height:10px}.account-item-text{min-width:0;flex:1}.account-item-text strong{display:block;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px}.account-item-text small{font-size:10px;color:#97a297}.account-item>.icon{width:13px;height:13px;color:#8bab96}.add-account-button{display:flex;justify-content:center;align-items:center;gap:7px;color:#6d8b79;border:1px dashed #d5e3d9;border-radius:8px;margin:16px 4px;padding:11px 6px;font-size:11px;background:transparent}.add-account-button:hover{background:var(--green-soft);border-color:#a4c3b1}.add-account-button .icon{width:15px;height:15px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);display:flex;align-items:center;padding:18px 4px;gap:9px;font-size:10px;color:#7f9285}.sidebar-bottom div{flex:1}.sidebar-bottom small{display:block;font-size:9px;margin-top:4px;color:#acb4ad}.sidebar-bottom>.icon{height:14px;width:14px;color:#a7b8aa}.workspace-main{display:flex;flex-direction:column;min-width:0;overflow:hidden}.topbar{height:99px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 31px;border-bottom:1px solid var(--line);background:#fff}.page-heading .eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:8px;color:#a4b0a7}.page-heading h1{font-size:20px;font-weight:600;letter-spacing:.5px}.topbar-actions{display:flex;align-items:center;gap:19px}.clock-label{font-size:11px;color:#94a097}.topbar-actions .button{background:#fcfdfb}.admin-avatar{display:grid;place-items:center;width:32px;height:32px;background:#eff3ec;color:#688269;border:1px solid #e5ecde;border-radius:50%;font-size:12px}.global-error{background:#fff5ee;color:#a66939;display:flex;gap:9px;padding:9px 23px;font-size:12px;align-items:center;flex-shrink:0}.global-error>span{flex:1}.global-error>.icon{width:17px;height:17px}.content-with-detail{display:flex;flex:1;min-height:0;overflow:hidden}.view-container{flex:1;min-width:0;overflow:hidden}.view{height:100%}.detail-panel{width:270px;flex-shrink:0;border-left:1px solid var(--line);background:#fff;overflow-y:auto;padding:23px 23px 30px}.detail-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.detail-heading h3{font-size:12px;font-weight:550}.subtle-badge{font-size:9px;padding:4px 6px;background:#f4f6f3;color:#96a397;border-radius:4px}.detail-avatar{margin:0 auto 14px;width:65px;height:65px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(140deg,#e3eee4,#d8e9df);color:#56866a;font-size:25px;font-weight:550}.detail-name{text-align:center;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.detail-caption{text-align:center;font-size:10px;color:#9aa69d;margin-top:7px}.detail-status{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#7c9884;margin:12px 0 19px}.detail-primary{width:100%;margin-top:3px;font-size:12px}.detail-section{border-top:1px solid var(--line);padding-top:21px;margin-top:23px}.detail-section h4{margin:0 0 16px;font-size:10px;font-weight:500;color:#9aa79f}.detail-field{display:grid;grid-template-columns:62px minmax(0,1fr);gap:7px;align-items:start;font-size:11px;line-height:1.6;margin-top:13px}.detail-field dt{color:#9aa59d}.detail-field dd{margin:0;color:#606f65;overflow-wrap:anywhere}.detail-actions{display:flex;flex-direction:column;gap:8px;margin-top:19px}.detail-action{display:flex;align-items:center;gap:10px;padding:10px 0;background:transparent;font-size:11px;text-align:left;color:#748279}.detail-action .icon{height:15px;width:15px;color:#8d9f91}.detail-action:hover{color:var(--green)}.detail-action.danger{color:#bd7575}.detail-description{color:#85948a;font-size:11px;line-height:1.8}.detail-back{margin-bottom:20px;font-size:11px}.member-list{display:flex;flex-direction:column;gap:9px;max-height:240px;overflow:auto}.member-row{display:flex;align-items:center;gap:8px;font-size:11px;color:#708176}.member-avatar{display:grid;place-items:center;background:#eff3ed;border-radius:6px;height:25px;width:25px;color:#87a08d;font-size:10px;flex-shrink:0}
/* Overview */
.overview-view{padding:31px;overflow-y:auto}.welcome-row{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:27px}.welcome-row h2{font-size:19px;font-weight:600;letter-spacing:.2px;line-height:1.5}.welcome-row p{color:#95a198;font-size:11px;line-height:1.7;margin-top:8px}.welcome-row>.button{font-size:11px;flex-shrink:0}.welcome-row .icon{width:16px;height:16px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:26px}.stat-card{border-radius:11px;background:#fff;border:1px solid #e9eeea;padding:19px 19px 17px;position:relative;box-shadow:0 3px 6px #314e3002}.stat-icon{position:absolute;right:15px;top:16px;color:#8b9c8f;background:#f3f6f0;border-radius:9px;display:grid;place-items:center;width:30px;height:30px}.stat-icon .icon{height:16px;width:16px}.stat-icon.green{color:#64a680;background:#edf7f0}.stat-icon.blue{color:#7b9aab;background:#f0f5f8}.stat-card p{font-size:10px;color:#839288;padding-right:26px;line-height:2}.stat-card strong{display:block;font-weight:550;font-size:30px;letter-spacing:-1px;line-height:1.5;margin:8px 0 4px}.stat-card small{font-size:9px;color:#a1aba4}.panel{background:#fff;border:1px solid #e9eeea;border-radius:11px;overflow:hidden}.panel-heading{padding:21px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #f0f3f0}.panel-heading h3{font-size:13px;font-weight:600}.panel-heading p{font-size:10px;color:#9aa59e;margin-top:7px;line-height:1.6}.panel-heading .muted-label{font-size:10px;white-space:nowrap}.overview-account-row{padding:18px 22px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #f0f3f0}.overview-account-row:last-child{border-bottom:0}.overview-account-main{flex:1;min-width:0}.overview-account-main strong{font-size:12px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overview-account-main p{font-size:9px;color:#9ba69e;margin-top:6px}.status-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:#7d9584;background:#f4f6f3;font-size:9px;min-width:52px;padding:5px 7px;border-radius:5px;white-space:nowrap}.status-pill.online{background:#edf6ef;color:#4b9c70}.status-pill .status-dot{height:5px;width:5px}.overview-account-row .button{font-size:10px;min-height:29px;padding:6px 9px;margin-left:5px}.workflow-note{display:flex;gap:14px;align-items:flex-start;padding:25px 9px}.note-icon{background:#eaf0e9;color:#7f9b86;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;flex-shrink:0}.note-icon .icon{height:17px;width:17px}.workflow-note h3{font-size:11px;font-weight:550;color:#7a8d7d;line-height:1.8}.workflow-note p{font-size:10px;line-height:1.8;color:#a3afa5;margin-top:3px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 22px;min-height:230px}.empty-art{height:60px;width:60px;border:1px solid #e9eeea;background:#f5f8f4;border-radius:19px;display:grid;place-items:center;color:#a6b8aa;margin-bottom:20px;box-shadow:0 5px 12px #536d5604}.empty-art .icon{height:26px;width:26px;stroke-width:1.3}.empty-state h3{font-size:13px;font-weight:550;color:#7b8d7f;line-height:1.7}.empty-state p{font-size:11px;color:#a1ada4;line-height:1.9;margin:7px 0 18px;max-width:300px}.empty-state .button{font-size:11px}.account-list .empty-state{padding:28px 5px;min-height:180px}.account-list .empty-art{width:40px;height:40px;border-radius:12px;margin-bottom:13px}.account-list .empty-art .icon{width:19px;height:19px}.account-list .empty-state h3{font-size:11px}.account-list .empty-state p{font-size:10px}.detail-panel .empty-state{padding:45px 5px}.loading-state{display:flex;gap:10px;align-items:center;justify-content:center;min-height:180px;font-size:11px;color:#9bab9e}.loading-state .spinner{height:18px;width:18px}
/* Conversations */
.messages-view{display:flex;background:#fff}.conversation-panel{width:240px;min-width:190px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fff}.conversation-heading{display:flex;justify-content:space-between;padding:22px 19px 17px;font-size:11px;color:#a6b0a7}.conversation-heading h3{font-size:13px;color:#667a6b;font-weight:550}.search-box{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e8eee8;border-radius:7px;background:#fbfcfa}.search-box .icon{width:15px;height:15px;color:#a5b1a7}.search-box input{border:0;min-width:0;width:100%;background:transparent;padding:1px;font-size:11px;line-height:1.5}.search-box input:focus{box-shadow:none}.conversation-panel>.search-box{margin:0 14px 13px}.conversation-list{overflow-y:auto;flex:1;min-height:0}.conversation-item{padding:15px 17px;display:flex;gap:11px;align-items:center;background:#fff;width:100%;text-align:left;border-right:2px solid transparent}.conversation-item:hover{background:#f8faf7}.conversation-item.active{background:#eef6f0;border-right-color:#549f74}.conversation-item .account-avatar{width:35px;height:35px;border-radius:10px;font-size:12px}.conversation-item-text{min-width:0;flex:1}.conversation-item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.conversation-item-title strong{font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-item-title time{font-size:8px;color:#9cac9e;white-space:nowrap}.conversation-item-text p{font-size:10px;color:#9dab9f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px}.conversation-bottom{padding:16px;font-size:9px;color:#adb7ae;line-height:1.8;border-top:1px solid #f0f3ef;text-align:center}.conversation-panel .empty-state{padding:35px 13px;min-height:220px}.conversation-panel .empty-art{width:45px;height:45px;border-radius:14px}.conversation-panel .empty-state h3{font-size:11px}.conversation-panel .empty-state p{font-size:10px}.chat-panel{flex:1;min-width:0;display:flex;flex-direction:column;background:#f8faf7}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid #edf2eb;min-height:76px;gap:9px}.chat-header strong{font-size:13px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.chat-header span{font-size:9px;color:#a0ada2;display:block;margin-top:6px}.chat-header .button span{font-size:10px;margin:0;color:inherit}.chat-header .button{font-size:10px;min-height:30px}.chat-header .button.active{color:var(--green);background:#f2f8f2;border-color:#dfeee2}.receive-status{display:flex;align-items:center;gap:6px;font-size:9px;color:#a1b1a3;padding:10px 22px;border-bottom:1px solid #eff3ec;background:#fbfcfa}.receive-status .status-dot{width:5px;height:5px}.receive-status .text-button{font-size:9px;margin-left:auto}.message-list{flex:1;min-height:0;overflow-y:auto;padding:22px 23px;scroll-behavior:smooth}.message-list>.empty-state{height:100%;min-height:230px}.message-date{text-align:center;color:#b3bcb4;font-size:9px;margin:8px 0 23px}.message-row{display:flex;gap:10px;align-items:flex-start;margin:17px 0}.message-row.outgoing{flex-direction:row-reverse}.message-avatar{width:28px;height:28px;font-size:11px;border-radius:9px;background:#e7eee5;display:grid;place-items:center;color:#88a18c;flex-shrink:0}.message-stack{max-width:80%;min-width:0}.message-sender{font-size:9px;color:#9eada0;margin-bottom:6px}.message-row.outgoing .message-sender{text-align:right}.message-bubble{background:#fff;border:1px solid #eaf0e7;border-radius:0 10px 10px 10px;padding:10px 12px;font-size:12px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.message-row.outgoing .message-bubble{background:#e1f0e3;border-color:#d7eadb;border-radius:10px 0 10px 10px;color:#3c6448}.message-meta{display:flex;gap:7px;align-items:center;margin-top:6px;font-size:8px;color:#a5b3a7}.message-row.outgoing .message-meta{justify-content:flex-end}.message-meta .failed{color:var(--red)}.message-meta .sent{color:#80a88b}.message-retry{font-size:9px;background:transparent;padding:0;color:var(--red);text-decoration:underline}.composer{background:#fff;border-top:1px solid #e7eee5;padding:17px 22px 15px}.composer textarea{width:100%;min-height:73px;max-height:160px;resize:none;border:0;background:transparent;font-size:12px;line-height:1.8;padding:0}.composer textarea:focus{box-shadow:none}.composer textarea:disabled{background:transparent}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.composer-bottom>span{font-size:9px;color:#aeb8ad;line-height:1.5}.composer .button{font-size:11px;padding:7px 17px}.composer .button .icon{width:13px;height:13px}
/* Directories */
.directory-view{padding:27px 29px;overflow-y:auto}.directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.directory-toolbar h2{font-size:17px;font-weight:600}.directory-toolbar p{font-size:10px;color:#98a59a;line-height:1.7;margin-top:8px}.directory-toolbar .button{font-size:10px}.directory-controls{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:18px}.directory-controls .search-box{width:300px;background:#fff}.directory-controls .muted-label{white-space:nowrap;font-size:10px}.directory-list{border:1px solid #e7ede6;background:#fff;border-radius:10px;overflow:hidden;min-height:180px}.directory-row{display:flex;align-items:center;gap:13px;padding:16px 19px;border-bottom:1px solid #edf2eb;cursor:pointer}.directory-row:last-child{border-bottom:0}.directory-row:hover,.directory-row.active{background:#f8fbf7}.directory-row.active{box-shadow:inset 3px 0 #67a980}.directory-row .account-avatar{height:37px;width:37px;font-size:12px}.directory-row-main{flex:1;min-width:0}.directory-row-main strong{display:block;font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.directory-row-main p{font-size:10px;color:#a1aea3;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.directory-row .text-button{font-size:10px;display:flex;align-items:center;gap:5px}.directory-row .text-button .icon{width:14px;height:14px}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px}.pagination span{font-size:10px;color:#96a497}.pagination .button{font-size:10px}
/* Dialogs and feedback */
.modal{border:1px solid #e5ece5;border-radius:15px;padding:29px;width:432px;max-width:calc(100vw - 32px);box-shadow:0 24px 80px #11261726;color:var(--ink)}.modal::backdrop{background:#152b1ec7;background:#1d312a66;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px}.modal-heading .eyebrow{font-size:8px;margin-bottom:9px}.modal-heading h2{font-size:18px;font-weight:600;line-height:1.5}.modal-heading>.icon-button{margin-right:-6px;margin-top:-5px}.modal form label:not(:first-child),#import-fields label{margin-top:19px}.segmented{display:flex;gap:3px;padding:4px;background:#f2f5f0;border-radius:8px;margin-bottom:25px}.segmented button{flex:1;font-size:11px;padding:9px 10px;border-radius:5px;background:transparent;color:#8a9b8e}.segmented button.active{background:#fff;color:var(--green);box-shadow:0 2px 7px #183d2029;box-shadow:0 2px 7px #183d2010;font-weight:550}.modal .text-input{font-size:12px}.soft-note{display:flex;gap:10px;margin-top:20px;padding:15px 13px;background:#f3f8f1;border:1px solid #e8f0e4;border-radius:9px;color:#7b9580}.soft-note .icon{width:17px;height:17px;margin-top:2px}.soft-note strong{font-size:11px;font-weight:550}.soft-note p{font-size:10px;line-height:1.8;color:#91a494;margin-top:5px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:26px}.modal-footer .button{font-size:12px}.modal-description{color:#95a39a;font-size:12px;line-height:1.9;margin-bottom:20px}.qr-modal{width:385px}.qr-modal .modal-heading{margin-bottom:13px}.qr-art{display:grid;place-items:center;width:230px;height:230px;border:1px solid #e2ebe0;border-radius:14px;margin:24px auto 21px;background:#fff;overflow:hidden}.qr-art img{height:206px;width:206px;object-fit:contain;image-rendering:pixelated}.qr-art .qr-success{font-size:12px;color:var(--green);display:flex;align-items:center;flex-direction:column;gap:12px}.qr-success .icon{height:44px;width:44px;border-radius:50%;background:#e8f6e9;padding:9px}.qr-art .empty-state{padding:15px;min-height:unset}.qr-art .empty-state h3{font-size:12px}.qr-art .empty-state p{font-size:10px}.qr-state{text-align:center;font-size:13px;font-weight:550;color:#587f65}.qr-state.error{color:var(--red)}.qr-instruction{text-align:center;font-size:10px;color:#99aa9c;line-height:1.9;margin:9px 0 22px}.qr-bottom{display:flex;align-items:center;justify-content:space-between;padding:0 8px}.qr-bottom .muted-label{font-size:10px}.qr-bottom .button{font-size:10px}.qr-privacy{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;color:#aabaad;margin-top:26px}.qr-privacy .icon{height:12px;width:12px}.compact-modal{width:365px}.toast-region{position:fixed;right:26px;top:23px;z-index:1000;display:flex;flex-direction:column;gap:9px;pointer-events:none}.toast{display:flex;align-items:center;gap:9px;max-width:340px;background:#fff;border:1px solid #e4ece3;box-shadow:0 5px 25px #1a382515;border-radius:9px;padding:13px 18px;font-size:12px;color:#597e62;line-height:1.6;animation:toast-in .2s ease}.toast.error{color:var(--red);border-color:#f3e1df}.toast .icon{height:16px;width:16px}@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.workspace{grid-template-columns:82px 250px minmax(0,1fr)}.detail-panel{width:298px;padding-left:28px;padding-right:28px}.overview-view{padding:38px 43px}.topbar{padding:0 43px}.stat-card{padding:22px}.conversation-panel{width:275px}.directory-view{padding:32px 40px}}
@media(max-width:1250px){.workspace{grid-template-columns:65px 207px minmax(0,1fr)}.nav-item{width:48px}.account-sidebar{padding-left:10px;padding-right:10px}.detail-panel{width:225px;padding:23px 17px}.overview-view{padding:25px 22px}.topbar{padding:0 22px}.welcome-row{align-items:flex-start}.welcome-row h2{font-size:17px}.welcome-row>.button{font-size:10px;padding:8px 10px}.stats-grid{gap:10px}.stat-card{padding:16px 12px}.stat-icon{right:10px;top:13px;width:25px;height:25px}.stat-icon .icon{width:14px;height:14px}.stat-card strong{font-size:27px}.overview-account-row{padding:17px 15px;gap:10px}.panel-heading{padding:20px 17px}.conversation-panel{width:200px}.chat-header{padding:17px 16px}.chat-header strong{max-width:160px}.chat-header .button{padding:5px 7px}.chat-header .button .icon{display:none}.message-list{padding:15px}.composer{padding:14px 16px}.directory-view{padding:25px 22px}.clock-label{display:none}.sidebar-brand{font-size:14px}}
@media(max-width:1060px){.detail-panel{display:none}.workspace{grid-template-columns:64px 211px minmax(0,1fr)}.content-with-detail.show-detail .detail-panel{display:block;position:absolute;right:0;top:99px;bottom:0;z-index:10;width:280px;box-shadow:-12px 0 36px #213e2012}.welcome-row h2{font-size:19px}.stat-card{padding:19px}.stat-icon{right:14px;top:16px}.conversation-panel{width:210px}.chat-header strong{max-width:210px}.directory-controls .search-box{width:320px}.topbar{height:89px}.content-with-detail.show-detail .detail-panel{top:89px}}
@media(max-width:760px){.workspace{grid-template-columns:55px minmax(0,1fr)}.account-sidebar{grid-column:2;grid-row:1;height:74px;padding:0 12px;flex-direction:row;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.sidebar-brand,.sidebar-heading,.sidebar-bottom,.add-account-button{display:none}.account-list{flex-direction:row;max-height:none;overflow-x:auto;flex:1;gap:5px}.account-item{width:auto;flex-shrink:0;min-width:128px;min-height:51px;padding:7px 9px;gap:8px}.account-item-text strong{font-size:10px;max-width:126px}.account-item-text small{font-size:8px}.account-item .account-avatar{width:29px;height:29px;border-radius:9px;font-size:11px}.account-item>.icon{display:none}.account-sidebar .account-list:empty{height:50px}.account-list .empty-state{padding:8px;min-height:0;align-items:flex-start}.account-list .empty-state h3{font-size:11px}.account-list .empty-state p,.account-list .empty-art{display:none}.workspace-main{grid-column:2;grid-row:2}.workspace{grid-template-rows:74px minmax(0,1fr)}.nav-rail{grid-row:1/3;padding-top:20px;gap:32px}.nav-rail .brand-mark{width:33px;height:33px;border-radius:11px}.nav-rail .brand-mark .icon{width:20px;height:20px}.nav-item{width:43px;height:54px;font-size:9px}.nav-item .icon{height:19px;width:19px}.nav-items{gap:9px}.nav-bottom .nav-item{width:43px;font-size:8px}.topbar{height:76px;padding:0 18px}.page-heading h1{font-size:17px}.page-heading .eyebrow{font-size:7px;margin-bottom:7px}.topbar-actions{gap:11px}.admin-avatar{height:27px;width:27px;font-size:10px}.topbar-actions .button{font-size:10px;min-height:29px;padding:6px 8px}.topbar-actions .button .icon{width:13px;height:13px}.overview-view{padding:23px 18px}.welcome-row{gap:12px;flex-wrap:wrap;margin-bottom:21px}.welcome-row h2{font-size:17px}.welcome-row p{font-size:10px;max-width:270px}.welcome-row>.button{margin-top:4px}.stats-grid{gap:9px}.stat-card{padding:14px 11px}.stat-icon{display:none}.stat-card p{padding:0;font-size:9px}.stat-card strong{font-size:25px}.stat-card small{font-size:8px;line-height:1.6;display:block}.panel-heading{padding:18px 14px}.panel-heading p{font-size:9px}.panel-heading>.muted-label{display:none}.overview-account-row{gap:8px;padding:15px 13px}.overview-account-row>.account-avatar{width:32px;height:32px;border-radius:9px;font-size:12px}.overview-account-main strong{font-size:11px}.overview-account-row .status-pill{font-size:8px;min-width:42px;padding:4px}.overview-account-row .button{font-size:9px;min-height:27px;margin-left:0;padding:4px 6px}.workflow-note{padding:22px 2px;gap:11px}.workflow-note p{font-size:9px}.workflow-note h3{font-size:10px}.content-with-detail.show-detail .detail-panel{top:150px;left:55px;width:auto;box-shadow:none}.messages-view{position:relative}.conversation-panel{width:100%;border:0}.messages-view.chat-open .conversation-panel{display:none}.messages-view:not(.chat-open) .chat-panel{display:none}.chat-header{min-height:71px;padding:15px}.chat-header strong{max-width:200px;font-size:12px}.chat-title-back{border:0;background:transparent;display:inline-flex;align-items:center;gap:6px;color:var(--green);font-size:10px;padding:0 0 6px}.chat-title-back .icon{width:11px;height:11px;transform:rotate(180deg)}.chat-header span{margin-top:4px}.chat-header .button{font-size:9px}.receive-status{padding:9px 15px;font-size:8px}.receive-status .text-button{font-size:8px}.composer{padding:14px}.composer-bottom>span{max-width:170px;font-size:8px}.message-bubble{font-size:11px}.message-list{padding:15px}.directory-view{padding:23px 17px}.directory-toolbar{gap:12px;margin-bottom:20px}.directory-toolbar h2{font-size:16px}.directory-toolbar p{font-size:9px;max-width:230px}.directory-toolbar .button{font-size:9px;min-height:29px;padding:6px 8px}.directory-toolbar .button .icon{width:13px;height:13px}.directory-controls{gap:10px}.directory-controls .search-box{width:100%}.directory-controls .muted-label{font-size:9px}.directory-row{padding:15px 13px;gap:10px}.directory-row-main strong{font-size:11px}.directory-row-main p{font-size:9px}.directory-row .account-avatar{height:32px;width:32px;font-size:11px}.directory-row .text-button{font-size:9px}.directory-row .text-button .icon{display:none}.global-error{padding:9px 13px;font-size:10px}.login-brand{left:24px;top:27px;font-size:12px}.login-brand .brand-mark{height:35px;width:35px;border-radius:11px}.login-brand b{margin-left:5px}.login-card{padding:34px 27px 25px;width:390px}.login-card h1{font-size:29px}.login-footer{font-size:8px;letter-spacing:1px;bottom:20px}.login-footer span{margin-left:10px}.toast-region{top:15px;left:20px;right:20px;align-items:center}.toast{font-size:11px;max-width:100%}.modal{padding:24px}.qr-art{height:222px;width:222px}.qr-art img{height:200px;width:200px}}
@media(min-width:761px){.chat-title-back{display:none}}
@media(min-width:1061px){#close-account-detail{visibility:hidden}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Keep the compact layout readable on touch screens. */
@media(max-width:760px){.button,.button.small,.welcome-row>.button,.overview-account-row .button,.directory-toolbar .button,.pagination .button,.modal-footer .button{font-size:13px;min-height:36px}.nav-item{font-size:11px}.nav-bottom .nav-item{font-size:10px}.account-item-text strong{font-size:12px}.account-item-text small{font-size:11px}.account-item{min-width:155px;min-height:55px}.welcome-row p,.panel-heading p,.stat-card p,.stat-card small,.workflow-note h3,.workflow-note p,.directory-toolbar p,.directory-controls .muted-label,.directory-row-main p,.directory-row .text-button,.conversation-bottom,.conversation-item-text p,.empty-state p,.conversation-panel .empty-state p,.qr-instruction,.qr-bottom .muted-label,.modal-description,.detail-description,.detail-field,.detail-action,.detail-caption,.detail-status{font-size:12px}.overview-account-main strong,.directory-row-main strong,.conversation-item-title strong,.chat-header strong,.message-bubble,.composer textarea{font-size:14px}.overview-account-main p,.status-pill,.overview-account-row .status-pill,.conversation-item-title time,.message-meta,.message-date,.composer-bottom>span,.receive-status,.receive-status .text-button{font-size:11px}.stat-card p{line-height:1.6}.stat-card small{line-height:1.6}.stat-card{padding:14px 10px}.stat-card strong{font-size:26px}.overview-account-row{flex-wrap:wrap}.overview-account-main{min-width:110px}.overview-account-row .button{margin-left:auto}.directory-row{min-height:76px}.directory-row .text-button{padding:8px}.search-box input,.input-with-icon input,.modal .text-input{font-size:14px}.conversation-item{min-height:78px}.conversation-item-title{gap:8px}.chat-header .button span,.chat-header .button{font-size:12px}.chat-header .button{padding:8px}.chat-header>div{min-width:0;flex:1}.chat-header strong{max-width:100%}.message-sender{font-size:12px}.message-stack{max-width:84%}.composer .button{font-size:13px;min-height:36px}.chat-title-back{font-size:12px}.qr-art{height:230px;width:230px}.qr-art img{height:206px;width:206px}.qr-privacy{font-size:11px}.login-intro{font-size:14px}.field-hint,.login-private{font-size:12px}.login-card label,.modal form label,.segmented button{font-size:13px}.soft-note strong{font-size:13px}.soft-note p{font-size:12px}.detail-name{font-size:18px}.detail-heading h3{font-size:14px}.detail-section h4{font-size:12px}.member-row{font-size:12px}.global-error,.toast{font-size:12px}}

/* 验证流程保持在二维码弹窗内；小屏可滚动，官方验证页面由用户手动打开。 */
.qr-modal{width:420px;max-height:calc(100dvh - 32px);overflow-y:auto}.qr-verification{margin:16px 0;padding:15px;border:1px solid #ead9ad;border-radius:10px;background:#fffaf0;color:#725a2d}.qr-verification strong{display:block;font-size:14px}.qr-verification p,.qr-help p{font-size:12px;line-height:1.8;margin:8px 0;overflow-wrap:anywhere}.qr-verification .button{margin-top:5px;text-decoration:none;white-space:normal;text-align:center}.qr-help{margin:16px 0;color:var(--muted);font-size:12px;line-height:1.8}.qr-help summary{cursor:pointer;color:var(--ink);font-weight:550}
.qr-verify-qr{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:12px}
.qr-verify-qr[hidden]{display:none!important}
.qr-verify-qr canvas{width:224px;height:224px;max-width:100%;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.qr-verify-qr-tip{font-size:12px;color:var(--muted);text-align:center;max-width:260px;line-height:1.5}
