.as-dem-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 14px 70px;
    color: #fff;
}

.as-dem-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
}

.as-dem-alert--success {
    background: rgba(6, 95, 70, .24);
    border: 1px solid rgba(16, 185, 129, .32);
    color: #bbf7d0;
}

.as-dem-alert--error {
    background: rgba(127, 29, 29, .26);
    border: 1px solid rgba(248, 113, 113, .32);
    color: #fecaca;
}

/*.as-dem-hero,*/
.as-dem-panel,
.as-dem-login-box,
.as-dem-empty {
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.as-dem-hero {
    padding: 24px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
/*
.as-dem-hero::before {
    content: "";
    position: absolute;
    inset: -80px -120px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .22);
    filter: blur(40px);
}
*/
.as-dem-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.05;
    font-weight: 1000;
    text-align: center;
}

.as-dem-panel {
    padding: 16px;
    margin-bottom: 26px;
}

.as-dem-form {
    display: grid;
    gap: 14px;
}

.as-dem-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-dem-type {
    cursor: pointer;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .15);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .72);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 1000;
}

.as-dem-type input {
    display: none;
}

.as-dem-type.is-active {
    background: rgba(124, 58, 237, .20);
    border-color: rgba(124, 58, 237, .38);
    color: #fff;
}

.as-dem-search-wrap,
.as-dem-manual,
.as-dem-note {
    display: grid;
    gap: 8px;
    position: relative;
}

.as-dem-search-wrap label,
.as-dem-manual label,
.as-dem-note label {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.as-dem-search {
    position: relative;
}

.as-dem-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .48);
    pointer-events: none;
}

.as-dem-search input,
.as-dem-manual input,
.as-dem-note textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 20px;
    background: rgba(255, 255, 255, .065);
    color: #fff;
    outline: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}

.as-dem-search input,
.as-dem-manual input {
    height: 56px;
    padding: 0 16px;
}

.as-dem-search input {
    padding-left: 50px;
}

.as-dem-note textarea {
    min-height: 112px;
    resize: vertical;
    padding: 14px 16px;
    line-height: 1.45;
}

.as-dem-search input::placeholder,
.as-dem-manual input::placeholder,
.as-dem-note textarea::placeholder {
    color: rgba(255, 255, 255, .46);
}

.as-dem-search input:focus,
.as-dem-manual input:focus,
.as-dem-note textarea:focus {
    border-color: rgba(124, 58, 237, .52);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12), 0 18px 48px rgba(0, 0, 0, .22);
}

.as-dem-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 18px;
    background: rgba(3, 7, 18, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
    overflow: hidden;
}

.as-dem-result {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .10);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-align: left;
}

.as-dem-result:last-child {
    border-bottom: 0;
}

.as-dem-result:hover {
    background: rgba(255, 255, 255, .06);
}

.as-dem-result img {
    width: 52px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.as-dem-result span {
    min-width: 0;
    flex: 1;
}

.as-dem-result strong,
.as-dem-result small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-dem-result strong {
    font-size: 13px;
    font-weight: 1000;
}

.as-dem-result small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
    font-weight: 700;
}

.as-dem-result em {
    flex-shrink: 0;
    font-style: normal;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 900;
}

.as-dem-result-empty {
    padding: 14px;
    color: rgba(255, 255, 255, .62);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
}

.as-dem-selected {
    display: none;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, .30);
    background: rgba(124, 58, 237, .12);
    padding: 10px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.as-dem-selected.is-visible {
    display: flex;
}

.as-dem-selected[hidden],
.as-dem-results[hidden] {
    display: none !important;
}

.as-dem-selected__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.as-dem-selected__left img {
    width: 70px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.as-dem-selected strong,
.as-dem-selected small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-dem-selected strong {
    font-size: 14px;
    font-weight: 1000;
}

.as-dem-selected small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 800;
}

.as-dem-selected button {
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 1000;
}

