.manage-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff5fb, #f2efff 50%, #eaf7ff);
}

.manage-main {
    width: min(1050px, calc(100% - 28px));
    margin: 30px auto 90px;
}

.manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 28px rgba(84, 57, 122, 0.12);
}

.manage-header h2 {
    margin: 0 0 7px;
    color: #673b8a;
}

.manage-header p {
    margin: 0;
    color: #666;
}

.add-artwork-link {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(90deg, #e91e63, #9b59b6);
    text-decoration: none;
    font-weight: 800;
}

.manage-auth {
    margin-top: 20px;
    padding: 20px;
    border-radius: 17px;
    background: #fff6d8;
    color: #5e5028;
}

.manage-auth > label {
    display: block;
    margin-bottom: 9px;
    font-weight: 800;
}

.pin-row {
    display: flex;
    gap: 10px;
}

.pin-row input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    border: 2px solid #d7bd66;
    border-radius: 12px;
    padding: 10px 13px;
    font: inherit;
    letter-spacing: 0.18em;
}

.pin-row button {
    min-height: 48px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: #7d4aa0;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.manage-auth p {
    margin: 9px 0 0;
    font-size: 0.9rem;
}

.manage-status {
    margin: 20px 0;
    padding: 13px 16px;
    border-radius: 13px;
    background: #eef7ff;
    color: #315d7d;
    font-weight: 700;
}

.manage-status.error {
    color: #9c2f3d;
    background: #ffe7eb;
}

.manage-status.success {
    color: #17673a;
    background: #e4f8ec;
}

.manage-list {
    display: grid;
    gap: 16px;
}

.manage-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 6px 20px rgba(84, 57, 122, 0.1);
}

.manage-thumb {
    width: 170px;
    height: 125px;
    object-fit: cover;
    border-radius: 13px;
    background: #eee;
}

.manage-info h3 {
    margin: 0 0 10px;
    color: #4f3265;
    font-size: 1.2rem;
}

.manage-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    color: #666;
    font-size: 0.92rem;
}

.visibility-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e6f6ff;
    color: #286788;
    font-size: 0.82rem;
    font-weight: 750;
}

.visibility-badge.private {
    background: #f1edf4;
    color: #66556f;
}

.manage-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.edit-button,
.delete-button {
    min-width: 100px;
    min-height: 44px;
    border-radius: 11px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
}

.edit-button {
    border: none;
    background: #8c55ad;
    color: white;
}

.delete-button {
    border: 2px solid #dc7582;
    background: white;
    color: #ad3f4e;
}

.empty-list {
    padding: 45px 20px;
    text-align: center;
    border-radius: 18px;
    background: white;
    color: #777;
}

@media (max-width: 720px) {
    .manage-main {
        width: min(100% - 18px, 1050px);
        margin-top: 14px;
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .manage-header {
        align-items: stretch;
        flex-direction: column;
        padding: 19px 17px;
    }

    .manage-card {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 13px;
        align-items: start;
    }

    .manage-thumb {
        width: 108px;
        height: 108px;
    }

    .manage-info h3 {
        font-size: 1.05rem;
    }

    .manage-meta {
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 0.84rem;
    }

    .manage-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .edit-button,
    .delete-button {
        flex: 1;
    }

    .pin-row {
        flex-direction: column;
    }
}
