.al-profile, .al-password {
    max-width: 500px;
}

.al-profile label,
.al-password label {
    display:block;
    margin-top:10px;
}

.al-profile input,
.al-password input {
    width:100%;
    padding:6px;
}

.al-msg {
    margin-top:10px;
    color:green;
}

.al-btn {
    background:#000;
    color:#fff;
    padding:8px 14px;
    border:none;
    cursor:pointer;
}

.al-btn-secondary {
    background:#eee;
    padding:8px 14px;
    border:none;
    cursor:pointer;
}

.al-modal {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:9999;
}

.al-modal-content {
    background:#fff;
    max-width:420px;
    margin:10% auto;
    padding:20px;
}

.al-modal-content input {
    width:100%;
    padding:8px;
    margin-bottom:10px;
}

.al-actions {
    margin-top:15px;
    display:flex;
    gap:10px;
}

.success { color:green; }
.error { color:red; }

/* Boards Grid */
.al-boards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Board Card */
.al-board-card {
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px;
}

.al-board-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.al-board-card.active {
    border-color: #000;
}

/* Board Image */
.al-board-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* Board Title */
.al-board-title {
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
}

/* Empty message */
.al-no-boards {
    margin-top: 20px;
    font-style: italic;
}

.al-save-to-board-btn {
    background:#000;
    color:#fff;
    padding:8px 12px;
    border:none;
    cursor:pointer;
}

#al-save-board-list {
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:15px 0;
}

.al-board-select {
    padding:8px;
    border:1px solid #ddd;
    background:#f9f9f9;
    cursor:pointer;
}

.al-board-select:hover {
    background:#eee;
}

/* Board Items */
.al-board-items-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap:20px;
    margin-top:20px;
}

.al-board-item {
    position:relative;
    border:1px solid #ddd;
    padding:10px;
    background:#fff;
}

.al-board-item img {
    width:100%;
    height:140px;
    object-fit:cover;
}

.al-board-item h4 {
    margin:10px 0 5px;
    font-size:14px;
}

.al-item-type {
    font-size:12px;
    color:#777;
}

.al-remove-item {
    position:absolute;
    top:5px;
    right:5px;
    background:#000;
    color:#fff;
    border:none;
    width:24px;
    height:24px;
    cursor:pointer;
}

.al-board-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

.al-board-actions {
    display:flex;
    gap:8px;
}

.al-board-actions button {
    background:none;
    border:none;
    font-size:12px;
    cursor:pointer;
    color:#555;
}

.al-board-actions button:hover {
    text-decoration:underline;
}
.al-board-select.al-board-saved {
    background:#f5f5f5;
    border:1px solid #ccc;
    color:#888;
    cursor:not-allowed;
}

.al-saved-label {
    margin-left:8px;
    font-size:11px;
    color:#b66a3c;
}
.al-board-detail-actions {
    display:flex;
    gap:10px;
}

.al-board-detail-actions .danger {
    border:1px solid #c0392b;
    color:#c0392b;
    background:none;
}


/* #al-edit-board-image-preview {
    width: 100%;
    max-width: 260px;       
    height: 160px;          
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}


#al-edit-board-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;     
    display: block;
} */

.media-frame .media-frame-content .attachment-details,
.media-frame .media-frame-content .media-sidebar {
    display: none !important;
}

/* Make grid use full width */
.media-frame .attachments-browser {
    width: 100% !important;
}

.field-note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #8a8a8a;
}

.al-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.my-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-note-delete {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.my-note-delete:hover {
    color: #c00;
}

#al-save-board-notes-wrap {
    display: none;
}
.al-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.al-share-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.al-share-msg {
    font-size: 12px;
    color: green;
    margin-left: 6px;
}

.al-share-item.is-copying {
    pointer-events: none;
    opacity: 0.7;
}

.al-board-select.is-selected {
    background: #000;
    color: #fff;
}
.al-share-msg-single {
    margin-left: 8px;
    font-size: 13px;
    color: #2f9e44; /* green success */
}
.al-msg.is-error {
    color: red;
}

