/* 左侧联系人，右侧对话；正文、联系人与整个页面分别滚动，输入框始终可见。 */
.nav-caption{display:none}.nav-group{display:grid;gap:5px;margin-top:22px}.nav-group-label{font-size:10px;color:#abc4b8;padding:0 16px 8px;letter-spacing:.8px}nav{gap:0}.overview-actions{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}.overview-actions button{font-size:12px}.chat-mode #workspace{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.chat-mode .workspace-body{display:flex;flex-direction:column;flex:1;min-height:0}.chat-mode .topbar{flex-shrink:0}.chat-mode main{flex:1;min-height:0;width:100%;max-width:none;display:flex;flex-direction:column;padding:24px 32px 16px}.chat-mode .page-header{margin-bottom:20px;flex-shrink:0}.chat-mode #view{flex:1;min-height:0}.chat-mode .workspace-footer{flex-shrink:0;padding-top:12px}.chat-mode .inline-notice{flex-shrink:0;margin-bottom:12px}.conversation-shell{height:100%;display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.contact-pane{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fff}.contact-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 16px}.contact-heading h2{font-size:17px}.contact-heading span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.contact-heading>.icon{color:var(--accent)}.contact-search{padding:0 16px 12px}.contact-search .search-field{width:100%}.contact-search input{font-size:12px;background:#f7f9f8}.contact-device{padding:0 16px 12px}.contact-device select{font-size:11px;padding:8px 10px}.contact-tabs{display:flex;padding:0 16px 14px;gap:4px;border-bottom:1px solid var(--line)}.contact-tabs button{border:0;background:transparent;font-size:11px;padding:6px 13px;color:var(--muted);font-weight:500}.contact-tabs button.selected{color:var(--accent);background:var(--accent-soft);font-weight:650}.contact-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.contact-item{display:flex;width:100%;text-align:left;justify-content:flex-start;align-items:flex-start;gap:12px;border:0;border-radius:0;background:#fff;padding:17px 16px;border-bottom:1px solid #eef2ef;font-weight:400;white-space:normal;position:relative}.contact-item:hover{background:#f6f9f7}.contact-item.selected{background:#eaf3ee}.contact-item.selected:before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}.contact-avatar{width:36px;height:36px;display:grid;place-items:center;background:#edf3ef;border:1px solid #d9e5dc;border-radius:10px;color:#507261;flex-shrink:0}.contact-item.selected .contact-avatar{background:#dbece1;border-color:#c5ddce;color:#1b694e}.contact-avatar .icon{width:18px;height:18px}.contact-copy{min-width:0;flex:1;display:grid;gap:5px}.contact-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.contact-line strong{font:650 12px/1.5 "Segoe UI",sans-serif;color:#1b3930;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-line time{font-size:9px;color:var(--muted);flex-shrink:0}.contact-preview{font-size:11px;color:#64776e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}.contact-meta{font-size:9px;color:var(--muted);font-weight:400}.contact-meta>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-meta>span:last-child{flex-shrink:0}.unread-count{min-width:18px;height:18px;padding:0 5px;border-radius:10px;display:grid;place-items:center;background:var(--accent);color:#fff!important;font:650 9px/1 "Segoe UI",sans-serif}.contact-pages{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:10px 16px;font-size:10px;color:var(--muted)}.contact-pages div{display:flex;gap:6px}.contact-pages button{padding:2px 8px;min-height:26px;font-size:12px}.thread-pane{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:#f6f8f7}.thread-top{height:86px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0}.thread-identity{display:flex;align-items:center;gap:12px;min-width:0}.thread-identity>div{min-width:0}.thread-identity h2{font-size:17px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.thread-identity p{font-size:10px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thread-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.thread-header-actions .pill{font-size:9px}.contact-back{display:none}.thread-banner{font-size:10px;padding:9px 24px;background:#fff6e6;color:#88601e;border-bottom:1px solid #f0e3c9;flex-shrink:0;line-height:1.7}.message-scroll{flex:1;min-height:0;overflow-y:auto;padding:20px 28px;overscroll-behavior:contain;scrollbar-gutter:stable}.message-scroll>.empty{height:100%;min-height:180px}.message-scroll:focus-visible{outline-offset:-3px}.message-day{text-align:center;font-size:10px;color:#74857b;margin:16px 0 24px;clear:both}.history-start{text-align:center;color:var(--muted);font-size:10px;padding:4px 0 8px}.load-older{display:flex;margin:0 auto 16px;border:1px solid #dce6df;border-radius:20px;background:#fff;font-size:10px;color:var(--accent);font-weight:500;padding:5px 14px}.chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 22px;max-width:80%;width:fit-content;min-width:90px}.chat-message.outgoing{margin-left:auto;align-items:flex-end}.message-bubble{padding:12px 16px;background:#fff;border:1px solid #e0e7e2;border-radius:4px 12px 12px 12px;font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 2px 3px #163e3603}.outgoing .message-bubble{background:#e0eee4;border-color:#c9dfcf;border-radius:12px 4px 12px 12px;color:#1d3d2e}.message-meta{display:flex;align-items:center;gap:8px;margin-top:7px;font-size:9px;color:#62766b}.message-meta .pill{font-size:9px;padding:1px 5px;background:transparent;border-color:transparent}.message-detail{font-size:10px;color:var(--danger);margin-top:5px;max-width:100%;overflow-wrap:anywhere}.chat-composer{flex-shrink:0;background:#fff;border-top:1px solid var(--line);padding:16px 24px 12px}.chat-composer textarea{border:0;outline:none;background:#fff;box-shadow:none;border-radius:0;padding:0;min-height:64px;max-height:140px;font-size:13px;resize:vertical;line-height:1.8}.chat-composer textarea:focus-visible{outline:2px solid #8abdad;outline-offset:4px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.composer-bottom .checkbox-label{font-size:10px;margin:0;align-items:center;gap:7px}.composer-bottom input[type=checkbox]{width:13px;height:13px}.composer-send{display:flex;gap:12px;align-items:center;flex-shrink:0}.composer-send>span{font-size:9px;color:var(--muted)}.composer-send button{font-size:11px;padding:8px 14px}.composer-note{font-size:9px;color:var(--muted);margin-top:10px;line-height:1.7}.composer-unavailable{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;padding:8px 0}.new-message-tip{position:absolute;bottom:220px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--accent);border-color:#c5dcd0;box-shadow:0 3px 12px #1d4a3510;z-index:1}
@media(min-width:1440px){.chat-mode main{padding:24px 36px 16px}.conversation-shell{grid-template-columns:312px minmax(0,1fr)}}
@media(max-width:1200px){.chat-mode main{padding:24px 24px 16px}.conversation-shell{grid-template-columns:260px minmax(0,1fr)}.thread-top{padding:14px 18px}.thread-identity .avatar{width:34px;height:34px}.thread-header-actions .pill{display:none}.message-scroll{padding:16px 20px}.chat-composer{padding:16px 18px 12px}.composer-bottom{flex-wrap:wrap}.composer-send{margin-left:auto}.thread-identity h2{font-size:16px}}
@media(max-width:900px){.conversation-shell{grid-template-columns:1fr}.thread-pane{display:none}.conversation-shell.has-selection .thread-pane{display:flex}.conversation-shell.has-selection .contact-pane{display:none}.contact-back{display:inline-flex;font-size:20px;padding:3px 6px}.contact-pane{border-right:0}.contact-item{padding:16px 20px}.contact-preview{font-size:12px}.contact-meta{font-size:10px}.contact-line strong{font-size:13px}.thread-identity .avatar{display:none}.message-bubble{font-size:13px}.chat-message{max-width:88%}.chat-mode .page-header p{display:none}.chat-mode .workspace-footer{display:none}.chat-mode main{padding:20px 16px}.chat-mode .page-header{margin-bottom:16px}.chat-mode h1{font-size:22px}.thread-identity p span{display:none}.thread-banner{padding:8px 16px}.chat-composer textarea{min-height:60px}.composer-note{font-size:9px}}
@media(max-width:768px){.nav-group{display:contents;margin:0}.nav-group-label{display:none}nav{gap:6px}.chat-mode .sidebar{flex-shrink:0}.chat-mode .sidebar .brand{font-size:16px}.chat-mode .sidebar{padding:14px 16px 8px}.chat-mode nav{margin-top:12px;padding-bottom:0}.chat-mode .topbar{height:54px}.chat-mode main{padding:16px 12px 12px}.chat-mode h1{font-size:20px}.chat-mode .page-header{margin-bottom:12px}.conversation-shell{border-radius:10px}.thread-top{height:72px;padding:10px 12px}.thread-identity{gap:8px}.thread-header-actions .icon-button{padding:6px}.message-scroll{padding:12px 14px}.chat-composer{padding:12px 14px}.composer-bottom{gap:12px}.composer-send{gap:8px}.composer-send button{padding:7px 10px}.composer-bottom .checkbox-label{font-size:9px}.composer-send>span{font-size:8px}.thread-identity h2{font-size:15px}.contact-heading{padding:18px 18px 14px}.contact-tabs{padding-bottom:12px}.chat-mode #notice{font-size:10px;padding:8px 12px}.chat-mode .page-header .actions{flex-shrink:0}.chat-mode .page-header .actions button{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.contact-item,.message-bubble{transition:none}}

#password-form,#block-form{max-width:520px}.composer-unavailable{overflow-wrap:anywhere}.chat-mode .sidebar-footer{padding-top:16px}

.sidebar{overflow-y:auto}@media(max-width:768px){.sidebar{overflow-y:visible}}

.message-detail.message-info{color:var(--muted)}

.composer-recipient{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.message-detail.message-wait{color:#806323}.chat-message>[data-confirm-single]{margin-top:6px;font-size:10px;padding:4px 8px}.chat-mode .workspace-body{height:100dvh;overflow:hidden}.chat-mode .chat-composer{max-height:50dvh;overflow-y:auto}

/* 未读数字固定在头像右上角，长号码和设备备注不会挤掉角标。 */
.contact-avatar{position:relative;overflow:visible}.contact-unread-badge{position:absolute;top:-7px;right:-9px;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#b42332;color:#fff;font:700 10px/1 "Segoe UI",sans-serif;box-sizing:border-box;z-index:1}.contact-item.has-unread{background:#fff8f6}.contact-item.has-unread.selected{background:#eaf3ee}.contact-item.has-unread .contact-line strong{font-weight:750}.contact-item.has-unread .contact-preview{color:#253e33;font-weight:600}.unread-label{color:#a91c2d;font-size:10px;font-weight:700;flex-shrink:0}

.reply-card-choice{flex-wrap:wrap}.reply-card-choice small{flex-basis:100%;font-size:11px;line-height:1.6;color:#526b62}.reply-card-choice label{font-weight:650}