.as-dem-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.as-dem-actions p {
    margin: 0;
    color: rgba(255, 255, 255, .52);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.as-dem-actions button {
    min-width: 190px;
    height: 46px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 1000;
    box-shadow: 0 16px 42px rgba(124, 58, 237, .24);
}

.as-dem-login-box,
.as-dem-empty {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.as-dem-login-box > i,
.as-dem-empty > i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(124, 58, 237, .14);
    border: 1px solid rgba(124, 58, 237, .24);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.as-dem-login-box div,
.as-dem-empty div {
    flex: 1;
}

.as-dem-login-box strong,
.as-dem-empty strong {
    display: block;
    font-size: 15px;
    font-weight: 1000;
}

.as-dem-login-box p,
.as-dem-empty p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.45;
}

.as-dem-login-box a {
    height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(124, 58, 237, .18);
    border: 1px solid rgba(124, 58, 237, .28);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 1000;
}

.as-dem-list-head {
    margin: 26px 0 14px;
}

.as-dem-list-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 1000;
}

.as-dem-list-head p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
}

.as-dem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.as-dem-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(2, 6, 23, .96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.as-dem-card__image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.as-dem-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, .88));
}

.as-dem-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-dem-card__status {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, .74);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 900;
}

.as-dem-card__status--accepted,
.as-dem-card__status--done {
    background: rgba(6, 95, 70, .72);
}

.as-dem-card__status--rejected {
    background: rgba(127, 29, 29, .72);
}

.as-dem-card__body {
    padding: 14px;
}

.as-dem-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.as-dem-card__meta span {
    min-height: 28px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .12);
    color: rgba(255, 255, 255, .66);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
}

.as-dem-card h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 1000;
}

.as-dem-card small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .46);
    font-size: 12px;
    font-weight: 800;
}

.as-dem-card p {
    margin: 11px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.as-dem-admin-delete {
    width: 100%;
    min-height: 40px;
    margin-top: 13px;
    border: 0;
    border-radius: 15px;
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(248, 113, 113, .26);
    color: #fecaca;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 1000;
    transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.as-dem-admin-delete:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, .22);
    border-color: rgba(248, 113, 113, .40);
}

.as-dem-modal[hidden] {
    display: none !important;
}

.as-dem-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.as-dem-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(8px);
}

.as-dem-modal__box {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    border: 1px solid rgba(248, 113, 113, .20);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
    padding: 18px;
    display: grid;
    gap: 13px;
}

.as-dem-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: rgba(239, 68, 68, .16);
    border: 1px solid rgba(248, 113, 113, .25);
    color: #fecaca;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.as-dem-modal__content h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 1000;
}

.as-dem-modal__content p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .64);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.as-dem-modal label {
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.as-dem-modal label span {
    color: #fca5a5;
}

.as-dem-modal textarea {
    width: 100%;
    min-height: 118px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .065);
    color: #fff;
    outline: none;
    resize: vertical;
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.as-dem-modal textarea:focus {
    border-color: rgba(248, 113, 113, .48);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12);
}

.as-dem-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.as-dem-modal__cancel,
.as-dem-modal__confirm {
    height: 42px;
    border: 0;
    border-radius: 15px;
    padding: 0 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 1000;
}

.as-dem-modal__cancel {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
}

.as-dem-modal__confirm {
    background: rgba(239, 68, 68, .92);
    color: #fff;
}

.as-dem-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.as-dem-pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .14);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 1000;
}

.as-dem-pagination a.is-active,
.as-dem-pagination a:hover {
    background: rgba(124, 58, 237, .18);
    border-color: rgba(124, 58, 237, .32);
}

@media (max-width: 980px) {
    .as-dem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .as-dem-page {
        padding: 16px 10px 56px;
    }

    .as-dem-hero,
    .as-dem-panel {
        border-radius: 20px;
        padding: 14px;
    }

    .as-dem-grid {
        grid-template-columns: 1fr;
    }

    .as-dem-actions {
        align-items: stretch;
    }

    .as-dem-actions button {
        width: 100%;
    }

    .as-dem-selected.is-visible {
        align-items: stretch;
        flex-direction: column;
    }

    .as-dem-selected button {
        width: 100%;
        justify-content: center;
    }

    .as-dem-login-box,
    .as-dem-empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .as-dem-login-box a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .as-dem-modal__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .as-dem-modal__cancel,
    .as-dem-modal__confirm {
        width: 100%;
    }
}