@import url("/scrollbars.css?v=20261005");
:root { color-scheme: light; --bg:#f7f9f8; --surface:#fff; --surface-soft:#f2f7f4; --line:#dde6e1; --text:#101b15; --muted:#5c6b63; --accent:#12764a; --accent-strong:#0c5a37; --accent-soft:#e6f5ec; --shadow:0 14px 36px -18px rgba(14,38,26,.34); }
:root[data-theme="dark"] { color-scheme: dark; --bg:#0b120e; --surface:#141d18; --surface-soft:#18231d; --line:#26332c; --text:#eef6f1; --muted:#9dada3; --accent:#63d99a; --accent-strong:#8ae6b4; --accent-soft:#16301f; --shadow:0 16px 40px -20px rgba(0,0,0,.7); }
* { box-sizing:border-box; } html { overflow-x:hidden; overflow-x:clip; overflow-y:visible; } body { margin:0; max-width:100%; overflow-x:hidden; overflow-x:clip; overscroll-behavior-x:none; background:radial-gradient(circle at 10% 0%, var(--accent-soft), transparent 36%),var(--bg); color:var(--text); font:14px/1.5 "Segoe UI","Microsoft YaHei",sans-serif; }
button,input { font:inherit; } button { cursor:pointer; } .app-shell { min-height:100vh; min-height:100dvh; max-width:100vw; max-width:100%; overflow-x:hidden; overflow-x:clip; }
.topbar { height:72px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 clamp(18px,4vw,64px); border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(18px); position:sticky; top:0; z-index:5; }
.brand { display:flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; } .brand strong,.brand small { display:block; } .brand strong { font-size:17px; letter-spacing:.2px; } .brand small { color:var(--muted); font-size:11px; }
.top-actions { display:flex; align-items:center; gap:10px; } .connection-state { color:var(--muted); font-size:12px; } .icon-button,.primary-button,.secondary-button,.text-button,.sidebar-tab { border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); transition:.18s ease; } .icon-button { width:36px;height:36px; } .icon-button:hover,.secondary-button:hover,.sidebar-tab:hover { border-color:var(--accent); color:var(--accent); } .primary-button { padding:9px 16px; border-color:var(--accent); background:var(--accent); color:#fff; font-weight:700; } .primary-button:hover { filter:brightness(1.06); transform:translateY(-1px); } .primary-button.large { padding:12px 22px; } .secondary-button { padding:8px 12px; } .text-button { border:0; background:transparent; color:var(--accent); padding:3px 5px; }
.signed-out { display:grid; min-height:calc(100vh - 72px); min-height:calc(100dvh - 72px); place-items:center; padding:28px; } .welcome-panel { width:min(620px,100%); padding:44px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:var(--shadow); } .eyebrow { color:var(--accent); font-size:11px; font-weight:800; letter-spacing:1.4px; } h1 { margin:12px 0 10px; font-size:clamp(28px,4vw,46px); line-height:1.12; } .welcome-panel p { color:var(--muted); max-width:500px; } .inline-message { min-height:22px; margin:16px 0 0; }
.social-layout { width:min(1280px,calc(100% - 32px)); height:calc(100vh - 104px); height:calc(100dvh - 104px); min-height:min(620px,calc(100vh - 104px)); min-height:min(620px,calc(100dvh - 104px)); margin:16px auto; display:grid; grid-template-columns:330px 1fr; gap:16px; } .sidebar,.conversation { border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); overflow:hidden; } .sidebar { display:flex; flex-direction:column; padding:18px; } .profile-card { display:flex; align-items:center; gap:11px; padding:8px 4px 18px; border-bottom:1px solid var(--line); } .profile-copy strong,.profile-copy span,.profile-copy small { display:block; } .profile-copy span { color:var(--muted); font-size:12px; } .profile-copy small { margin-top:3px; color:var(--muted); overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px; } .avatar { flex:0 0 42px; width:42px;height:42px; display:grid;place-items:center; overflow:hidden; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-weight:800; } .avatar img { width:100%;height:100%;object-fit:cover; } .avatar-large { width:48px;height:48px; } .sidebar-heading { display:flex; justify-content:space-between; align-items:center; padding:18px 4px 9px; font-weight:800; } .sidebar-tabs { display:flex; gap:6px; margin-bottom:10px; } .sidebar-tab { flex:1; padding:8px; color:var(--muted); } .sidebar-tab.active { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); font-weight:700; } .count-badge { display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:5px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px; }
.contact-list,.request-list { flex:1; min-height:0; overflow:auto; padding:2px 0 8px; } .contact-item,.request-item { width:100%; display:flex; align-items:center; gap:10px; padding:10px 8px; border:0; border-radius:10px; background:transparent; color:var(--text); text-align:left; } .contact-item:hover,.contact-item.active,.request-item:hover { background:var(--accent-soft); } .contact-copy { min-width:0; flex:1; } .contact-copy strong,.contact-copy span { display:block; overflow:hidden;text-overflow:ellipsis;white-space:nowrap; } .contact-copy span { color:var(--muted); font-size:12px; } .status-dot { display:inline-block;width:7px;height:7px;border-radius:50%;background:#98a69e;margin-right:5px;vertical-align:middle; } .status-dot.online { background:#24a864; } .request-item { align-items:flex-start; } .request-actions { display:flex; gap:5px; margin-top:7px; } .request-actions button { padding:5px 8px;border-radius:7px;border:1px solid var(--line);background:var(--surface);color:var(--text); } .request-actions .accept { border-color:var(--accent);color:#fff;background:var(--accent); } .add-friend { display:flex; gap:7px; padding-top:12px; border-top:1px solid var(--line); } input { min-width:0; width:100%; padding:10px 11px; border:1px solid var(--line); border-radius:9px; outline:none; background:var(--surface-soft); color:var(--text); } input:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent); }
.conversation { position:relative; overflow-x:hidden; } .empty-conversation { display:grid;place-items:center;align-content:center;height:100%;padding:30px;text-align:center;color:var(--muted); } .empty-icon { display:grid;place-items:center;width:56px;height:56px;margin-bottom:12px;border-radius:16px;background:var(--accent-soft);color:var(--accent);font-size:23px; } .empty-conversation h2 { margin:0;color:var(--text);font-size:20px; } .active-conversation { display:flex;flex-direction:column;height:100%; } .conversation-header { display:flex;align-items:center;gap:11px;padding:18px 22px;border-bottom:1px solid var(--line); } .conversation-header h2 { margin:0;font-size:20px; min-width:0; overflow:hidden;text-overflow:ellipsis;white-space:nowrap; } .conversation-header p { margin:2px 0 0;color:var(--muted);font-size:12px; } .message-list { flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; padding:22px; display:flex;flex-direction:column;gap:10px; } .message { max-width:min(72%,560px); padding:9px 12px; border:1px solid var(--line); border-radius:13px; background:var(--surface-soft); } .message.mine { align-self:flex-end; border-color:color-mix(in srgb,var(--accent) 48%,var(--line)); background:var(--accent-soft); } .message p { margin:0; white-space:pre-wrap;overflow-wrap:anywhere; } .message time { display:block;margin-top:4px;color:var(--muted);font-size:11px; } .composer { display:flex;gap:9px;padding:15px;border-top:1px solid var(--line); overflow:hidden; } .composer .primary-button { min-width:72px; flex:0 0 auto; }
.toast { position:fixed; right:24px; bottom:24px; max-width:min(360px,calc(100% - 48px)); padding:11px 14px; border:1px solid var(--accent); border-radius:10px; background:var(--surface); color:var(--text); box-shadow:var(--shadow); transform:translateY(16px);opacity:0;pointer-events:none;transition:.2s ease; } .toast.show { transform:none;opacity:1; } .toast.error { border-color:#d85864; } [hidden] { display:none!important; }
@media (max-width:780px) { .topbar { height:auto;min-height:68px;padding:12px 16px;align-items:flex-start; } .top-actions { flex-wrap:wrap;justify-content:flex-end; } .connection-state { display:none; } .social-layout { width:calc(100% - 20px); height:auto;min-height:0;grid-template-columns:1fr; } .sidebar { min-height:390px; } .conversation { min-height:620px; } .welcome-panel { padding:30px 24px; } }

/* Social workspace polish: denser hierarchy, clearer selection, and calmer chat rhythm. */
.social-layout { width:min(1320px,calc(100% - 32px)); grid-template-columns:306px 1fr; gap:14px; }
.sidebar,.conversation { border-radius:14px; box-shadow:0 14px 34px rgba(24,49,38,.06); }
.sidebar { padding:16px; }
.profile-card { gap:12px; padding:4px 4px 16px; }
.profile-copy { min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; }
.profile-copy strong { display:block; flex:0 1 auto; font-size:14px; overflow-wrap:anywhere; }
.profile-copy span { display:block; flex:0 0 auto; color:var(--muted); font-size:12px; font-weight:600; }
.avatar-large { width:46px; height:46px; flex-basis:46px; }
.sidebar-heading { padding:15px 4px 8px; }
.sidebar-tabs { gap:7px; margin-bottom:8px; }
.sidebar-tab { padding:8px 10px; }
.contact-list,.request-list { padding:3px 0 8px; }
.contact-item,.request-item { gap:11px; padding:9px 10px; border:1px solid transparent; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.contact-item:hover { transform:translateX(1px); }
.contact-item.active { border-color:color-mix(in srgb,var(--accent) 24%,transparent); }
.contact-copy strong { font-size:13.5px; }
.contact-copy strong > span { display:inline; margin-left:5px; color:var(--muted); font-size:11.5px; font-weight:500; }
.contact-copy > span { margin-top:2px; }
.add-friend { gap:8px; padding-top:11px; }
.add-friend .secondary-button { flex:0 0 auto; min-width:88px; }
.conversation-header { gap:12px; padding:16px 20px; }
.conversation-header h2 { font-size:19px; letter-spacing:.1px; }
.conversation-header p { margin-top:3px; }
.message-list { padding:18px 20px; gap:7px; }
.message { max-width:min(68%,560px); padding:9px 12px 8px; border-radius:12px; }
.message p { line-height:1.48; }
.message time { margin-top:3px; font-size:10.5px; }
.composer { gap:8px; padding:12px 14px; }
.composer input { min-height:40px; padding:9px 12px; }
.composer .primary-button { min-width:76px; padding:9px 15px; }
@media (max-width:780px) { .social-layout { width:calc(100% - 20px); grid-template-columns:1fr; } }

/* Global solid-button text rule: white on the deep accent, near-black on the light accent. */
:root { --accent-solid-text:#ffffff; --danger-solid-text:#ffe3e6; }
:root[data-theme="dark"] { --accent-solid-text:#08170e; --danger-solid-text:#fff0f2; }
.primary-button { color:var(--accent-solid-text); }
.request-actions .accept { color:var(--accent-solid-text); }

/* Keep the bubble sized to its content and place the timestamp outside it. */
.message { display:flex; flex-direction:column; width:fit-content; max-width:min(68%,560px); max-width:100%; padding:0; border:0; background:transparent; }
.message.mine { align-self:flex-end; padding:0; border:0; background:transparent; }
.message:not(.mine) { align-self:flex-start; padding:0; border:0; background:transparent; }
.message-bubble { width:fit-content; max-width:100%; padding:9px 12px 8px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.message.mine .message-bubble { border-color:color-mix(in srgb,var(--accent) 48%,var(--line)); background:var(--accent-soft); }
.message p { margin:0; line-height:1.48; white-space:pre-wrap; overflow-wrap:anywhere; }
.message time { display:block; margin:3px 4px 0; color:var(--muted); font-size:10.5px; line-height:1.2; }
.message.mine time { align-self:flex-end; }
.message.voice-record .message-bubble { display:flex; align-items:center; gap:7px; padding:7px 12px; }

.mobile-back-button { display:none; width:34px; height:34px; flex:0 0 34px; place-items:center; padding:0; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); color:var(--text); font-size:22px; line-height:1; }
.mobile-back-button:hover { border-color:var(--accent); color:var(--accent); }

@media (max-width:780px) {
    body { min-height:100dvh; background:var(--bg); }
    .topbar { height:60px; min-height:60px; padding:0 14px; gap:12px; }
    .brand { gap:8px; }
    .brand strong { font-size:15px; }
    .brand small { display:none; }
    .top-actions { gap:7px; }
    .top-actions .primary-button { padding:8px 11px; font-size:12px; }
    .social-layout { width:100%; height:calc(100dvh - 60px); min-height:0; margin:0; display:block; }
    .sidebar,.conversation { width:100%; height:100%; min-height:0; border:0; border-radius:0; box-shadow:none; }
    .sidebar { padding:12px; }
    .profile-card { padding:4px 3px 14px; }
    .sidebar-heading { padding:14px 3px 8px; }
    .contact-list,.request-list { padding-bottom:6px; }
    .contact-item,.request-item { padding:11px 10px; border-radius:11px; }
    .add-friend { padding:10px 0 max(10px, env(safe-area-inset-bottom)); }
    .conversation { display:none; }
    #signedIn.mobile-chat-open .sidebar { display:none; }
    #signedIn.mobile-chat-open .conversation { display:block; }
    .mobile-back-button { display:grid; }
    .conversation-header { min-height:62px; padding:10px 12px; gap:9px; }
    .conversation-header h2 { font-size:17px; }
    .conversation-header p { font-size:11.5px; }
    .message-list { padding:12px 12px 14px; gap:8px; }
    .message { max-width:84%; max-width:100%; }
    .composer { gap:7px; padding:9px 10px max(9px, env(safe-area-inset-bottom)); }
    .composer input { min-height:42px; }
    .composer .primary-button { min-width:64px; padding:9px 12px; }
    .social-layout { overflow-x:hidden; overflow-x:clip; }
}

/* Unread badge + friend remove action (web social). */
.contact-wrap { display:flex; align-items:center; gap:4px; border-radius:10px; }
.contact-wrap:hover { background:var(--accent-soft); }
.contact-wrap .contact-item { flex:1; min-width:0; }
.contact-wrap:hover .contact-item, .contact-wrap .contact-item.active { background:transparent; }
.contact-wrap .contact-item:hover { transform:none; }
.unread-badge { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:6px; padding:0 4px; border-radius:9px; background:var(--accent); color:#fff; font-size:11px; font-weight:700; }
.friend-remove { flex:0 0 auto; width:26px; height:26px; border:0; border-radius:7px; background:transparent; color:var(--muted); font-size:15px; line-height:1; opacity:0; transition:.15s ease; }
.contact-wrap:hover .friend-remove { opacity:1; }
.friend-remove:hover { background:var(--danger-solid-text, #ffe3e6); color:#c23a48; }
@media (hover:none) { .friend-remove { opacity:1; } }

/* Voice call UI (web social): header button, in-chat call card. */
.voice-call-button { flex:0 0 auto; width:36px; height:36px; margin-left:auto; display:grid; place-items:center; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); color:var(--text); cursor:pointer; transition:.18s ease; }
.voice-call-button:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.voice-call-card { display:flex; flex-direction:column; gap:8px; padding:9px 14px; border-bottom:1px solid var(--line); background:var(--accent-soft); }
.voice-call-info { display:flex; align-items:center; gap:8px; min-width:0; font-size:13px; color:var(--text); }
.voice-call-dot { flex:0 0 auto; width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent); }
.voice-call-dot.off { background:var(--muted); box-shadow:none; }
.voice-call-latency { color:var(--accent); font-size:12px; }
.voice-call-controls { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.voice-device-row { display:flex; gap:10px; flex-wrap:wrap; }
.voice-device-field { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.voice-device-select { appearance:none; -webkit-appearance:none; height:28px; padding:0 26px 0 9px; border:1px solid var(--line); border-radius:8px; background-color:var(--surface); color:var(--text); font-size:12px; cursor:pointer; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 13px) 55%,calc(100% - 8px) 55%; background-size:5px 5px; background-repeat:no-repeat; }
.voice-device-select:hover { border-color:var(--accent); }
.voice-device-select:disabled { opacity:.55; cursor:not-allowed; }
.voice-call-btn { height:30px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font-size:12.5px; cursor:pointer; transition:.16s ease; }
.voice-call-btn:hover { border-color:var(--accent); }
.voice-call-btn.accept { border-color:var(--accent); background:var(--accent); color:var(--accent-solid-text,#ffffff); font-weight:700; }
.voice-call-btn.reject { border-color:color-mix(in srgb,var(--danger-solid-text,#ffe3e6) 70%,var(--line)); background:var(--danger-solid-text,#ffe3e6); color:#c23a48; font-weight:700; }
.voice-call-btn.control { padding:0 10px; font-size:12.5px; }
.voice-call-btn.end { border-color:color-mix(in srgb,var(--danger-solid-text,#ffe3e6) 70%,var(--line)); background:var(--danger-solid-text,#ffe3e6); color:#c23a48; font-weight:700; }
@media (max-width:780px) { .voice-call-card { padding:8px 10px; gap:8px; } .voice-call-controls { gap:5px; } .voice-call-btn { height:28px; padding:0 9px; font-size:12px; } }

/* Friend removed (not-friend) notice + list warning. */
.friend-warning { color:var(--muted); font-size:12px; font-style:normal; }
.contact-item .friend-warning { color:#c23a48; }
.chat-blocked-notice { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--danger-solid-text,#ffe3e6) 55%,var(--surface)); font-size:13px; color:var(--text); }
.chat-blocked-notice .voice-call-btn { flex:0 0 auto; }

/* Voice feature disabled (admin switch off). */
.voice-call-button.disabled, .voice-call-button:disabled { opacity:.45; cursor:not-allowed; color:var(--muted); border-color:var(--line); background:var(--surface-soft); }
.voice-call-button.disabled:hover, .voice-call-button:disabled:hover { color:var(--muted); border-color:var(--line); background:var(--surface-soft); }

/* Terms consent modal (web social). */
.modal-backdrop { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:20px; background:rgba(10,14,20,.55); backdrop-filter:blur(4px); }
.modal-card { width:min(460px,100%); padding:26px 26px 22px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
.modal-card h2 { margin:0 0 12px; font-size:18px; }
.modal-card p { margin:8px 0; font-size:14px; line-height:1.65; color:var(--text-secondary, var(--muted)); }
.modal-card p.muted { font-size:12.5px; }
.modal-card a { color:var(--accent); text-decoration:none; }
.modal-card a:hover { text-decoration:underline; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }

/* Account settings modal */
.account-settings-card { width:min(520px,100%); max-height:min(760px,calc(100vh - 80px)); overflow-y:auto; padding:28px 28px 24px; }
.account-settings-card h2 { font-size:20px; margin-bottom:4px; letter-spacing:.2px; }
.account-hero { display:flex; align-items:center; gap:16px; margin-top:16px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft); }
.avatar-xl { width:64px; height:64px; flex:0 0 64px; font-size:24px; }
.account-hero-copy { flex:1; min-width:0; }
.account-hero-copy strong { display:flex; align-items:center; gap:8px; min-width:0; font-size:17px; font-weight:700; color:var(--text); }
#settingsHandle { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mosaic-tag { flex:0 0 auto; font-size:12px; font-weight:700; color:var(--accent); background:var(--accent-soft); border-radius:20px; padding:3px 10px; white-space:nowrap; }
.account-hero-email { display:block; margin-top:5px; font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.avatar-upload-group { flex:0 0 auto; }
.avatar-upload-group .secondary-button { padding:9px 15px; white-space:nowrap; }
.hero-hint { margin:10px 2px 0; }
.settings-section { margin-top:24px; }
.settings-section h3 { margin:0 0 4px; font-size:12px; font-weight:700; color:var(--muted); letter-spacing:1px; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 2px; }
.setting-row + .setting-row { border-top:1px solid var(--line); }
.setting-label { flex:1; min-width:0; }
.setting-label strong { display:block; font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; }
.setting-hint { display:block; font-size:12.5px; color:var(--muted); margin:3px 0 0; line-height:1.5; }
.setting-actions { flex:0 0 auto; display:flex; align-items:center; }
.setting-separator { color:var(--muted); margin:0 6px; }
.profile-settings-btn { margin-left:auto; width:36px; height:36px; padding:0; display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.profile-settings-btn svg { display:block; width:18px; height:18px; flex:0 0 auto; }
.profile-card { position:relative; }

/* Toggle switch */
.toggle-switch { position:relative; display:inline-block; width:46px; height:26px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; inset:0; cursor:pointer; border-radius:26px; background:var(--muted); transition:.3s; }
.toggle-slider::before { content:""; position:absolute; height:20px; width:20px; left:3px; bottom:3px; border-radius:50%; background:#fff; transition:.3s; }
.toggle-switch input:checked + .toggle-slider { background:var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }

/* ---------- 版本分享卡片与详情（使用站点主题变量，明暗主题自适应） ---------- */
.share-card { display:flex; gap:10px; align-items:flex-start; width:280px; padding:10px; margin:0; border:1px solid var(--line); border-radius:10px; background:var(--surface); text-align:left; cursor:pointer; font:inherit; color:inherit; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.share-card:hover { transform:translateY(-1px); border-color:var(--accent); box-shadow:var(--shadow); }
.share-card-badge { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:700; flex-shrink:0; }
.share-card-body { display:flex; flex-direction:column; gap:3px; min-width:0; }
.share-card-title { font-size:14px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.share-card-tag { font-size:11.5px; color:var(--accent); }
.share-card-note { font-size:12.5px; color:var(--muted); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.share-card-meta { font-size:12.5px; color:var(--muted); }
.share-card-hint { font-size:11.5px; color:var(--accent); margin-top:2px; }
.message.mine .share-card { border-color:color-mix(in srgb, var(--accent) 42%, var(--line)); }
/* 鼠标点击分享卡后焦点留在按钮上，弹窗关闭会露出浏览器默认黑框；键盘 Tab 导航仍保留焦点环（品牌色）。 */
.share-card:focus:not(:focus-visible) { outline:none; }
.share-card:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.share-detail-card { width:min(720px, calc(100vw - 48px)); max-height:min(640px, calc(100vh - 96px)); display:flex; flex-direction:column; }
.share-detail-card h2 { color:var(--text); }
.share-detail-body { overflow-y:auto; min-height:120px; margin-top:8px; padding-right:4px; }
.share-detail-body h4 { margin:14px 0 6px; font-size:13.5px; color:var(--muted); }
.share-detail-row { display:grid; grid-template-columns:minmax(0,1fr) auto 92px 74px; gap:10px; align-items:center; padding:5px 0; font-size:13.5px; color:var(--text); border-bottom:1px dashed color-mix(in srgb, var(--muted) 32%, transparent); }
.share-detail-row:last-child { border-bottom:none; }
.share-detail-row .share-detail-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.share-detail-row.unmatched .share-detail-name { color:#b45309; }
.share-detail-row .share-detail-version { color:var(--muted); font-size:12.5px; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.share-detail-row .share-detail-source { color:var(--accent); font-size:12.5px; text-align:right; }
.share-detail-row.unmatched .share-detail-source { color:var(--muted); }
.share-detail-row .share-detail-size { color:var(--muted); font-size:12.5px; text-align:right; }
:root[data-theme="dark"] .share-detail-row.unmatched .share-detail-name,
:root[data-theme="dark"] .share-detail-row.unmatched .share-detail-source { color:#f0b429; }
.share-detail-warning { margin-top:10px; padding:9px 12px; border-radius:8px; background:color-mix(in srgb, #e6a23c 16%, transparent); border:1px solid color-mix(in srgb, #e6a23c 45%, transparent); font-size:13px; color:var(--text); }

/* 统一品牌图标（与 mcs.cl271.top 一致的明暗双图 app-icon） */
.brand-icon.app-icon-set { display:block; width:34px; height:34px; flex:0 0 auto; border-radius:8px; overflow:hidden; }
.app-icon-set img { display:block; width:100%; height:100%; }
:root[data-theme="light"] .app-icon-dark,
:root[data-theme="dark"] .app-icon-light { display:none; }

/* Avatar crop modal（取景画布固定深色，明暗主题下都与照片编辑器一致） */
.avatar-crop-card { width:min(420px,100%); }
.avatar-crop-card h2 { margin-bottom:6px; }
.avatar-crop-stage { position:relative; width:100%; aspect-ratio:1/1; margin-top:14px; border-radius:12px; overflow:hidden; background:#0c1118; touch-action:none; cursor:grab; }
.avatar-crop-stage.dragging { cursor:grabbing; }
.avatar-crop-stage canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.avatar-crop-zoom { width:100%; margin:16px 0 0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; accent-color:var(--accent); cursor:pointer; }
.avatar-crop-zoom:focus { border:0; box-shadow:none; }
