/* 0.33.13 — viewport-native mobile layout, profile sheets and account access. */
:root {
    --ccde-phone-gutter: 10px;
    --ccde-visual-viewport-height: 100dvh;
    --ccde-visual-viewport-width: 100vw;
    --ccde-visual-viewport-top: 0px;
    --ccde-visual-viewport-left: 0px;
}

/* 0.33.58 — member-owned account deletion confirmation. */
.ccde-profile-sheet--account-delete,.ccde-profile-sheet--account-delete *{box-sizing:border-box;min-width:0}
.ccde-profile-sheet--account-delete .ccde-profile-sheet__body{overflow-x:hidden}
.ccde-account-deletion{display:grid;gap:16px;width:100%;max-width:560px;margin:0 auto;color:#f8f3f5}
.ccde-account-deletion__mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(251,113,133,.42);border-radius:16px;background:rgba(190,24,93,.15);color:#fda4af;font-size:24px;font-weight:900}
.ccde-account-deletion>p{margin:0;color:#d5cbd0;font-size:15px;line-height:1.6}
.ccde-account-deletion ul{display:grid;gap:10px;margin:0;padding:16px 16px 16px 34px;border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(255,255,255,.035);color:#a99fa4;font-size:13px;line-height:1.55}
.ccde-account-deletion form{display:grid;gap:13px}
.ccde-account-deletion .ccde-hub-field{margin:0}
.ccde-account-deletion .ccde-hub-field input{width:100%;max-width:100%;min-height:52px;background:#171416!important;color:#fff!important;border-color:rgba(255,255,255,.13)!important;font-size:16px!important}
.ccde-account-deletion .ccde-hub-field input:focus{border-color:#fb7185!important;box-shadow:0 0 0 3px rgba(251,113,133,.13)!important}
.ccde-account-deletion .ccde-hub-field input[aria-invalid="true"]{border-color:#fb7185!important}
.ccde-account-deletion [data-account-delete-error]{min-height:20px;color:#fda4af!important}
.ccde-account-deletion__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ccde-account-deletion__actions button{min-height:48px;padding:10px 14px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:#1b181a;color:#fff;font:inherit;font-weight:850;cursor:pointer}
.ccde-account-deletion__actions button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ccde-account-deletion__actions button.is-danger{border-color:rgba(251,113,133,.5);background:rgba(159,18,57,.18);color:#fecdd3}
.ccde-account-deletion__actions button.is-danger:hover,.ccde-account-deletion__actions button.is-danger:active{background:#9f1239;color:#fff}
.ccde-account-deletion__actions button:disabled{opacity:.58;cursor:wait}
.ccde-account-deletion__status{min-height:22px;margin:0;color:#d8b4fe;font-size:13px;line-height:1.45}
.ccde-account-deletion__status.is-error{color:#fda4af}
.ccde-account-deletion-complete{display:grid;justify-items:center;gap:12px;max-width:520px;margin:8vh auto 0;text-align:center;color:#fff}
.ccde-account-deletion-complete>div{display:grid;place-items:center;width:62px;height:62px;border-radius:21px;background:linear-gradient(135deg,#8b5cf6,#db2777);font-size:30px;font-weight:900}
.ccde-account-deletion-complete h3{margin:5px 0 0;font-size:27px}
.ccde-account-deletion-complete p{margin:0;color:#b8adb3;line-height:1.6}
.ccde-account-deletion-complete a,.ccde-account-deletion-complete button{display:grid;place-items:center;width:100%;min-height:50px;margin-top:5px;border:0;border-radius:15px;background:linear-gradient(135deg,#e11d48,#a21caf);color:#fff;text-decoration:none;font:850 16px/1 Inter,system-ui,sans-serif;cursor:pointer}
@media(max-width:520px){.ccde-account-deletion__actions{grid-template-columns:1fr}.ccde-account-deletion__actions [data-account-delete-keep]{order:-1}}

body.ccde-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body > .ccde-sheet-layer {
    position: fixed !important;
    z-index: 2147483600 !important;
    top: var(--ccde-visual-viewport-top, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--ccde-visual-viewport-left, 0px) !important;
    width: var(--ccde-visual-viewport-width, 100vw) !important;
    height: var(--ccde-visual-viewport-height, 100dvh) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    contain: layout paint;
    isolation: isolate;
}

body > .ccde-sheet-layer .ccde-sheet-backdrop {
    position: absolute !important;
    inset: 0 !important;
    touch-action: none;
}

body > .ccde-sheet-layer .ccde-profile-sheet {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    max-height: calc(var(--ccde-visual-viewport-height, 100dvh) - 8px) !important;
}

body > .ccde-sheet-layer .ccde-profile-sheet > header {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    background: inherit;
}

body > .ccde-sheet-layer .ccde-profile-sheet__body {
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-padding-block: 18px max(32px, env(safe-area-inset-bottom, 0px));
}

body > .ccde-sheet-layer .ccde-sheet-message,
body > .ccde-sheet-layer .ccde-homecoming-actions,
body > .ccde-sheet-layer .ccde-pe-about-actions {
    position: relative;
    z-index: 3;
    background: inherit;
}

body.ccde-sheet-open .ccde-mobile-nav {
    pointer-events: none !important;
}

.ccde-language-editor { display: grid; gap: 16px; min-width: 0; }
.ccde-language-selected { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; align-items: center; }
.ccde-language-selected > p { margin: 0; color: #a79ba1; font-size: 14px; }
.ccde-language-selected button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 11px; border: 1px solid #713247; border-radius: 999px; background: #3b1b27; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ccde-language-selected button i { color: #ff91a9; font-size: 17px; font-style: normal; }
.ccde-language-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ccde-language-choices button { min-height: 42px; padding: 8px 12px; border: 1px solid #443840; border-radius: 999px; background: #211c20; color: #e8dfe3; font: inherit; font-size: 14px; cursor: pointer; }
.ccde-language-choices button > span { display: none; margin-right: 5px; }
.ccde-language-choices button.is-selected { border-color: #f34a70; background: #4a1d2b; color: #fff; }
.ccde-language-choices button.is-selected > span { display: inline; }
.ccde-language-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; min-width: 0; }
.ccde-language-custom button { min-width: 72px; min-height: 50px; border: 0; border-radius: 14px; background: #f23e67; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ccde-language-error,
.ccde-location-field-error { min-height: 20px; margin: 0; color: #ff91aa; font-size: 14px; line-height: 1.45; }
.ccde-location-editor,
.ccde-location-editor .ccde-hub-field,
.ccde-location-editor :where(input, select),
.ccde-language-editor,
.ccde-language-editor .ccde-hub-field,
.ccde-language-editor :where(input, button) { min-width: 0; max-width: 100%; }
.ccde-location-editor :where(input, select),
.ccde-language-editor input { width: 100%; }

body.ccde-keyboard-open .ccde-chat-shell {
    height: calc(var(--ccde-visual-viewport-height, 100dvh) - 10px) !important;
    min-height: 0 !important;
}

body.ccde-keyboard-open .ccde-chat-composer {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 700px) {
    .ccde-app,
    .ccde-app__content,
    .ccde-app__content > *,
    .ccde-app [data-ccde-member-screen] {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ccde-app__content {
        width: 100% !important;
        padding-right: var(--ccde-phone-gutter) !important;
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
        padding-left: var(--ccde-phone-gutter) !important;
    }

    .ccde-app[data-view="people"] .ccde-discover,
    .ccde-app[data-view="people"] .ccde-discover--focused,
    .ccde-app[data-view="people"] .ccde-discover-workspace,
    .ccde-app[data-view="people"] .ccde-discover-workspace__main,
    .ccde-app[data-view="people"] .ccde-discover-deck,
    .ccde-app[data-view="people"] .ccde-discover-deck__stack {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .ccde-app[data-view="people"] .ccde-discover-card,
    .ccde-app[data-view="people"] .ccde-discover-card--front,
    .ccde-app[data-view="people"] .ccde-discover-card--back {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px !important;
    }

    .ccde-app[data-view="people"] .ccde-discover-card__media,
    .ccde-app[data-view="people"] .ccde-discover-card__media > img,
    .ccde-app[data-view="people"] .ccde-discover-card__story,
    .ccde-app[data-view="people"] .ccde-discover-topline,
    .ccde-app[data-view="people"] .ccde-discover-mode,
    .ccde-app[data-view="people"] .ccde-discovery-tabs,
    .ccde-app[data-view="people"] .ccde-discover-actions {
        max-width: 100% !important;
    }

    .ccde-app[data-view="people"] .ccde-discover-card__media > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .ccde-app[data-view="people"] .ccde-discover-card__identity {
        left: 16px !important;
        right: 72px !important;
    }

    .ccde-app[data-view="people"] .ccde-discover-card__story {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .ccde-app[data-view="people"] .ccde-discover-card__story > div,
    .ccde-app[data-view="people"] .ccde-chip-row,
    .ccde-app[data-view="people"] .ccde-discover-trust-badges {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .ccde-profile-gallery {
        margin-right: calc(-1 * var(--ccde-phone-gutter)) !important;
        margin-left: calc(-1 * var(--ccde-phone-gutter)) !important;
    }

    body > .ccde-sheet-layer .ccde-profile-sheet--editor {
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        width: 100% !important;
        height: var(--ccde-visual-viewport-height, 100dvh) !important;
        max-height: var(--ccde-visual-viewport-height, 100dvh) !important;
        transform: none !important;
        border-radius: 0 !important;
    }

    body > .ccde-sheet-layer .ccde-profile-sheet--compact {
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: min(76dvh, calc(var(--ccde-visual-viewport-height, 100dvh) - 10px)) !important;
        transform: none !important;
        border-radius: 28px 28px 0 0 !important;
    }

    body > .ccde-sheet-layer .ccde-profile-sheet > header {
        min-height: calc(62px + env(safe-area-inset-top, 0px));
        height: auto !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
        grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) minmax(44px, max-content) !important;
        column-gap: 4px;
    }

    body > .ccde-sheet-layer .ccde-profile-sheet > header h2 {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body > .ccde-sheet-layer .ccde-profile-sheet__body {
        padding: 18px 14px max(30px, env(safe-area-inset-bottom, 0px)) !important;
    }

    .ccde-language-custom { grid-template-columns: 1fr; }
    .ccde-language-custom button { width: 100%; }

    body > .ccde-sheet-layer[data-sheet-kind="compact"] .ccde-profile-sheet__body {
        padding-bottom: max(22px, env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (min-width: 701px) and (max-width: 900px) and (max-height: 600px) {
    .ccde-app__content {
        padding-right: 12px !important;
        padding-left: 12px !important;
        padding-bottom: 36px !important;
    }
    .ccde-app[data-view="people"] .ccde-discover,
    .ccde-app[data-view="people"] .ccde-discover-workspace,
    .ccde-app[data-view="people"] .ccde-discover-workspace__main,
    .ccde-app[data-view="people"] .ccde-discover-deck {
        width: 100% !important;
        max-width: none !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* Mobile account access: dense, dark, branded and keyboard-safe. */
@media (max-width: 900px) {
    body.ccde-auth-route {
        background: #090809 !important;
        color: #f8f5f6;
    }

    .ccde-auth {
        min-height: var(--ccde-visual-viewport-height, 100dvh) !important;
        overflow: visible !important;
        color: #f8f5f6 !important;
        background:
            radial-gradient(circle at 90% -8%, rgba(240, 49, 91, .20), transparent 35%),
            radial-gradient(circle at -8% 88%, rgba(120, 74, 158, .13), transparent 34%),
            linear-gradient(160deg, #090809 0%, #140e11 58%, #1c0d13 100%) !important;
        font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    }

    .ccde-auth__panel {
        min-height: var(--ccde-visual-viewport-height, 100dvh) !important;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scroll-padding-block: 16px 28px;
        background: transparent !important;
        color: #f8f5f6 !important;
    }

    .ccde-auth__mobile-brand {
        width: min(100%, 540px) !important;
        min-height: 52px !important;
        margin: 0 auto 9px !important;
        padding: 0 4px !important;
    }

    .ccde-auth__mobile-brand > span {
        width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
    }

    .ccde-auth__mobile-brand strong { font-size: 22px !important; }
    .ccde-auth__card-wrap { width: min(100%, 540px) !important; margin: 0 auto !important; }
    .ccde-auth__card-glow { opacity: .22 !important; }

    .ccde-auth__card {
        padding: 22px 20px 19px !important;
        border: 1px solid rgba(255, 255, 255, .095) !important;
        border-radius: 27px !important;
        color: #f8f5f6 !important;
        background: linear-gradient(155deg, rgba(31, 27, 30, .98), rgba(18, 16, 18, .98)) !important;
        box-shadow: 0 26px 72px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
        backdrop-filter: blur(22px);
    }

    .ccde-auth__tabs {
        margin-bottom: 19px !important;
        border-color: rgba(255, 255, 255, .07) !important;
        background: #121012 !important;
    }

    .ccde-auth__tabs button { height: 40px !important; color: #9d9499 !important; }
    .ccde-auth[data-mode="login"] .ccde-auth__tabs button[data-auth-switch="login"],
    .ccde-auth[data-mode="register"] .ccde-auth__tabs button[data-auth-switch="register"] {
        color: #fff !important;
        background: #2b2629 !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055) !important;
    }

    .ccde-auth__intro small { color: #ff6f8d !important; }
    .ccde-auth__intro h2 { margin: 9px 0 6px !important; color: #fff !important; font-size: 34px !important; }
    .ccde-auth__intro p { margin-bottom: 18px !important; color: #b9afb4 !important; font-size: 13px !important; line-height: 1.45 !important; }
    .ccde-auth form { gap: 13px !important; }
    .ccde-auth label > span:first-child { margin-bottom: 6px !important; color: #e7dfe3 !important; }

    .ccde-auth input[type="text"],
    .ccde-auth input[type="email"],
    .ccde-auth input[type="password"] {
        height: 54px !important;
        border-color: rgba(255, 255, 255, .10) !important;
        background: #242023 !important;
        color: #fff !important;
        caret-color: #ff4f75;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    }

    .ccde-auth input::placeholder { color: #81777c !important; }
    .ccde-auth input:focus { border-color: #f33d68 !important; background: #292428 !important; box-shadow: 0 0 0 4px rgba(243, 61, 104, .12) !important; }
    .ccde-auth__password button { height: 40px !important; color: #f7d9e1 !important; background: #33282d !important; }
    .ccde-auth__remember, .ccde-auth__terms { color: #b8adb2 !important; }
    .ccde-auth__text, .ccde-auth__switch button { color: #ff6f8d !important; }
    .ccde-auth__switch { color: #9e9398 !important; }

    .ccde-auth__primary {
        height: 55px !important;
        border-radius: 17px !important;
        background: linear-gradient(135deg, #f23b65, #d91d4b) !important;
        box-shadow: 0 15px 30px rgba(218, 29, 75, .24), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
    }

    .ccde-auth__notice { margin-bottom: 14px !important; }
    .ccde-auth__privacy { margin-top: 15px !important; padding-top: 14px !important; border-color: rgba(255, 255, 255, .08) !important; color: #9d9297 !important; }
    .ccde-auth__privacy > span { background: #2e2529 !important; color: #ff6687 !important; }
    .ccde-auth__privacy strong { color: #ddd4d8 !important; }
    .ccde-auth__panel-foot { margin-top: 12px !important; color: #766a70 !important; }
    .ccde-auth__panel-foot i { background: #4f4248 !important; }
}

@media (max-width: 560px) {
    .ccde-auth__card { padding: 20px 17px 17px !important; border-radius: 25px !important; }
    .ccde-auth__intro h2 { font-size: 31px !important; }
    .ccde-auth__row { align-items: center !important; }
    .ccde-auth__remember { max-width: 55% !important; }
}

@media (max-width: 380px) {
    .ccde-auth__panel { padding-right: 7px !important; padding-left: 7px !important; }
    .ccde-auth__card { padding-right: 14px !important; padding-left: 14px !important; }
    .ccde-auth__intro h2 { font-size: 29px !important; }
}

@media (max-width: 900px) and (max-height: 760px) {
    .ccde-auth__mobile-brand { min-height: 45px !important; margin-bottom: 5px !important; }
    .ccde-auth__mobile-brand > span { width: 38px !important; height: 38px !important; }
    .ccde-auth__card { padding-top: 17px !important; padding-bottom: 15px !important; }
    .ccde-auth__tabs { margin-bottom: 14px !important; }
    .ccde-auth__intro p { margin-bottom: 13px !important; }
    .ccde-auth__privacy { margin-top: 11px !important; padding-top: 10px !important; }
    .ccde-auth__panel-foot { display: none !important; }
}

@media (max-width: 900px) and (max-height: 500px) {
    .ccde-auth__mobile-brand { display: none !important; }
    .ccde-auth__panel { padding-top: max(7px, env(safe-area-inset-top, 0px)) !important; }
    .ccde-auth__card { border-radius: 21px !important; }
}

@media (prefers-reduced-motion: reduce) {
    body > .ccde-sheet-layer .ccde-profile-sheet { animation: none !important; }
}
