:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK SC","Microsoft YaHei",sans-serif;color:#243c37;background:#f3f6f5;font-size:14px;--green:#167b69;--muted:#7b8c86;--line:#e4ebe7}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;min-height:44px;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.45}input,select,textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;padding:13px;background:white;color:inherit;outline:none;font-size:16px}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #167b6912}textarea{resize:none}h1,h2,p{margin:0}h1{font-size:25px;letter-spacing:-.7px}h2{font-size:17px}p{line-height:1.65}label{display:block;font-size:13px;color:#62766e}label input,label select{margin-top:7px}form label+label{margin-top:16px}[hidden]{display:none!important}.muted{color:var(--muted);font-size:13px}.fine{font-size:11px;color:var(--muted);line-height:1.7}.center{text-align:center;margin-top:22px}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;color:var(--muted);font-weight:600;margin-bottom:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.primary,.secondary,.danger{width:100%;border-radius:13px;padding:13px 18px;font-weight:600;min-height:47px}.primary{background:var(--green);color:white;display:flex;align-items:center;justify-content:space-between}.secondary{background:#edf4f0;color:var(--green)}.danger{background:#ffeded;color:#b14242}.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:24px}.panel h2{margin-bottom:18px}.panel .primary{margin-top:24px}.panel .fine{margin-top:12px}.notice{background:#fff7e5;color:#886a2b;padding:13px 16px;border-radius:12px;font-size:12px;line-height:1.65}.compact{margin:14px 0}.login-screen{max-width:440px;margin:0 auto;padding:55px 25px 32px}.brand-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:var(--green);color:white;font-size:26px;margin-bottom:30px}.login-screen h1{font-size:34px;line-height:1.35;margin:15px 0}.login-screen>.muted{margin-bottom:28px}.login-screen>.notice{margin-top:20px}#workspace{max-width:620px;margin:auto;min-height:100dvh;background:#f7f9f8}header{padding:26px 22px 18px;display:flex;justify-content:space-between;align-items:center;background:#f7f9f8}.profile{background:#e4eee9;border:3px solid white;border-radius:50%;width:44px;height:44px;font-size:17px;color:var(--green)}main{padding:0 20px 105px}.quota-card{background:linear-gradient(120deg,#176e5e,#278e78);border-radius:21px;color:white;padding:23px 22px}.pill{border-radius:20px;padding:4px 10px;font-size:10px;background:#ffffff20;white-space:nowrap}.quota-number{display:flex;align-items:baseline;gap:10px;margin:18px 0}.quota-number strong{font-size:45px;font-weight:650;letter-spacing:-2px}.quota-number>span{font-size:13px;color:#c7e2d8}.quota-card .fine{color:#d1e7df;margin-top:11px}progress{width:100%;height:5px;border:0;border-radius:6px;overflow:hidden;background:#ffffff24}progress::-webkit-progress-bar{background:#ffffff24}progress::-webkit-progress-value{background:#b8e7c4}progress::-moz-progress-bar{background:#b8e7c4}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}.section-heading h2 .muted{margin-left:6px}.text-button{color:var(--green);font-size:13px;font-weight:600;white-space:nowrap}.search{display:flex;align-items:center;background:white;border-radius:12px;border:1px solid var(--line);padding-left:14px}.search>span{font-size:25px;color:#8ba297}.search input{border:0;margin:0;background:transparent;box-shadow:none}.account-list{display:grid;gap:12px}.account-card,.user-card{background:white;border:1px solid var(--line);border-radius:17px;padding:17px;margin-bottom:11px}.account-top{display:flex;align-items:center;gap:12px}.avatar{width:43px;height:43px;min-width:43px;border-radius:15px;background:#edf3ee;color:#507c67;display:grid;place-items:center;font-weight:600}.account-name{flex:1;min-width:0}.account-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;margin-bottom:5px}.account-name p{font-size:11px;color:var(--muted)}.offline{font-size:11px;color:#8d9b96;white-space:nowrap}.status-dot{width:7px;height:7px;background:#b8c5bd;display:inline-block;border-radius:50%;margin-right:4px}.account-actions{border-top:1px solid #f0f3f1;display:flex;gap:6px;margin-top:14px;padding-top:9px}.account-actions button{flex:1;min-height:36px;font-size:12px;color:#668176}.account-actions button:first-child{background:#eff7f2;color:var(--green);border-radius:9px}.account-actions .remove{flex:0 0 42px;color:#aab4ad}.empty{padding:38px 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty strong{color:#536f61;display:block;margin-bottom:7px}.empty-tag{font-size:11px;border:1px solid var(--line);border-radius:30px;padding:6px 12px;color:#8c9b93}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:620px;display:flex;border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(12px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:5}nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:#94a299}nav button span{font-size:25px;line-height:28px}nav button.active{color:var(--green);font-weight:650}.listener-banner{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:13px;background:white;border-radius:14px}.listener-banner p{font-size:10px;color:var(--muted);margin-top:3px}.listener-banner strong{font-size:13px}.listener-banner .pill{margin-left:auto;background:#f1f4f2;color:#7b8e81;font-size:9px}.chat-empty{min-height:290px;height:calc(100dvh - 445px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px}.chat-empty p{font-size:12px;color:#8b9c91}.chat-symbol{font-size:37px;width:70px;height:70px;display:grid;place-items:center;color:#91b59b;background:#e9f0ea;border-radius:24px}.chat-empty h2{font-size:16px;color:#607c6a}.composer{background:white;border:1px solid var(--line);border-radius:16px;padding:12px;position:sticky;bottom:85px}.quick-replies{display:flex;gap:8px;overflow:auto;margin-bottom:12px}.quick-replies button{min-height:30px;font-size:11px;border-radius:30px;background:#f2f6f3;white-space:nowrap;padding:5px 12px}.identity-row{font-size:10px;display:flex;gap:8px;align-items:center;margin-bottom:10px;color:#8e9b93}.identity-row strong{color:var(--green);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity-row span:last-child{margin-left:auto}#messageForm{display:flex;align-items:center;gap:9px}#messageForm .avatar{border-radius:50%;width:35px;height:35px;min-width:35px;font-size:12px}#messageInput{border:0;font-size:13px;padding:10px 0;max-height:110px;box-shadow:none}.send{background:var(--green);color:white;border-radius:50%;min-width:36px;min-height:36px;font-size:23px}.composer .fine{font-size:10px;margin-top:10px}.monitor-panel{margin-top:25px}.monitor-panel .muted{margin-bottom:18px}.monitor-panel button{margin-top:14px}.quota-form{display:flex;gap:10px;margin-top:15px;align-items:center}.quota-form label{flex:1}.quota-form input{max-width:130px;padding:8px}.quota-form button{width:auto;min-height:40px;font-size:12px}dl{display:grid;grid-template-columns:1fr 1fr;row-gap:18px;font-size:12px;margin:28px 0}dt{color:var(--muted)}dd{text-align:right;margin:0}dialog{border:0;border-radius:23px 23px 0 0;padding:24px 22px calc(25px + env(safe-area-inset-bottom));width:min(100%,620px);max-width:100%;max-height:88dvh;overflow:auto;margin:auto auto 0;background:white;color:inherit}dialog::backdrop{background:#18372c66;backdrop-filter:blur(2px)}dialog .section-heading{margin:0 0 12px}dialog .muted{margin-bottom:20px}dialog .primary{margin-top:22px}.close{font-size:27px;color:#85958b;width:40px}.identity-choice{display:flex;width:100%;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0;text-align:left}.identity-choice .account-name{flex:1}.identity-choice.selected{color:var(--green)}#identityList{max-height:50dvh;overflow:auto}#confirmDialog p{margin:20px 0;overflow-wrap:anywhere}#toast{position:fixed;z-index:50;bottom:100px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);padding:13px 18px;background:#203e35;color:white;border-radius:13px;font-size:12px;box-shadow:0 8px 30px #18372c22}@media(min-width:700px){#workspace{border-left:1px solid var(--line);border-right:1px solid var(--line)}.login-screen{padding-top:75px}dialog{border-radius:22px;margin:auto;max-width:430px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.chat-symbol .icon{width:34px;height:34px}.search .icon{width:19px;height:19px}

