/* 社媒工具：侧栏入口卡 + 两个弹窗。 */

.social-tools{margin:12px 12px 0;display:flex;flex-direction:column;gap:7px}
.social-tools-title{margin:0 2px 1px;font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#8ba396;font-weight:700}

.social-card{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:1px solid #dbe7e0;border-radius:8px;background:white;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.social-card:hover{border-color:#9ecdb8;box-shadow:0 2px 8px #1479631f;transform:translateY(-1px)}
.social-card:focus-visible{outline:2px solid #7fc4a6;outline-offset:1px}
.social-icon{flex:0 0 30px;height:30px;display:grid;place-items:center;border-radius:7px;background:linear-gradient(135deg,#eaf7f0,#d8efe3);color:#0f7355}
.social-icon svg{width:16px;height:16px}
.social-card#toolTotp .social-icon{background:linear-gradient(135deg,#eef1fb,#e0e6f7);color:#3d5aa8}
.social-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.social-copy strong{font-size:12px;color:#1c3b2e;line-height:1.3}
.social-copy small{font-size:10px;color:#8b9c93;line-height:1.4}
.social-card > svg{width:13px;height:13px;color:#a7b7ae;flex-shrink:0}

/* 弹窗 */
#socialDialog{max-width:min(560px,94vw);width:560px;padding:0;border:0;border-radius:12px;box-shadow:0 24px 64px #0d2b1e33}
#socialDialog::backdrop{background:#0d2b1e66;backdrop-filter:blur(2px)}
#socialDialog .dialog-heading{margin:0;padding:20px 22px 14px;border-bottom:1px solid var(--border)}
#socialDialog h2{font-size:15px;margin:4px 0 0}
.social-form{padding:16px 22px 4px}
.social-form[hidden]{display:none!important}
.social-form .field-label{display:block;font-size:12px;color:#5d7268;margin-bottom:7px}
.social-form textarea,.social-form input{width:100%;border:1px solid var(--border);border-radius:7px;padding:9px 11px;font-size:12.5px;font-family:Consolas,"Microsoft YaHei",monospace;background:white;color:#23302a}
.social-form textarea{resize:vertical;line-height:1.6}
.social-form textarea:focus,.social-form input:focus{outline:2px solid #b7d7c5;border-color:var(--green)}
.social-hint{margin:9px 0 12px;font-size:11px;line-height:1.75;color:#8a9c92}
.social-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.social-actions .button{min-height:34px;font-size:12px}
.social-actions .button[hidden]{display:none!important}
.social-progress{margin:10px 0 4px;font-size:11px;color:#6f8479}

.uid-groups{display:flex;flex-direction:column;gap:8px;margin:8px 0 4px}
.uid-group{border:1px solid var(--border);border-radius:7px;padding:8px 10px;background:#fbfdfc}
.uid-group[data-state="available"]{border-color:#bfe3cf;background:#f4fbf7}
.uid-group[data-state="failed"]{border-color:#f0d6d6;background:#fdf7f7}
.uid-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:#3c534a;font-weight:600}
.uid-group-head .link-button{margin:0;font-size:11px}
.uid-group pre{margin:6px 0 0;max-height:96px;overflow:auto;font-family:Consolas,monospace;font-size:11px;line-height:1.55;color:#4a5a52;white-space:pre-wrap;word-break:break-all}

.totp-panel{margin:14px 0 4px;padding:14px;border:1px solid #bfe3cf;border-radius:9px;background:linear-gradient(135deg,#f2fbf6,#e4f5ea);text-align:center}
.totp-panel[hidden]{display:none!important}
.totp-code{margin:0;font-family:Consolas,"Courier New",monospace;font-size:30px;font-weight:700;letter-spacing:6px;color:#0c5b43;user-select:all}
.totp-remain{margin:6px 0 10px;font-size:11px;color:#6f8f80}
.totp-qr{display:block;margin:14px auto 6px;width:180px;height:180px;image-rendering:pixelated;border-radius:6px;background:white;padding:4px}
.totp-qr[hidden]{display:none!important}
.social-message{margin:0;padding:0 22px 16px;font-size:11.5px;line-height:1.7;color:#5f7a6c;min-height:16px}
.social-message[data-tone="error"]{color:#b4483f}

@media(max-width:800px){
  .social-tools{margin:10px 12px 0}
  #socialDialog .dialog-heading{padding:16px 16px 12px}
  .social-form{padding:14px 16px 2px}
  .social-message{padding:0 16px 14px}
  .totp-code{font-size:26px;letter-spacing:4px}
}
