.member-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    background: var(--color-card);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.member-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #60a5fa 55%, transparent);
}
.member-panel__body { padding: 20px; }
.member-panel__eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.member-panel__label {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}
.member-panel__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 11px;
}
.member-panel__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6b7280;
}
.member-panel__status-dot.is-ready { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1); }
.member-panel__title { color: #fff; font-size: 18px; font-weight: 800; line-height: 1.3; }
.member-panel__copy { margin-top: 7px; color: #9ca3af; font-size: 13px; line-height: 1.65; }
.member-panel__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.member-panel__google:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.member-panel__google:disabled { cursor: not-allowed; opacity: 0.48; }
.member-panel button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}
.member-profile__top { display: flex; align-items: center; gap: 12px; }
.member-profile__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--color-primary) 65%, white 10%);
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}
.member-profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-profile__identity { min-width: 0; }
.member-profile__name { overflow: hidden; color: #fff; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.member-profile__email { overflow: hidden; margin-top: 2px; color: #9ca3af; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.member-profile__stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 17px;
}
.member-profile__stat {
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--color-bg) 76%, transparent);
}
.member-profile__stat-label { color: #6b7280; font-size: 10px; font-weight: 700; }
.member-profile__stat-value { overflow: hidden; margin-top: 4px; color: #e5e7eb; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.member-profile__points { color: #93c5fd; }
.member-profile__toolbox {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}
.member-profile__toolbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.member-profile__toolbox-head h3 { color: #e5e7eb; font-size: 12px; font-weight: 900; }
.member-profile__toolbox-head span { color: #93c5fd; font-size: 10px; font-weight: 800; }
.member-profile__favorites { display: grid; gap: 5px; margin-top: 9px; }
.member-profile__favorite-tool {
    overflow: hidden;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-bg) 80%, transparent);
    color: #d1d5db;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-profile__favorite-tool:hover { border-color: var(--color-primary); color: #fff; }
.member-profile__favorites-empty,
.member-profile__favorites-more { color: #6b7280; font-size: 10px; line-height: 1.5; }
.member-profile__favorites-open {
    width: 100%;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}
.member-profile__favorites-open:hover { color: #fff; }
.member-profile__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.member-profile__joined { color: #6b7280; font-size: 10px; }
.member-profile__logout { color: #9ca3af; font-size: 11px; font-weight: 700; transition: color 160ms ease; }
.member-profile__logout:hover { color: #fff; }
.member-panel__alert {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.08);
    color: #fcd34d;
    font-size: 11px;
    line-height: 1.55;
}
.member-panel.is-entering { animation: memberPanelEnter 260ms ease-out both; }
@keyframes memberPanelEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .member-panel.is-entering { animation: none; }
    .member-panel__google { transition: none; }
}
