/* Joomla-Profil – auf die vorhandenen Profil-Overrides begrenzt. */
.diestb_profile-wrapper,
.diestb_profile-edit-wrapper {
    --up-red: #e53935;
    --up-red-bright: #ff4b46;
    --up-panel: rgba(35, 36, 41, 0.88);
    --up-panel-soft: rgba(46, 47, 53, 0.76);
    --up-border: rgba(171, 174, 183, 0.2);
    --up-text: #f5f5f6;
    --up-muted: #b9bac0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(16px, 2vw, 28px);
    border: 2px solid rgba(5, 5, 7, 0.9);
    border-radius: 18px;
    background: rgba(25, 25, 28, 0.7);
    color: var(--up-text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(5px) saturate(0.84);
    -webkit-backdrop-filter: blur(5px) saturate(0.84);
}

.diestb_profile-wrapper::before,
.diestb_profile-edit-wrapper::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--up-red), var(--up-red-bright) 34%, transparent 75%);
    box-shadow: 0 0 14px rgba(255, 55, 55, 0.45);
}

.diestb_profile-wrapper *,
.diestb_profile-edit-wrapper * {
    box-sizing: border-box;
}

.diestb_profile-wrapper a,
.diestb_profile-edit-wrapper a {
    color: #ff7772;
}

.diestb_profile-wrapper a:hover,
.diestb_profile-wrapper a:focus-visible,
.diestb_profile-edit-wrapper a:hover,
.diestb_profile-edit-wrapper a:focus-visible {
    color: #ff9b97;
}

/* Seitenüberschrift und Bearbeiten-Schaltfläche */
.diestb_profile-wrapper .page-header,
.diestb_profile-edit-wrapper .page-header {
    margin: 0 0 14px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.diestb_profile-wrapper .page-header h1,
.diestb_profile-edit-wrapper .page-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 760;
}

