/*=================== Header menu manager ===================*/
.hm-error { margin: 6px 0 0; font-size: 12px; color: var(--dash-red); }
.hm-item {
    margin-bottom: 12px;
    background: var(--dash-bg);
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    overflow: hidden;
}
.hm-item:last-child { margin-bottom: 0; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.hm-grip { color: var(--dash-line); font-size: 17px; cursor: grab; }
.hm-info { flex: 1 1 auto; min-width: 0; }
.hm-label { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: #fff; }
.hm-url {
    display: inline-block;
    padding: 1px 7px;
    background: var(--dash-surface-2);
    border-radius: 6px;
    font-size: 11.5px;
    color: var(--dash-gold);
    word-break: break-all;
}
.hm-count { border: 0; cursor: default; }
button.hm-count { cursor: pointer; }
button.hm-count .bi { transition: transform .25s ease; }
.hm-item.is-open button.hm-count .bi { transform: rotate(180deg); }
.hm-tools { display: flex; gap: 5px; flex: 0 0 auto; }

.hm-children { display: none; padding: 4px 15px 12px 42px; background: rgba(0, 0, 0, .25); }
.hm-item.is-open .hm-children { display: block; }
.hm-children li {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--dash-line-soft);
}
.hm-children li:last-child { border-bottom: 0; }
.hm-children .bi-arrow-return-right { color: var(--dash-line); }
.hm-child-label { flex: 1 1 auto; font-size: 13px; color: #d5d5de; }

/*=================== preview ===================*/
.hm-preview {
    padding: 16px;
    background: #000;
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    margin-bottom: 12px;
}
.hm-preview-logo {
    display: block;
    margin-bottom: 14px;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #fff;
}
.hm-preview-logo b { color: var(--dash-gold); }
.hm-preview ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hm-preview li { font-size: 12.5px; color: #cfcfd8; }
.hm-preview li .bi { font-size: 10px; margin-left: 4px; color: var(--dash-muted); }

@media (max-width: 575.98px) {
    .hm-row { flex-wrap: wrap; }
    .hm-tools { width: 100%; justify-content: flex-end; }
    .hm-children { padding-left: 20px; }
    .hm-children li { flex-wrap: wrap; }
}