.user-tools{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:12px;padding-top:5px}.user-tools button{padding:0 4px}#passwordResetForm>.fine{margin-top:16px}#passwordResetTarget{overflow-wrap:anywhere}

.account-name-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin-top:12px;padding-top:5px}.account-name-tools button{padding:0 4px}#accountNameTarget{overflow-wrap:anywhere}

.brand-logo{object-fit:contain;padding:0;width:88px;height:88px;border-radius:22px}.header-logo{object-fit:contain;border-radius:12px;flex-shrink:0}header>div{flex:1}header{gap:12px}

.avatar{position:relative;overflow:hidden}.account-avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--soft)}

/* Larger, calm mobile account controls. */
.account-top>.avatar{width:56px;height:56px;min-width:56px;border-radius:17px;font-size:20px}.account-name strong{font-size:17px}.account-name p{font-size:13px;line-height:1.6}.account-remark{color:#4e6e64!important}.account-status{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:36px;padding:8px 11px;border-radius:12px;font-size:13px;font-weight:650;white-space:nowrap}.account-status .status-dot{background:currentColor}.status-offline{color:#b83f48;background:#fff0f0}.status-success{color:#117349;background:#e6f5ed}.status-pending{color:#9b6519;background:#fff2da}.account-actions button{font-size:15px;min-height:46px}.account-name-tools{justify-content:flex-end}.account-name-tools button{font-size:15px;padding:0 16px;min-height:44px}.clear-name{display:flex;align-items:center;gap:8px;margin:16px 0}.clear-name input{width:18px;height:18px;margin:0}.room-list{display:flex;gap:8px;overflow-x:auto;padding:10px 0;scrollbar-width:thin}.room-choice{flex:0 0 auto;max-width:220px;padding:10px 15px;border-radius:13px;background:#edf2ef;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px}.room-choice.selected{background:#167b69;color:white}.message-list{height:calc(100dvh - 475px);min-height:180px;overflow-y:auto;padding:12px 2px 24px;overscroll-behavior:contain}.chat-message{margin-bottom:14px;max-width:92%}.message-meta{display:flex;gap:12px;align-items:center;font-size:12px;color:#638075;margin:0 4px 5px}.message-meta time{color:#8b9a94;font-size:11px}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;background:white;border:1px solid #e1eae5;border-radius:0 14px 14px 14px;padding:10px 13px;font-size:15px;line-height:1.6}.listener-banner>div{min-width:0}.listener-banner strong{overflow-wrap:anywhere}.listener-banner .pill{flex-shrink:0;font-size:12px}#accountNameHint{margin:12px 0}#accountNameForm .fine{margin:14px 0}#messageList:empty{display:none}
@media(max-width:380px){.account-status{font-size:12px;padding:7px 9px}.account-top{gap:9px}.account-name strong{font-size:16px}.account-top>.avatar{width:50px;height:50px;min-width:50px}.account-card{padding:17px!important}}

.original-identity{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px 0}.original-identity>.avatar{width:44px;height:44px;min-width:44px}.original-identity>span:nth-child(2){flex:1;min-width:0}.original-identity strong,.original-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.original-identity strong{font-size:15px}.original-identity small{font-size:12px;color:var(--muted);margin-top:3px}.original-identity b{font-size:13px;color:var(--green)}#originalChatFrame{display:block;width:100%;height:calc(100dvh - 290px);min-height:370px;border:1px solid var(--line);border-radius:16px;background:white}#chatView:has(#originalChatShell:not([hidden])){padding-bottom:0}

/* Compact mobile sign-in brand: logo left, title and caption right. */
.login-screen{padding-top:34px}.login-brand{display:flex;align-items:center;gap:15px;margin-bottom:26px}.login-brand .brand-logo{width:76px;height:76px;min-width:76px;border-radius:20px;margin:0}.login-brand-copy{min-width:0}.login-brand .eyebrow{font-size:8px;letter-spacing:1.2px}.login-brand h1{font-size:23px;line-height:1.38;margin:8px 0 7px}.login-brand .muted{font-size:11px;line-height:1.6;margin:0;white-space:nowrap}.login-screen [data-refresh-app]{font-size:12px;min-height:34px;padding:4px 0}.login-screen [data-app-version]{float:right;font-size:10px;line-height:34px;color:#8c9c97}
@media(max-width:375px){.login-screen{padding:28px 20px}.login-brand{gap:12px}.login-brand .brand-logo{width:68px;height:68px;min-width:68px}.login-brand h1{font-size:21px}.login-brand .muted{font-size:10px}.login-brand .eyebrow{font-size:7px;letter-spacing:.8px}}

.password-field{display:flex;align-items:center;position:relative}.password-field input{padding-right:60px}.password-field button{position:absolute;right:6px;min-height:44px;background:transparent;color:var(--green);padding:6px 10px;font-size:13px}.login-error{border-radius:12px;background:#fff0f0;color:#ad3846;padding:12px;font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:12px 0}

#originalChatFrame{height:calc(100dvh - 225px);min-height:420px;border-radius:14px}.quick-replies{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.quick-replies button{flex-shrink:0;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:34px}.quick-item{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);padding:9px 0}.quick-item p{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.quick-item button{font-size:13px;padding:6px;min-height:40px;flex-shrink:0}.quick-item [data-delete-quick]{color:#ac4c50}#quickReplyForm{margin-top:18px}#quickReplyForm textarea{width:100%;padding:12px;font:inherit;border:1px solid var(--line);border-radius:12px;resize:vertical;margin:8px 0 15px;box-sizing:border-box}#quickReplyList{max-height:35dvh;overflow-y:auto}
