html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#app {
    min-height: 100%;
}

.member-page {
    display: block;
}

.member-shell {
    padding: 12px 0;
}

.member-topbar {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.8);
}

.member-topbar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-titleStack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.member-title {
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-subtitle {
    opacity: .78;
}

.member-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
}

.member-badgeWrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.member-topbar-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

/* Optional progress bar under topbar content */
.member-topbar-progress {
    margin-top: 10px;
    opacity: .9;
}

.member-grid {
    margin-top: 4px;
}

.member-card,
.member-formCard {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
}

.member-card {
    padding: 16px;
}

.member-cardHead {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.member-cardBody {
    margin-top: 6px;
}

.member-muted {
    opacity: .72;
}

/* KPI blocks */
.member-kpi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.member-kpiItem {
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 14px;
    padding: 10px 12px;
}

.member-kpiLabel {
    opacity: .72;
    font-size: 12px;
}

.member-kpiValue {
    font-weight: 800;
    margin-top: 2px;
}

.member-chip {
    border-radius: 999px;
}

.member-sectionCard {
    padding: 0;
    overflow: hidden;
}

.member-sectionHead {
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.member-sectionHeadInner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.member-sectionIconWrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.65);
}

.member-sectionIcon {
    opacity: .9;
}

.member-sectionText {
    min-width: 0;
}

.member-sectionTitle {
    line-height: 1.15;
    font-weight: 800;
}

.member-sectionHint {
    opacity: .78;
    font-size: 12px;
    margin-top: 2px;
}

.member-sectionBody {
    padding: 16px;
}

/* Pastel header variants */
.member-sectionHead--org {
    background: linear-gradient(180deg, rgba(120,160,255,.18), rgba(120,160,255,.08));
}

.member-sectionHead--location {
    background: linear-gradient(180deg, rgba(110,220,180,.18), rgba(110,220,180,.08));
}

.member-sectionHead--contact {
    background: linear-gradient(180deg, rgba(255,190,120,.18), rgba(255,190,120,.08));
}

.member-sectionHead--additional {
    background: linear-gradient(180deg, rgba(200,140,255,.18), rgba(200,140,255,.08));
}

.member-subSection {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.015);
}

.member-subSectionIcon {
    margin-top: 2px;
    opacity: .8;
}

.member-subSectionText {
    min-width: 0;
}

.member-subSectionTitle {
    font-weight: 700;
}

.member-subSectionHint {
    opacity: .72;
}

.member-helpText {
    margin-top: 6px;
    font-size: 12px;
    opacity: .7;
}

/* Mini panels */
.member-miniPanel {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(0,0,0,.015);
}

.member-miniPanel--channels,
.member-photoPanel {
    background: rgba(255,255,255,.65);
}

.member-miniPanelHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.member-miniTitle {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.member-miniIcon {
    margin-top: 2px;
    opacity: .85;
}

.member-miniText {
    line-height: 1.15;
}

.member-miniHint {
    opacity: .72;
}

/* Photo panel layout */
.member-photoRow {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.member-photoPicker {
    min-width: 0;
}

.member-photoPreview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.member-channelGrid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.member-channelPill {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    background: rgba(0,0,0,.01);
    transition: border-color .15s ease, background .15s ease;
}

.member-channelPillIcon {
    opacity: .82;
}

.member-channelName {
    font-weight: 700;
    line-height: 1.1;
    transition: color .15s ease;
}

.member-channelHint {
    opacity: .72;
    transition: color .15s ease;
}

.member-channelSwitch {
    transform: scale(.92);
    transform-origin: right center;
}

/* ON state (subtle luxe success tone) */
.member-channelPill.is-on {
    border-color: rgba(46, 125, 50, .25);
    background: rgba(46, 125, 50, .04);
}

    .member-channelPill.is-on .member-channelName {
        color: #2e7d32;
    }

    .member-channelPill.is-on .member-channelHint {
        color: rgba(46, 125, 50, .85);
    }

.member-actionsBar {
    position: sticky;
    bottom: 0;
    z-index: 6;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 12px 14px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 -4px 12px rgba(0,0,0,.04);
}

.member-actionsLeft,
.member-actionsRight {
    display: flex;
    gap: 10px;
    align-items: center;
}

.member-alert {
    margin: 0 0 12px 0;
    border-radius: 14px;
}

@media (max-width: 960px) {
    .member-topbar {
        position: relative;
        top: auto;
    }

    .member-topbar-actions {
        justify-content: flex-start;
    }

    .member-actionsBar {
        position: relative;
        bottom: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .member-actionsLeft,
    .member-actionsRight {
        justify-content: flex-start;
    }

    .member-photoRow {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .member-channelGrid {
        grid-template-columns: 1fr;
    }
}

