/* 分享给好友弹层（PlainView 内的好友多选列表）——
 * 由 static/js/util/sharefriend.js 渲染，与 addfriend.css 同层级、同口径。
 * PlainView 负责标题栏和 × 关闭；本样式只负责列表卡片本身。 */
.share-friend-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    margin: 12px auto 0;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    flex: 1;
    min-height: 0;               /* 让 sf-list 在 flex 容器里正确滚动 */
}
.sf-hint {
    color: var(--text-3, #718096);
    font-size: 0.84rem;
    margin-bottom: 8px;
}
.sf-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
}
.sf-loading,
.sf-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-3, #718096);
    font-size: 0.9rem;
}
.sf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.sf-row:not(:last-child) {
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.sf-row:active {
    background: var(--bg-hover, #f7fafc);
}
.sf-check {
    width: 20px;
    height: 20px;
    accent-color: var(--primary, #667eea);
    flex-shrink: 0;
    cursor: pointer;
}
.sf-avatar {
    display: inline-flex;
    flex-shrink: 0;
}
.sf-avatar .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}
.sf-name {
    font-size: 0.95rem;
    color: var(--text-1, #2d3748);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sf-err {
    color: #e53e3e;
    font-size: 0.84rem;
    line-height: 1.4;
    min-height: 18px;
    margin-top: 6px;
}
.sf-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.sf-cancel,
.sf-submit {
    flex: 1;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    font-family: inherit;
}
.sf-cancel {
    background: #edf2f7;
    color: var(--text-2, #4a5568);
}
.sf-cancel:active { background: #e2e8f0; }
.sf-submit {
    background: var(--primary, #667eea);
    color: #fff;
}
.sf-submit:active { background: #5a67d8; }
.sf-cancel:disabled,
.sf-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
