/*=================== Add event screen ===================*/
.ae-error { margin: 6px 0 0; font-size: 12px; color: var(--dash-red); }
.ae-desc { min-height: 120px; }
.ae-upload-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.ae-path { font-family: monospace; font-size: 12px; padding: 8px 11px; }

/*=================== topic categories ===================*/
.ae-cats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.ae-cat {
    padding: 13px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
}
.ae-cat-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ae-cat-head .ae-cat-name { flex: 1 1 auto; font-weight: 700; padding: 8px 11px; font-size: 12.5px; }
.ae-cat .ae-cat-input { padding: 8px 11px; font-size: 12.5px; }
.ae-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.ae-tags:empty { display: none; }
.ae-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 10px;
    background: var(--dash-surface-2);
    border: 1px solid var(--dash-line);
    border-radius: 999px;
    font-size: 12px;
    color: #cfcfd8;
    cursor: pointer;
    transition: all .2s ease;
}
.ae-tag:hover { border-color: var(--dash-gold); color: #fff; }
.ae-tag .ae-tag-check { margin: 0; accent-color: var(--dash-gold); cursor: pointer; }
.ae-tag:has(.ae-tag-check:checked) {
    background: var(--dash-gold-soft);
    border-color: var(--dash-gold);
    color: var(--dash-gold);
}
.ae-tag .js-remove-tag {
    display: inline-flex; align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    opacity: .5;
    font-size: 10px;
    cursor: pointer;
}
.ae-tag .js-remove-tag:hover { opacity: 1; color: var(--dash-red); }

/*=================== sidebar ===================*/
.ae-preview {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
}
.ae-preview-thumb { flex: 0 0 66px; height: 66px; border-radius: 8px; overflow: hidden; background: #000; }
.ae-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-preview-body { min-width: 0; }
.ae-preview-title { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; color: #fff; }
.ae-preview-meta { margin: 0 0 6px; font-size: 12px; color: var(--dash-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ae-preview-month {
    display: inline-block;
    padding: 2px 8px;
    background: var(--dash-gold-soft);
    border-radius: 999px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    color: var(--dash-gold);
}

.ae-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ae-toggle-row.mb-0 { margin-bottom: 0; }
.ae-toggle-label { margin: 0 0 2px; font-size: 13.5px; color: #fff; }
.ae-toggle-row small { font-size: 12px; color: var(--dash-muted); }
.ae-save { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 575.98px) {
    .ae-preview { flex-wrap: wrap; }
}
