.apps-launcher__scroll {
    max-height: min(70vh, 540px);
    overflow: auto;
    padding-bottom: 6px;
}

.apps-launcher__mine-label {
    margin: 4px 16px 0;
    color: rgba(232, 230, 244, 0.55);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.apps-launcher__item {
    position: relative;
}

.apps-launcher__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.apps-launcher__icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
}

.apps-launcher__item.is-dragging {
    opacity: 0.45;
}

.apps-launcher__item[data-sort="1"] {
    cursor: grab;
    user-select: none;
}

.apps-launcher__add {
    border: 1px dashed rgba(176, 164, 255, 0.38);
    background: transparent;
    color: rgba(232, 230, 244, 0.78);
    cursor: pointer;
}

.apps-launcher__add:hover,
.apps-launcher__add:focus-visible {
    background: rgba(124, 110, 255, 0.16);
    color: #fff;
    outline: none;
}

.apps-launcher__icon--ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #f4f2ff;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

.apps-launcher__edit {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 18, 40, 0.82);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    opacity: 0;
    cursor: pointer;
}

.apps-launcher__item:hover .apps-launcher__edit,
.apps-launcher__item:focus-within .apps-launcher__edit {
    opacity: 1;
}

.apps-editor[hidden] { display: none; }

.apps-editor {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 10, 24, 0.45);
}

.apps-editor__card {
    width: min(440px, 100%);
    margin: 0;
    padding: 18px 18px 14px;
    border-radius: 22px;
    color: #f4f2ff;
    font-family: inherit;
    background: linear-gradient(165deg, rgba(38, 34, 78, 0.98) 0%, rgba(16, 20, 46, 0.98) 100%);
    border: 1px solid rgba(176, 164, 255, 0.28);
    box-shadow: 0 18px 48px rgba(10, 8, 28, 0.5);
}

.apps-editor__card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 650;
}

.apps-editor__error {
    margin: 0 0 10px;
    color: #ffb4b4;
    font-size: 13px;
}

.apps-editor__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.apps-editor__icon,
.apps-editor__upload {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #f4f2ff;
    cursor: pointer;
    overflow: hidden;
}

.apps-editor__icon svg { display: block; width: 44px; height: 44px; }

.apps-editor__icon.is-selected { border-color: #c4b5ff; }

.apps-editor__upload {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(176, 164, 255, 0.45);
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    padding: 4px;
}

.apps-editor__preview { margin: 0 0 10px; }
.apps-editor__preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
}

.apps-editor__field {
    display: block;
    margin-bottom: 10px;
    color: rgba(244, 242, 255, 0.72);
    font-size: 13px;
}

.apps-editor__field input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid rgba(176, 164, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
}

.apps-editor__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.apps-editor__actions button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.apps-editor__save { background: #5b46f5; }
.apps-editor__delete { margin-right: auto; background: transparent; color: #ffb4b4; }