.diestb_com-users-profile__edit {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.diestb_my-edit-btn,
.diestb_btn-save,
.diestb_btn-cancel {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 11px;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 680;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.diestb_my-edit-btn,
.diestb_btn-save {
    border: 1px solid var(--up-red);
    background: linear-gradient(180deg, #ff4540, #d92925);
    box-shadow: 0 0 13px rgba(255, 52, 52, 0.2);
}

.diestb_btn-cancel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(56, 57, 62, 0.9);
}

.diestb_my-edit-btn:hover,
.diestb_my-edit-btn:focus-visible,
.diestb_btn-save:hover,
.diestb_btn-save:focus-visible,
.diestb_btn-cancel:hover,
.diestb_btn-cancel:focus-visible {
    transform: translateY(-1px);
    border-color: var(--up-red-bright);
    background: rgba(229, 57, 53, 0.24);
    color: #fff !important;
    outline: none;
}

/* Informationskarten der Profilansicht */
.diestb_profile-wrapper fieldset,
.diestb_profile-edit-wrapper fieldset {
    position: relative;
    min-width: 0;
    margin: 12px 0 0;
    padding: 3px 17px 15px;
    border: 1px solid var(--up-border);
    border-left: 3px solid rgba(255, 55, 55, 0.78);
    border-radius: 15px;
    background:
        linear-gradient(120deg, rgba(48, 49, 54, 0.82), rgba(32, 33, 38, 0.82)),
        rgba(27, 28, 32, 0.82);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.diestb_profile-wrapper fieldset legend,
.diestb_profile-edit-wrapper fieldset legend {
    float: none;
    width: auto;
    max-width: calc(100% - 18px);
    margin: 0 0 8px;
    padding: 1px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(41, 42, 47, 0.96);
    color: #fff;
    font-size: 1rem;
    font-weight: 740;
    line-height: 1.7;
}

.diestb_profile-wrapper fieldset > p,
.diestb_profile-edit-wrapper fieldset > p {
    margin: 0 0 10px;
    color: var(--up-muted);
    line-height: 1.5;
}

.diestb_profile-wrapper dl {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    margin: 0;
    padding: 0;
}

.diestb_profile-wrapper dt,
.diestb_profile-wrapper dd {
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.diestb_profile-wrapper dt {
    color: var(--up-muted);
    font-weight: 650;
}

.diestb_profile-wrapper dd {
    color: #fff;
    font-weight: 520;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.diestb_profile-wrapper dl > :nth-last-child(-n + 2) {
    border-bottom: 0;
}

.diestb_profile-wrapper dd:empty::after {
    content: "–";
    color: #85868d;
}

.diestb_profile-wrapper code,
.diestb_profile-wrapper pre {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Profil bearbeiten */
.diestb_profile-edit-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

.diestb_profile-edit-wrapper .control-group,
.diestb_profile-edit-wrapper .field,
.diestb_profile-edit-wrapper .form-group {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 10px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.diestb_profile-edit-wrapper fieldset > .control-group:last-child,
.diestb_profile-edit-wrapper fieldset > .field:last-child,
.diestb_profile-edit-wrapper fieldset > .form-group:last-child {
    border-bottom: 0;
}

.diestb_profile-edit-wrapper .control-label,
.diestb_profile-edit-wrapper label {
    color: var(--up-muted);
    font-weight: 650;
}

.diestb_profile-edit-wrapper .controls,
.diestb_profile-edit-wrapper .control-value {
    min-width: 0;
}

.diestb_profile-edit-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.diestb_profile-edit-wrapper textarea,
.diestb_profile-edit-wrapper select,
.diestb_profile-edit-wrapper .form-control,
.diestb_profile-edit-wrapper .form-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    background: #3a3b40 !important;
    color: #f7f7f8 !important;
    -webkit-text-fill-color: #f7f7f8;
    caret-color: var(--up-red-bright);
}

.diestb_profile-edit-wrapper textarea {
    min-height: 110px;
    resize: vertical;
}

.diestb_profile-edit-wrapper input::placeholder,
.diestb_profile-edit-wrapper textarea::placeholder {
    color: #c2c3c8 !important;
    -webkit-text-fill-color: #c2c3c8 !important;
    opacity: 1;
}

.diestb_profile-edit-wrapper input:focus,
.diestb_profile-edit-wrapper textarea:focus,
.diestb_profile-edit-wrapper select:focus,
.diestb_profile-edit-wrapper .form-control:focus,
.diestb_profile-edit-wrapper .form-select:focus {
    border-color: var(--up-red-bright) !important;
    background: #424349 !important;
    color: #fff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.diestb_profile-edit-wrapper input:disabled,
.diestb_profile-edit-wrapper input[readonly],
.diestb_profile-edit-wrapper textarea:disabled,
.diestb_profile-edit-wrapper textarea[readonly] {
    background: #34353a !important;
    color: #d5d6da !important;
    -webkit-text-fill-color: #d5d6da !important;
    opacity: 1;
}

.diestb_profile-edit-wrapper .form-text,
.diestb_profile-edit-wrapper .small,
.diestb_profile-edit-wrapper small {
    color: #a9aab1 !important;
}

.diestb_profile-edit-wrapper .invalid,
.diestb_profile-edit-wrapper .form-control-danger,
.diestb_profile-edit-wrapper .form-control.invalid {
    border-color: #ff6b66 !important;
}

.diestb_com-users-profile__edit-submit {
    display: block !important;
    margin: 16px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.diestb_com-users-profile__edit-submit .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 720px) {
    .diestb_profile-wrapper,
    .diestb_profile-edit-wrapper {
        border-radius: 9px;
    }

    .diestb_profile-wrapper dl,
    .diestb_profile-edit-wrapper .control-group,
    .diestb_profile-edit-wrapper .field,
    .diestb_profile-edit-wrapper .form-group {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .diestb_profile-wrapper dt {
        padding-bottom: 3px;
        border-bottom: 0;
    }

    .diestb_profile-wrapper dd {
        padding-top: 3px;
    }

    .diestb_profile-wrapper dl > :nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .diestb_my-edit-btn,
    .diestb_btn-save,
    .diestb_btn-cancel {
        width: 100%;
    }

    .diestb_com-users-profile__edit-submit .controls {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .diestb_my-edit-btn,
    .diestb_btn-save,
    .diestb_btn-cancel,
    .diestb_crafting-wipe button {
        transition: none;
    }
}

/* Gefahrenbereich: nur im Override des eigenen Joomla-Profils ausgegeben. */
.diestb_crafting-wipe {
    margin-top: 18px;
    padding: clamp(18px, 2.2vw, 24px);
    border: 1px solid rgba(255, 75, 70, 0.38);
    border-left: 3px solid var(--up-red-bright);
    border-radius: 16px;
    background:
        linear-gradient(110deg, rgba(72, 25, 27, 0.42), rgba(27, 27, 31, 0.92) 45%),
        rgba(27, 27, 31, 0.9);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.diestb_crafting-wipe__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.diestb_crafting-wipe__eyebrow {
    margin: 0 0 4px;
    color: #ff7772;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.diestb_crafting-wipe h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 760;
}

.diestb_crafting-wipe__intro p:last-child {
    max-width: 780px;
    margin: 6px 0 0;
    color: var(--up-muted);
    line-height: 1.5;
}

.diestb_crafting-wipe button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 7px;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 720;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.diestb_crafting-wipe__open,
.diestb_crafting-wipe__delete {
    border: 1px solid #ff514c;
    background: linear-gradient(180deg, #db302c, #a51d1a);
    box-shadow: 0 0 15px rgba(255, 52, 52, 0.16);
}

.diestb_crafting-wipe__open:hover,
.diestb_crafting-wipe__open:focus-visible,
.diestb_crafting-wipe__delete:not(:disabled):hover,
.diestb_crafting-wipe__delete:not(:disabled):focus-visible {
    transform: translateY(-1px);
    border-color: #ff7772;
    background: linear-gradient(180deg, #ef3d38, #bc211e);
    outline: none;
}

.diestb_crafting-wipe button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.diestb_crafting-wipe__confirmation[hidden] {
    display: none !important;
}

.diestb_crafting-wipe__confirmation {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.diestb_crafting-wipe__notice {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 81, 76, 0.28);
    border-radius: 7px;
    background: rgba(124, 27, 25, 0.2);
    color: #d9d9dc;
    line-height: 1.5;
}

.diestb_crafting-wipe__notice strong {
    color: #ff8b87;
}

.diestb_crafting-wipe__selection {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.diestb_crafting-wipe__selection legend {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 2px;
    padding: 0;
    color: #f3f3f5;
    font-size: 0.9rem;
    font-weight: 760;
}

.diestb_crafting-wipe__scope {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(21, 22, 27, 0.66);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.diestb_crafting-wipe__scope:hover {
    border-color: rgba(255, 91, 86, 0.38);
    background: rgba(49, 25, 28, 0.7);
}

.diestb_crafting-wipe__scope > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.diestb_crafting-wipe__switch {
    position: relative;
    display: block;
    width: 42px;
    height: 23px;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: #3a3b42;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.34);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.diestb_crafting-wipe__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #c5c6cb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
    content: "";
    transition: transform 150ms ease, background-color 150ms ease;
}

.diestb_crafting-wipe__scope > input:checked + .diestb_crafting-wipe__switch {
    border-color: #ff625d;
    background: #a82421;
}

.diestb_crafting-wipe__scope > input:checked + .diestb_crafting-wipe__switch::after {
    transform: translateX(19px);
    background: #fff;
}

.diestb_crafting-wipe__scope > input:focus-visible + .diestb_crafting-wipe__switch {
    outline: 2px solid #ff7772;
    outline-offset: 3px;
}

.diestb_crafting-wipe__scope-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.diestb_crafting-wipe__scope-copy strong {
    color: #f1f1f3;
    font-size: 0.84rem;
    line-height: 1.3;
}

.diestb_crafting-wipe__scope-copy small {
    color: #9b9ca4;
    font-size: 0.72rem;
    line-height: 1.42;
}

.diestb_crafting-wipe__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    color: #ececef;
    line-height: 1.45;
    cursor: pointer;
}

.diestb_crafting-wipe__check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: var(--up-red-bright);
}

.diestb_crafting-wipe__label {
    display: block;
    margin: 0 0 7px;
    color: var(--up-muted);
}

.diestb_crafting-wipe__label strong {
    color: #fff;
    letter-spacing: 0.08em;
}

.diestb_crafting-wipe__input {
    width: min(100%, 380px);
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: #303137;
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.diestb_crafting-wipe__input:focus {
    border-color: var(--up-red-bright);
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.diestb_crafting-wipe__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.diestb_crafting-wipe__cancel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(57, 58, 63, 0.9);
}

.diestb_crafting-wipe__cancel:hover,
.diestb_crafting-wipe__cancel:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(73, 74, 80, 0.96);
    outline: none;
}

.diestb_crafting-wipe__status {
    min-height: 1.5em;
    margin: 12px 0 0;
    color: var(--up-muted);
    line-height: 1.5;
}

.diestb_crafting-wipe__status:empty {
    display: none;
}

.diestb_crafting-wipe__status[data-state="success"] {
    color: #58d989;
}

.diestb_crafting-wipe__status[data-state="error"] {
    color: #ff7772;
}

/* Dauerhafte Benutzergruppen für Crafting und spätere Website-Tools. */
.diestb_groups {
    clear: both;
    margin: 18px 0;
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid var(--up-border);
    border-left: 3px solid var(--up-red-bright);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(229, 57, 53, 0.075), transparent 38%),
        linear-gradient(120deg, rgba(40, 41, 46, 0.78), rgba(25, 26, 30, 0.84));
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.diestb_groups__heading,
.diestb_groups__subheading,
.diestb_groups__card > header,
.diestb_groups__card > footer,
.diestb_groups__invite-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.diestb_groups__heading h2,
.diestb_groups__subheading h3,
.diestb_groups__card h3,
.diestb_groups__members h4 {
    margin: 0;
    color: #fff;
    font-weight: 780;
}

.diestb_groups__heading h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
}

.diestb_groups__heading p:not(.diestb_groups__eyebrow),
.diestb_groups__card header p,
.diestb_groups__card footer,
.diestb_groups__invite-card span {
    margin: 6px 0 0;
    color: var(--up-muted);
    line-height: 1.48;
}

.diestb_groups__eyebrow {
    margin: 0 0 6px;
    color: #ff7772;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.diestb_groups__future,
.diestb_groups__id,
.diestb_groups__role {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 89, 83, 0.34);
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.09);
    color: #ff9b97;
    font-size: 0.72rem;
    font-weight: 760;
    white-space: nowrap;
}

.diestb_groups__role.is-admin {
    border-color: rgba(255, 155, 75, 0.36);
    background: rgba(216, 103, 25, 0.13);
    color: #ffc08c;
}

.diestb_groups__role.is-member {
    border-color: rgba(118, 180, 255, 0.28);
    background: rgba(51, 112, 184, 0.12);
    color: #9fc9ff;
}

.diestb_groups__create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(13, 14, 18, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.diestb_groups label {
    display: grid;
    gap: 7px;
    color: #dadbe0;
    font-size: 0.8rem;
    font-weight: 720;
}

.diestb_groups input,
.diestb_groups select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(37, 39, 46, 0.9);
    color: #fff;
    font: inherit;
}

.diestb_groups input:focus,
.diestb_groups select:focus {
    border-color: var(--up-red-bright);
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.16);
}

.diestb_groups button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 10px;
    background: rgba(53, 54, 61, 0.92);
    color: #f4f4f6;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 760;
    cursor: pointer;
}

.diestb_groups button:hover,
.diestb_groups button:focus-visible {
    border-color: rgba(255, 97, 91, 0.68);
    background: rgba(82, 37, 40, 0.96);
    outline: none;
}

.diestb_groups button.is-primary,
.diestb_groups__create > button {
    border-color: #ef3c39;
    background: linear-gradient(180deg, #f0403d, #c92329);
    color: #fff;
    box-shadow: 0 8px 22px rgba(201, 35, 41, 0.2);
}

.diestb_groups button.is-danger {
    border-color: rgba(255, 75, 70, 0.42);
    background: rgba(87, 26, 30, 0.48);
    color: #ff9b97;
}

.diestb_groups__status {
    min-height: 1.35em;
    margin: 12px 0;
    color: var(--up-muted);
}

.diestb_groups__status:empty {
    display: none;
}

.diestb_groups__status[data-state="success"] {
    color: #58d989;
}

.diestb_groups__status[data-state="error"] {
    color: #ff7772;
}

.diestb_groups[data-busy="true"] {
    cursor: progress;
}

.diestb_groups[data-busy="true"] button,
.diestb_groups[data-busy="true"] input,
.diestb_groups[data-busy="true"] select {
    pointer-events: none;
    opacity: 0.7;
}

.diestb_groups__invites {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(255, 102, 96, 0.3);
    border-radius: 14px;
    background: rgba(64, 25, 29, 0.22);
}

.diestb_groups__invite-list,
.diestb_groups__list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.diestb_groups__invite-card {
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(17, 18, 22, 0.7);
}

.diestb_groups__invite-card strong,
.diestb_groups__invite-card span {
    display: block;
}

.diestb_groups__invite-actions,
.diestb_groups__owner-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.diestb_groups__card {
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(32, 33, 39, 0.9), rgba(20, 21, 25, 0.9)),
        rgba(25, 26, 31, 0.9);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.diestb_groups__card h3 {
    margin-top: 8px;
}

.diestb_profile-wrapper .diestb_groups__card > header {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    margin: 0;
    padding: 0 0 15px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.diestb_profile-wrapper .diestb_groups__card > header::after {
    content: none;
}

.diestb_groups__owner-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 15px;
    padding: 0;
    border: 0;
    background: transparent;
}

.diestb_groups__owner-tools form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 12px;
    background: rgba(10, 11, 14, 0.38);
}

.diestb_groups__pending {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--up-muted);
    font-size: 0.75rem;
}

.diestb_groups__pending-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 5px 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #e6e6e9;
}

.diestb_groups__pending-chip button {
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: 50%;
}

.diestb_groups__members {
    margin-top: 15px;
}

.diestb_groups__members h4 {
    font-size: 0.86rem;
}

.diestb_groups__members ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.diestb_groups__members li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(12, 13, 16, 0.4);
}

.diestb_groups__avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(255, 93, 87, 0.38);
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.12);
    color: #fff;
    font-weight: 800;
}

.diestb_groups__member-name {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
}

.diestb_groups__member-name strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.diestb_groups__member-name small {
    color: var(--up-muted);
}

.diestb_groups__member-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

.diestb_groups__icon-action {
    min-height: 30px !important;
    padding: 5px 8px !important;
}

.diestb_groups__card > footer {
    align-items: center;
    margin-top: 15px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.diestb_profile-wrapper .diestb_groups__card > footer {
    position: static;
    left: auto;
    width: auto;
    min-height: 0;
    margin-bottom: 0;
    color: var(--up-muted);
    font-family: inherit;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.diestb_groups__empty,
.diestb_groups__loading {
    display: grid;
    gap: 5px;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.17);
    border-radius: 13px;
    color: var(--up-muted);
    text-align: center;
}

.diestb_groups__empty strong {
    color: #fff;
}

@media (max-width: 720px) {
    .diestb_groups__heading,
    .diestb_groups__subheading,
    .diestb_groups__card > header,
    .diestb_groups__card > footer,
    .diestb_groups__invite-card {
        align-items: stretch;
        flex-direction: column;
    }

    .diestb_groups__create,
    .diestb_groups__owner-tools,
    .diestb_groups__owner-tools form {
        grid-template-columns: 1fr;
    }

    .diestb_groups__create > button,
    .diestb_groups__invite-actions button,
    .diestb_groups__card > footer button {
        width: 100%;
    }

    .diestb_groups__member-actions {
        width: 100%;
        margin-left: 0;
    }

    .diestb_groups__member-actions button {
        flex: 1 1 150px;
    }

    .diestb_crafting-wipe__intro {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .diestb_crafting-wipe__open,
    .diestb_crafting-wipe__delete,
    .diestb_crafting-wipe__cancel {
        width: 100%;
    }

    .diestb_crafting-wipe__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .diestb_crafting-wipe__selection {
        grid-template-columns: 1fr;
    }
}
.com-users-profile.profile > .diestb_crafting-wipe {
    display: none !important;
}

.diestb-settings-page { display: grid; gap: 1rem; }
.diestb-settings-hero,
.diestb-settings-card {
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 3px solid #ef343b;
    border-radius: 15px;
    background: rgba(17, 19, 26, .88);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.diestb-settings-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
    gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: center;
    overflow: hidden;
    min-height: 124px;
    padding: clamp(1.4rem, 2.4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at 78% -30%, rgba(239, 52, 59, .12), transparent 42%),
        linear-gradient(135deg, rgba(19, 21, 29, .96), rgba(14, 16, 23, .9));
}
.diestb-settings-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(239, 52, 59, .7), rgba(239, 52, 59, .08) 42%, transparent 75%);
    content: '';
}
.diestb-settings-hero__title {
    display: grid;
    gap: .55rem;
    min-width: 0;
    padding-right: clamp(1.5rem, 3vw, 3rem);
    border-right: 1px solid rgba(255, 255, 255, .1);
}
.diestb-settings-hero p,
.diestb-settings-card__heading p { margin: 0 0 .3rem; color: #ff7479; font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.diestb-settings-hero h1,
.diestb-settings-card h2 { margin: 0; color: #fff; }
.diestb-settings-hero h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.025em;
    white-space: nowrap;
}
.diestb-settings-hero span,
.diestb-settings-help { color: #aeb2bd; }
.diestb-settings-hero > span {
    display: block;
    max-width: 780px;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.55;
}
.diestb-settings-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem; border-radius: 13px; background: rgba(12, 14, 20, .82); }
.diestb-settings-nav button { appearance: none; padding: .65rem .9rem; border: 1px solid transparent; border-radius: 9px; color: #c9ccd4; background: transparent; font: inherit; font-weight: 800; line-height: 1.2; cursor: pointer; }
.diestb-settings-nav button:hover { color: #fff; background: rgba(239, 52, 59, .16); }
.diestb-settings-nav button:focus-visible { outline: 2px solid #ff3f46; outline-offset: 2px; }
.diestb-settings-nav button.is-active,
.diestb-settings-nav button[aria-selected="true"] { color: #fff; border-color: rgba(255, 63, 70, .45); background: linear-gradient(180deg, rgba(239, 52, 59, .25), rgba(239, 52, 59, .10)); box-shadow: inset 0 -2px 0 #ff3f46; }
.diestb-settings-page [data-settings-panel][hidden] { display: none !important; }
.diestb-settings-card { padding: 1.25rem; }
.diestb-settings-card__heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .7rem; }
.diestb-settings-card #member-profile { margin: 1rem 0 0; }
.diestb-settings-secondary,
.diestb-settings-confirm button { padding: .72rem 1rem; border: 1px solid #aa2b31; border-radius: 9px; background: #cf292f; color: #fff !important; text-decoration: none !important; font-weight: 900; cursor: pointer; }
.diestb-theme-switch { display: inline-flex; gap: .65rem; align-items: center; cursor: pointer; }
.diestb-theme-switch input { position: absolute; opacity: 0; }
.diestb-theme-switch span { position: relative; width: 48px; height: 26px; border-radius: 999px; background: #303440; box-shadow: inset 0 0 0 1px #505665; }
.diestb-theme-switch span::after { content: ''; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.diestb-theme-switch input:checked + span { background: #ef343b; }
.diestb-theme-switch input:checked + span::after { transform: translateX(22px); }
.diestb-settings-card--danger { border-color: rgba(239, 52, 59, .35); border-left-color: #ef343b; }
.diestb-settings-wipe-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0; }
.diestb-settings-wipe-options label { display: flex; gap: .65rem; padding: .85rem; border: 1px solid #353a46; border-radius: 10px; background: #151821; cursor: pointer; }
.diestb-settings-wipe-options label span { display: grid; gap: .2rem; }
.diestb-settings-wipe-options small { color: #9297a4; }
.diestb-settings-confirm { display: flex; gap: .65rem; }
.diestb-settings-confirm input { flex: 1; min-width: 0; padding: .75rem; border: 1px solid #414653; border-radius: 9px; background: #242832; color: #fff; }
.diestb-settings-confirm button:disabled { opacity: .45; cursor: not-allowed; }
.diestb-settings-status { min-height: 1.4em; margin: .7rem 0 0; color: #aeb2bd; }
.diestb-settings-status[data-state="error"] { color: #ff7a80; }
.diestb-settings-status[data-state="success"] { color: #54d992; }

@media (max-width: 860px) {
    .diestb-settings-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: 0;
    }

    .diestb-settings-hero__title {
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .diestb-settings-hero h1 {
        white-space: normal;
    }
}
.diestb-watcher-card {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 4%, rgba(88, 101, 242, .16), transparent 34%),
        rgba(17, 19, 26, .92);
}
.diestb-watcher-card code {
    padding: .12rem .36rem;
    border: 1px solid rgba(126, 137, 255, .22);
    border-radius: 6px;
    color: #c8ceff;
    background: rgba(88, 101, 242, .11);
}
.diestb-watcher-state {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .72rem;
    border: 1px solid #404654;
    border-radius: 999px;
    color: #b8bdc9;
    background: rgba(12, 14, 20, .72);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}
.diestb-watcher-state::before {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #737a8b;
    box-shadow: 0 0 0 4px rgba(115, 122, 139, .12);
    content: '';
}
.diestb-watcher-state[data-state="active"] { border-color: rgba(46, 181, 111, .42); color: #62df9c; }
.diestb-watcher-state[data-state="active"]::before { background: #2eb56f; box-shadow: 0 0 0 4px rgba(46, 181, 111, .14); }
.diestb-watcher-state[data-state="error"] { border-color: rgba(239, 52, 59, .5); color: #ff7a80; }
.diestb-watcher-state[data-state="error"]::before { background: #ef343b; box-shadow: 0 0 0 4px rgba(239, 52, 59, .14); }
.diestb-watcher-release {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    margin: 1rem 0;
    padding: .9rem;
    border: 1px solid #343946;
    border-left: 3px solid #555c6b;
    border-radius: 12px;
    background: rgba(12, 14, 20, .7);
}
.diestb-watcher-release.is-available {
    border-color: rgba(46, 181, 111, .28);
    border-left-color: #2eb56f;
    background: linear-gradient(135deg, rgba(46, 181, 111, .1), rgba(12, 14, 20, .72));
}
.diestb-watcher-release__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #414756;
    border-radius: 11px;
    color: #b8bdc9;
    background: #222631;
    font-size: 1.25rem;
    font-weight: 900;
}
.diestb-watcher-release.is-available .diestb-watcher-release__icon {
    border-color: rgba(46, 181, 111, .38);
    color: #62df9c;
    background: rgba(46, 181, 111, .14);
}
.diestb-watcher-release > div { display: grid; gap: .12rem; min-width: 0; }
.diestb-watcher-release > div > span { color: #8f95a4; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.diestb-watcher-release strong { overflow: hidden; color: #f3f4f7; text-overflow: ellipsis; white-space: nowrap; }
.diestb-watcher-release small { color: #858b99; }
.diestb-watcher-download {
    padding: .72rem .9rem;
    border: 1px solid #238b55;
    border-radius: 9px;
    color: #fff;
    background: #197746;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}
.diestb-watcher-download:hover { color: #fff; background: #238b55; }
.diestb-watcher-download.is-disabled { border-color: #414756; color: #777e8d; background: #222631; cursor: not-allowed; }
.diestb-watcher-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    margin: 1.1rem 0;
}
.diestb-watcher-field {
    display: grid;
    gap: .28rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid #343946;
    border-radius: 11px;
    background: rgba(12, 14, 20, .7);
}
.diestb-watcher-field--wide { grid-column: 1 / -1; }
.diestb-watcher-field > label,
.diestb-watcher-field > span { color: #8f95a4; font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.diestb-watcher-field > strong { overflow: hidden; color: #f3f4f7; text-overflow: ellipsis; }
.diestb-watcher-copyrow { display: flex; gap: .55rem; min-width: 0; }
.diestb-watcher-copyrow input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .72rem .8rem;
    border: 1px solid #414756;
    border-radius: 9px;
    color: #e9ebf2;
    background: #222631;
    font: 600 .86rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.diestb-watcher-copyrow button,
.diestb-watcher-primary,
.diestb-watcher-danger {
    padding: .7rem .9rem;
    border-radius: 9px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.diestb-watcher-copyrow button { border: 1px solid #51596a; background: #303542; }
.diestb-watcher-copyrow button:hover { border-color: #7f899f; background: #3a404f; }
.diestb-watcher-secret {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(88, 101, 242, .48);
    border-left: 3px solid #7180ff;
    border-radius: 11px;
    background: rgba(27, 31, 54, .78);
}
.diestb-watcher-secret[hidden] { display: none !important; }
.diestb-watcher-secret p { margin: 0 0 .7rem; color: #cfd3e0; }
.diestb-watcher-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.diestb-watcher-primary { border: 1px solid #aa2b31; background: #cf292f; }
.diestb-watcher-primary:hover { background: #e22f36; }
.diestb-watcher-danger { border: 1px solid #555c6b; background: transparent; color: #d6d8df; }
.diestb-watcher-danger:hover { border-color: #ef343b; color: #ff7a80; background: rgba(239, 52, 59, .08); }
.diestb-watcher-primary:disabled,
.diestb-watcher-danger:disabled { opacity: .55; cursor: wait; }
.diestb-watcher-note { margin: .75rem 0 0; color: #858b99; font-size: .82rem; }
@media (max-width: 760px) {
    .diestb-settings-card__heading,
    .diestb-settings-confirm { align-items: stretch; flex-direction: column; }
    .diestb-settings-wipe-options { grid-template-columns: 1fr; }
    .diestb-watcher-grid { grid-template-columns: 1fr; }
    .diestb-watcher-field--wide { grid-column: auto; }
    .diestb-watcher-copyrow { align-items: stretch; flex-direction: column; }
    .diestb-watcher-copyrow button,
    .diestb-watcher-actions > button { width: 100%; }
    .diestb-watcher-release { grid-template-columns: auto 1fr; }
    .diestb-watcher-download { grid-column: 1 / -1; text-align: center; }
}
