*{box-sizing:border-box}body{margin:0;background:#f5f6f9;color:#172036;font:14px/1.65 "Microsoft YaHei",system-ui,sans-serif}header{height:76px;padding:0 max(28px,calc((100vw - 1140px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e5e8ef}.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:26px}.brand span{font-size:16px}.badge{color:#466078;background:#edf2f7;padding:4px 12px;border-radius:20px}main{max-width:1140px;margin:auto;padding:30px 24px}.intro{margin-bottom:26px}.eyebrow{font-size:11px;letter-spacing:3px;color:#7c89a0;margin:0}h1{font-size:30px;margin:8px 0}p{color:#68748a;margin:8px 0}h2{font-size:17px;display:flex;align-items:center;gap:10px;margin:0 0 18px}h2 b{font-size:12px;color:#5574b0;background:#edf2ff;padding:3px 7px;border-radius:5px}.grid{display:grid;grid-template-columns:290px 1fr;gap:22px}section{background:white;border:1px solid #e1e6f0;border-radius:16px;padding:24px;box-shadow:0 4px 22px #14295205}.login{align-self:start}.small{font-size:12px;color:#8490a4}.login .small{margin-top:20px}#qrBox{min-height:220px;display:grid;place-items:center;background:#f8faff;border-radius:12px;padding:12px}#qr{width:205px;height:205px;object-fit:contain}.qrEmpty{color:#8c98aa;text-align:center}button{border:0;border-radius:8px;background:#285be9;color:#fff;padding:11px 18px;font:inherit;cursor:pointer;white-space:nowrap}button:disabled{background:#dce3f0;color:#8b97ac;cursor:not-allowed}.light{background:#f1f4fa;color:#4c607e;border:1px solid #dce3ef}.actions{display:flex;gap:8px;margin-top:18px}.login .actions button{padding:10px 13px}#verification{display:block;color:#235bdd;margin-top:12px}#verification[hidden],#qr[hidden]{display:none}.chat{padding:26px;background:#f0f1f3;border-radius:12px;margin-bottom:18px}.bubble{display:flex;background:white;border-radius:10px;overflow:hidden;max-width:470px;min-height:138px}.bubble>img{width:138px;height:138px;object-fit:cover}.bubble>div{padding:15px 18px;min-width:0}.bubble strong{font-size:21px;color:#161616;overflow-wrap:anywhere}.bubble p{color:#e84969;font-size:15px;overflow-wrap:anywhere}.bubble small{color:#aaa;display:block;border-top:1px solid #f2f2f2;padding-top:7px;margin-top:13px}.chat>.small{text-align:center;margin-top:12px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:block;color:#52617a;margin-bottom:13px}input,textarea,select{display:block;width:100%;margin-top:5px;border:1px solid #d9e0ed;border-radius:8px;background:#fff;padding:10px 12px;color:#22324d;font:inherit;outline:none}input:focus,textarea:focus,select:focus{border-color:#6089ff;box-shadow:0 0 0 3px #edf2ff}textarea{resize:vertical;font-size:12px;word-break:break-all}.recipientHead{display:flex;align-items:center;justify-content:space-between;margin-top:25px}.recipientHead h2{margin:0}.recipientHead button{font-size:12px;padding:6px 12px}#search{margin-top:12px}select{height:36px}option{padding:7px;border-radius:4px}.sendbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}#recipientLabel{font-size:12px;color:#64748b;word-break:break-all}#result{padding:0;overflow-wrap:anywhere}#result:not(:empty){padding:12px;background:#f1f5ff;border-radius:8px}footer{text-align:center;margin:25px 0 0;color:#9aa3b2;font-size:12px}dialog{border:1px solid #dfe5ef;border-radius:16px;padding:28px;max-width:480px;width:calc(100% - 32px)}dialog::backdrop{background:#14203766}#confirmText{color:#213451;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:780px){header{padding:0 20px}.grid{grid-template-columns:1fr}.intro h1{font-size:25px}.login #qrBox{min-height:100px}.fields{grid-template-columns:1fr}.chat{padding:16px}.bubble>img{width:100px;height:112px}.bubble{min-height:112px}.bubble>div{padding:10px}.bubble strong{font-size:18px}.bubble p{font-size:13px}.sendbar{align-items:stretch;flex-direction:column}}
[hidden]{display:none!important}.friend-panel{margin-top:28px;padding-top:24px;border-top:1px solid #e7ebf2}.friend-panel .recipientHead{margin:0 0 15px}.recipientHead h2{gap:8px}.count-badge{font-size:12px;font-weight:500;color:#607495;background:#f0f4fa;border-radius:12px;padding:1px 8px}.recipientHead .small{margin:4px 0 0 33px}.friend-search{display:flex;align-items:center;gap:10px;border:1px solid #d9e0ed;border-radius:9px;padding:0 12px;background:#fafbfe;margin-bottom:13px}.friend-search:focus-within{border-color:#6089ff;box-shadow:0 0 0 3px #edf2ff}.friend-search>span{font-size:24px;line-height:1;color:#8b99af}.friend-search input{border:0;background:transparent;margin:0;padding:11px 0;box-shadow:none!important;min-width:0}.text-button{padding:4px 0;background:transparent!important;color:#55739c;font-size:12px;border:0}.text-button:hover{color:#2459e4}.text-button:disabled{color:#a1adbf}.friend-list{border:1px solid #e1e7f1;border-radius:10px;overflow:hidden;min-height:334px}.friend-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:13px}.friend-table th{padding:9px 14px;background:#f7f9fc;color:#8490a4;text-align:left;font-size:12px;font-weight:500}.friend-table th:first-child{width:47%}.friend-table th:nth-child(2){width:40%}.friend-table th:last-child{width:13%;text-align:center}.friend-table td{padding:10px 14px;border-top:1px solid #edf0f5}.friend-table tbody tr:has(input){cursor:pointer;transition:background .12s}.friend-table tbody tr:has(input):hover{background:#f7faff}.friend-table tr.is-selected{background:#eef4ff}.friend-table td:last-child{text-align:center}.friend-identity{display:flex;align-items:center;gap:10px;margin:0;cursor:pointer;color:#293d59;min-width:0}.friend-identity strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:#eaf0fc;color:#5474b2;font-size:13px;font-weight:600}.is-selected .friend-avatar{background:#dce8ff;color:#285be9}.friend-id{color:#8a97ab;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.friend-table input[type=radio]{display:inline-block;vertical-align:middle;margin:0;width:17px;height:17px;padding:0;accent-color:#285be9;box-shadow:none;cursor:pointer}.friend-table .empty-friends{height:292px;text-align:center!important;color:#93a0b3;font-size:13px}.friend-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#8b97ab}.friend-pagination>div{display:flex;align-items:center;gap:10px}.friend-pagination button{padding:5px 9px;font-size:11px}.friend-pagination #pageNumber{min-width:32px;text-align:center}.selected-friend{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.selected-friend>div{min-width:0;flex:1}.selected-friend small{display:block;color:#8a98ad;font-size:11px}.selected-friend strong{display:block;color:#8490a5;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e4eaf4;color:#99a6ba}.has-selection .selected-icon{background:#dce8ff;color:#285be9}.has-selection strong{color:#243d69}.friend-panel .sendbar{background:#f5f8fd;border:1px solid #e6ecf6;border-radius:10px;padding:13px;margin-top:18px}.friend-panel #send{font-size:13px;padding:10px 15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#friendStatus{min-height:18px;margin:7px 0}button:focus-visible,input:focus-visible{outline:2px solid #668cf5;outline-offset:3px}@media(max-width:520px){main{padding:22px 14px}section{padding:18px}header{padding:0 18px}.friend-table th,.friend-table td{padding-left:9px;padding-right:9px}.friend-table th:first-child{width:47%}.friend-table th:nth-child(2){width:37%}.friend-table th:last-child{width:16%}.friend-avatar{width:27px;height:27px}.friend-identity{gap:6px}.friend-id{font-size:10px}.friend-pagination{align-items:flex-start;gap:8px}.friend-pagination>div{gap:6px}.friend-pagination button{padding:5px 7px}.friend-panel .sendbar{padding:12px}.selected-friend{width:100%}.recipientHead h2{font-size:16px}.count-badge{font-size:10px}.recipientHead .small{margin-left:0}}

.bubble p:empty{display:none}

.recipient-type{display:flex;align-items:center;gap:12px;margin:8px 0}.recipient-type select{height:auto;width:130px;margin:0;padding:7px 10px}

.entry-tools{display:flex;align-items:end;gap:12px;margin:14px 0}.entry-tools label{flex:1;margin:0}.entry-tools button{margin-bottom:1px}.entry-tools select,#entrySelect,#entryKind{height:auto}.entry-manager{max-width:850px}.entry-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.entry-heading h2{margin:0}.entry-table-wrap{overflow-x:auto;margin-top:18px}.entry-table{width:100%;border-collapse:collapse;font-size:13px;min-width:480px}.entry-table th,.entry-table td{text-align:left;border-bottom:1px solid #e6ebf3;padding:10px 8px}.entry-table th{background:#f5f7fb;font-size:12px;color:#718199}.entry-actions{display:flex;align-items:center;gap:10px}.entry-actions button,.entry-actions a{background:transparent;border:0;padding:0;color:#285be9;font-size:12px;text-decoration:none}.entry-enabled{display:flex;gap:8px;align-items:center}.entry-enabled input{width:auto;margin:0}#entryEditor{max-height:calc(100vh - 30px);overflow:auto}#entryError{color:#a84435}#target:read-only{background:#f6f8fb}.badge a{color:inherit}@media(max-width:520px){.entry-tools{align-items:stretch;flex-direction:column}.entry-tools button{align-self:flex-start}.entry-manager{padding:18px}}

#verificationDialog{width:540px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:20px;overflow:auto}#verificationFrame{display:block;width:100%;height:420px;max-height:calc(100dvh - 160px);border:0;border-radius:10px;background:#f6f8fb}#verificationDialog::backdrop{background:rgba(20,31,50,.45)}

/* Compact workspace, using the existing backend and single-recipient flow. */
body{font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#293343;background:#f3f4f8}header{height:56px;padding:0 22px;position:sticky;top:0;z-index:5}.brand{text-decoration:none;color:#252e3d;font-size:18px;gap:9px}.brand img{border-radius:8px;object-fit:contain}.brand span{font-size:18px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1.3px;color:#89909b}.header-links{display:flex;gap:22px;font-size:12px}.header-links a{color:#707987;text-decoration:none}.sender-nav{position:fixed;left:0;top:56px;bottom:0;width:210px;background:white;border-right:1px solid #e8ebef;padding:14px 0;display:flex;flex-direction:column}.nav-heading{font-size:12px;color:#929aa6;padding:17px 22px 9px}.sender-nav>a{color:#616b7a;padding:12px 24px;text-decoration:none}.sender-nav>a:hover{background:#f7f8fa}.sender-nav>a.active{background:#edf4ff;color:#1768f8;border-right:2px solid #1768f8}main{max-width:none;margin:0 0 0 210px;padding:16px 20px 20px}.sender-page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.breadcrumb{font-size:11px;color:#939aa7;margin:0 0 7px}h1{font-size:20px;margin:0;font-weight:600}h2{font-size:14px;margin:0 0 16px;font-weight:600;gap:7px}.back-link{font-size:12px;text-decoration:none;color:#1768f8}.account-strip{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e9edf2;padding:11px 16px;margin-bottom:14px;gap:12px}.account-summary{display:flex;align-items:center;gap:9px;min-width:0}.account-summary>strong{font-size:13px;font-weight:500;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-summary>span:last-child{font-size:11px;color:#929aa7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.connection-dot{width:7px;height:7px;border-radius:50%;background:#a8b1bf;flex:none}.connection-dot.online{background:#20b98b}.sender-workbench{display:grid;grid-template-columns:minmax(360px,1.1fr) minmax(360px,1fr);gap:16px;align-items:start}section{border:1px solid #e9edf2;background:#fff;border-radius:2px;box-shadow:none;padding:18px 16px;min-width:0}label{font-size:12px;color:#445167;margin:0 0 7px}input,textarea,select{font-size:12px;border-radius:2px;padding:7px 10px;margin-top:6px}input,select{height:36px}textarea{min-height:56px;resize:vertical;line-height:1.6}button{font-size:12px;padding:7px 13px;line-height:18px;height:34px;border-radius:2px;background:#1768f8}button:disabled{background:#f1f3f7;color:#a0a9b7}.light{border-color:#dce1e9;background:white;color:#56647b}.segmented{display:inline-flex;gap:0;margin:0 0 15px;vertical-align:top;border:1px solid #dce2ec;background:#fff;border-radius:2px;overflow:hidden}.segmented button{border-radius:0;border:0;background:#fff;color:#657186;height:32px;padding:6px 18px;box-shadow:none}.segmented button+button{border-left:1px solid #dce2ec}.segmented button[aria-pressed=true]{color:#1768f8;background:#edf4ff;box-shadow:inset 0 -2px #1768f8}.segmented button:disabled{color:#abb2bc}.entry-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0 0}.entry-tools>div{min-width:0}.entry-tools .segmented{margin-bottom:0}.entry-tools .segmented button{padding:6px 14px}.entry-tools button{margin:0}.small{font-size:11px;color:#919aa8;line-height:1.65}#entryHint{margin:7px 0 13px}#miniCardNotice{margin:6px 0 10px}#title{margin-bottom:12px}#target{word-break:break-all}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.preview-heading label{margin:0}.text-button{background:transparent!important;color:#1768f8;height:auto;padding:3px 0;font-size:12px;border:0}.chat{padding:14px;background:#f3f4f8;border-radius:3px;margin:6px 0 0}.bubble{border-radius:3px;min-height:60px;max-width:340px;align-items:center}.bubble>img{width:60px;height:60px;object-fit:cover;flex:none}.bubble>div{padding:8px 10px}.bubble strong{font-size:13px;font-weight:500;line-height:1.45}.bubble p{font-size:11px;color:#919aa8;line-height:1.4;margin:4px 0 0}#previewStatus{margin:7px 0 0}.friend-panel{margin:0;border-top:1px solid #e9edf2;padding:18px 16px}.friend-panel .recipientHead{margin:0 0 14px}.recipientHead h2{margin:0;font-size:14px}.count-badge{font-size:10px;padding:1px 6px;font-weight:400}.friend-panel .segmented{margin-bottom:12px}.friend-search{border-radius:2px;background:white;margin-bottom:12px;height:36px;padding:0 10px;gap:8px}.friend-search>span{font-size:20px}#search{margin:0;height:34px;padding:0;font-size:12px}.friend-list{border-radius:2px;min-height:248px}.friend-table{font-size:12px}.friend-table th{padding:8px 10px;font-size:11px}.friend-table td{padding:8px 10px}.friend-table .empty-friends{height:214px;font-size:12px}.friend-avatar{width:26px;height:26px;font-size:11px;border-radius:5px}.friend-identity{gap:7px}.friend-identity strong{font-size:12px}.friend-id{font-size:10px}.friend-table input[type=radio]{width:15px;height:15px}.friend-table th:first-child{width:47%}.friend-table th:nth-child(2){width:39%}.friend-table th:last-child{width:14%}.friend-pagination{font-size:10px}.friend-pagination button{height:26px;font-size:10px;padding:3px 7px}#friendStatus{min-height:0;margin:6px 0}#friendStatus:empty{display:none}.friend-panel .sendbar{border-radius:2px;padding:11px 10px;margin-top:14px;display:flex;align-items:center;flex-direction:row;gap:10px}.selected-icon{width:23px;height:23px;font-size:11px}.selected-friend{gap:7px}.selected-friend small{font-size:10px}.selected-friend strong{font-size:12px}.friend-panel #send{font-size:12px;padding:8px 13px;height:36px}#result{font-size:12px;line-height:1.65;margin:10px 0 0;color:#7d6d41;overflow-wrap:anywhere}#result:empty{display:none}#result[data-state=sender-only],#result[data-state=rejected],#result[data-state=limited]{color:#bd3e32;background:#fff1ef;padding:8px 10px;border-left:2px solid #e86b61}dialog{border-radius:6px;padding:22px;max-width:calc(100vw - 30px)}#loginDialog{width:320px}#loginDialog .entry-heading h2{font-size:16px}#loginDialog .login{border:0;box-shadow:none;padding:15px 0 0;text-align:center}#qrBox{min-height:190px;padding:8px;background:white}#qr{width:184px;height:184px}.login .actions{margin-top:12px;justify-content:center}.login .actions button{height:34px;padding:6px 12px}.login .small{margin-top:12px}#loginStatus{font-size:12px}.entry-heading .light{height:28px;font-size:11px;padding:4px 9px}#entryEditor input[type=file]{height:auto}#confirmText{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.actions{margin-top:14px}#linkText{min-height:130px}
@media(min-width:1600px){.sender-workbench{grid-template-columns:minmax(450px,650px) minmax(400px,620px)}}
@media(max-width:1100px){.sender-nav{width:180px}.sender-nav>a{padding-left:18px}main{margin-left:180px;padding:14px}.sender-workbench{grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);gap:12px}.account-summary>span:last-child{display:none}.segmented button{padding-left:13px;padding-right:13px}.selected-icon{display:none}}
@media(max-width:870px){.sender-workbench{grid-template-columns:1fr}.sender-page-title{margin-bottom:12px}.sender-nav{width:166px}main{margin-left:166px}.friend-list{min-height:220px}.friend-table .empty-friends{height:184px}}
@media(max-width:600px){header{padding:0 12px}.header-links{gap:10px}.header-links>a:first-child{display:none}.brand span{font-size:16px}.brand small{font-size:9px}.sender-nav{position:static;width:100%;height:auto;flex-direction:row;flex-wrap:wrap;padding:5px 8px;gap:0}.nav-heading{display:none}.sender-nav>a{padding:8px 9px;font-size:11px}.sender-nav>a.active{border:0;border-bottom:2px solid #1768f8}main{margin-left:0;padding:12px}.sender-page-title h1{font-size:18px}.back-link{font-size:11px}.account-strip{padding:9px 12px}.account-summary>strong{max-width:185px}.sender-workbench{gap:12px}.friend-panel .sendbar{padding:10px}.compose,.friend-panel{padding:16px 14px}.entry-tools{flex-direction:row;align-items:center}.entry-tools .segmented button{padding:6px 11px}.friend-table th,.friend-table td{padding:8px}.friend-panel #send{padding:8px 11px}.selected-friend{width:auto}.entry-tools button{align-self:auto}.bubble{max-width:100%}}
