/* RL-ENERGY-CREW-REBUILD-V3 */

/* Energy Crew V3 styles are scoped to the component. */

.ecv3 {
    --ec-pink: #fa2fa5;
    --ec-purple: #22122e;
    display: grid;
    grid-template-columns: minmax(235px, 35%) minmax(0, 1fr);
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: #1b142c;
    color: #fff;
    box-shadow: 0 13px 38px rgba(15, 7, 32, .21);
    font-family: inherit;
}

.ecv3[hidden],
.ecv3 [hidden] {
    display: none !important;
}

.ecv3__promo {
    background: linear-gradient(
        148deg,
        #f33ca9 0%,
        #c51a85 63%,
        #8c116f 100%
    );
    padding: 25px 26px;
    min-height: 407px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    isolation: isolate;
}

.ecv3__brand {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    color: #fff;
}

.ecv3__brand span:last-child {
    color: #3d0d3b;
    background: #fff;
    padding: 3px 5px;
    margin-left: 4px;
    border-radius: 2px;
}

.ecv3__brand-signal {
    font-size: 18px;
    margin-right: 8px;
}

.ecv3__kicker {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    color: #ffe6f6;
}

.ecv3__promo h2 {
    font-size: clamp(34px, 3.7vw, 54px);
    line-height: .93;
    letter-spacing: -.055em;
    font-weight: 1000;
    color: #fff;
    margin: 16px 0 13px;
}

.ecv3__promo h2 em {
    font-style: normal;
    color: #31112f;
}

.ecv3__promo-middle p {
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    max-width: 290px;
    margin: 0;
}

.ecv3__promo-foot {
    font-weight: 800;
    font-size: 10px;
    letter-spacing: .1em;
    color: #ffe8f6;
}

.ecv3__promo-foot span {
    margin: 0 6px;
}

.ecv3__content {
    min-width: 0;
    padding: 0;
    background:
        radial-gradient(
            ellipse at top right,
            rgba(102, 37, 102, .28),
            transparent 56%
        ),
        #1b152a;
}

.ecv3__tabs {
    display: flex;
    gap: 4px;
    padding: 13px 21px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ecv3__tab {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #aa9eb8;
    padding: 11px 9px 12px;
    font: inherit;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .08em;
    cursor: pointer;
}

.ecv3__tab.is-active {
    color: #fff;
    border-bottom-color: var(--ec-pink);
}

.ecv3__tab:focus-visible,
.ecv3 button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ecv3__panel {
    padding: 24px 25px 16px;
    min-height: 345px;
}

.ecv3__panel[hidden] {
    display: none !important;
}

.ecv3__heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ecv3__heading h3 {
    color: #fff;
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0;
}

.ecv3__heading p {
    color: #bcaacb;
    font-size: 12px;
    margin: 7px 0 0;
}

.ecv3__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 850;
    font-size: 10px;
    letter-spacing: .06em;
    color: #e8dbe8;
    white-space: nowrap;
    background: #35233e;
    padding: 7px 9px;
    border-radius: 20px;
}

.ecv3__status span,
.ecv3__pulse {
    width: 7px;
    height: 7px;
    display: inline-block;
    background: var(--ec-pink);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(250, 47, 165, .12);
}

.ecv3__activity {
    min-height: 205px;
}

.ecv3__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .085);
}

.ecv3__item:first-child {
    padding-top: 0;
}

.ecv3__item:last-child {
    border-bottom: 0;
}

.ecv3__icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(250, 47, 165, .11);
    color: #ff66bf;
}

.ecv3__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ecv3__detail {
    min-width: 0;
}

.ecv3__detail a {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 850;
    color: #fff !important;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ecv3__detail a:hover {
    text-decoration: underline;
}

.ecv3__detail p {
    color: #c6b3d1;
    font-size: 12px;
    line-height: 1.3;
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.ecv3__time {
    align-self: start;
    text-align: right;
    white-space: nowrap;
    color: #a99bb6;
    font-size: 10px;
    font-weight: 700;
    padding-top: 4px;
}

.ecv3__empty {
    padding: 38px 5px;
    color: #c6b3d1;
    font-size: 13px;
    line-height: 1.5;
}


/* RL-ENERGY-CREW-COMPACT-NICKNAME-V1 */

.ecv3__profile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.ecv3__profile[hidden] {
    display: none !important;
}

.ecv3__profile-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 185px;
    padding: 8px 11px !important;
    border: 1px solid rgba(250, 47, 165, .42) !important;
    border-radius: 7px !important;
    background: rgba(250, 47, 165, .11) !important;
    color: #ff91d0 !important;
    font-family: inherit;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease;
}

.ecv3__profile-edit:hover {
    background: rgba(250, 47, 165, .22) !important;
}

.ecv3__profile-edit svg {
    flex-shrink: 0;
}

.ecv3__profile-edit [data-ecv3-name] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ecv3__profile-hint {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    max-width: 80vw;
    z-index: 5;
    padding: 10px 12px;
    border: 1px solid #70456b;
    border-radius: 7px;
    background: #38213f;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

.ecv3__profile-hint[hidden] {
    display: none !important;
}

@media (max-width: 430px) {
    .ecv3__profile-edit {
        max-width: 142px;
        font-size: 10px !important;
        padding: 7px 8px !important;
    }
}

.ecv3__footer {
    margin-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: #9c8fae;
    font-size: 10px;
}

.ecv3__footer > span:first-child {
    display: flex;
    gap: 7px;
    align-items: center;
}

.ecv3__pulse {
    width: 6px;
    height: 6px;
}

.ecv3__about h3 {
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    margin: 0 0 15px;
}

.ecv3__about p {
    color: #cbbcd6;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 14px;
}

/* Edit Profile popup */

.ecv3__modal {
    padding: 0;
    border: 1px solid #5f3155;
    max-width: 490px;
    width: calc(100% - 28px);
    border-radius: 13px;
    color: #fff;
    background: #21132c;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .65);
}

.ecv3__modal::backdrop {
    background: rgba(9, 4, 18, .76);
}

.ecv3__form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ecv3__modal-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.ecv3__modal-top span {
    font-size: 10px;
    letter-spacing: .16em;
    color: #f58dc7;
    font-weight: 900;
}

.ecv3__modal-top h2 {
    font-size: 22px;
    font-weight: 950;
    color: #fff;
    line-height: 1.1;
    margin: 6px 0;
}

.ecv3__close {
    font-size: 25px;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}

.ecv3__form label {
    color: #fff;
    font-weight: 850;
    font-size: 12px;
    margin: 4px 0;
}

.ecv3__form label small {
    font-size: 10px;
    color: #bda9ca;
    font-weight: 500;
}

.ecv3__form input:not([type="checkbox"]),
.ecv3__form select {
    box-sizing: border-box;
    border: 1px solid #5b466b !important;
    background: #34223f !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 11px !important;
    font: inherit !important;
    font-size: 13px !important;
    width: 100%;
    min-height: 43px;
}

.ecv3__form input:focus,
.ecv3__form select:focus {
    outline: 2px solid #fb65bd;
    outline-offset: 1px;
}

.ecv3__hint {
    font-size: 11px;
    color: #bda9ca;
    margin: 0 0 7px;
}

.ecv3__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.ecv3__form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecv3__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    margin-top: 12px !important;
    font-weight: 500 !important;
    color: #cfbed8 !important;
}

.ecv3__consent input {
    margin-top: 2px;
    accent-color: #ec2798;
    flex-shrink: 0;
}

.ecv3__error {
    border: 1px solid #aa426d;
    background: #55213f;
    border-radius: 7px;
    padding: 9px 11px;
    color: #fff;
    font-size: 12px;
}

.ecv3__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.ecv3__actions button {
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ecv3__cancel {
    border: 1px solid #654d71;
    background: transparent;
    color: #fff;
}

.ecv3__save {
    background: #f52ca6;
    color: #fff;
    border: 1px solid #f52ca6;
}

.ecv3__save:disabled {
    opacity: .6;
    cursor: wait;
}

@media (max-width: 800px) {
    .ecv3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ecv3__promo {
        min-height: 175px;
        padding: 20px 23px;
        gap: 19px;
    }

    .ecv3__promo h2 {
        font-size: 33px;
        margin: 10px 0;
    }

    .ecv3__promo-middle p {
        display: none;
    }

    .ecv3__content {
        min-height: 360px;
    }
}

@media (max-width: 430px) {
    .ecv3__panel {
        padding: 19px 16px 15px;
    }

    .ecv3__tabs {
        padding-left: 12px;
    }

    .ecv3__heading h3 {
        font-size: 19px;
    }

    .ecv3__item {
        gap: 8px;
        grid-template-columns: 30px minmax(0, 1fr) 64px;
    }

    .ecv3__time {
        font-size: 9px;
    }

    .ecv3__detail a,
    .ecv3__detail p {
        font-size: 11px;
    }

    .ecv3__footer {
        font-size: 9px;
    }

    .ecv3__form-grid {
        grid-template-columns: 1fr;
    }

    .ecv3__form {
        padding: 19px;
    }
}
