/* Map Merger - merge-only layout (.frmm-*). Builds on optimizer.css tokens
 * (--fro-*) and map.css (.frm-* panels/chips/progress). */

.frmm-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.frmm-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--fro-surface, #1c1f27); border: 1px solid var(--fro-border, #2a2e38);
    border-radius: 10px; padding: 10px 14px;
}
.frmm-item-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frmm-item-size { font-size: .8em; opacity: .6; flex-shrink: 0; }
.frmm-item-remove {
    flex-shrink: 0; background: none; border: none; color: #e07878; cursor: pointer;
    font-size: 1.1em; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.frmm-item-remove:hover { background: rgba(232,120,120,.12); }

.frmm-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 18px; flex-wrap: wrap;
}
.frmm-counter { font-weight: 600; color: var(--fro-accent, #6c8cff); }

.frmm-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0; }
.frmm-mapcard {
    background: var(--fro-surface, #1c1f27); border: 1px solid var(--fro-border, #2a2e38);
    border-radius: 10px; padding: 12px 14px;
}
.frmm-mapcard-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frmm-mapcard-meta { font-size: .82em; opacity: .75; margin-top: 4px; }
.frmm-mapcard-warn { color: #e0b35a; margin-left: 6px; }

.frmm-maplist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.frmm-row { font-size: .85em; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.frmm-row:last-child { border-bottom: none; }

.frmm-build-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.frmm-build-row .frm-build-btn { width: auto; flex: 1; min-width: 200px; }

@media (max-width: 560px) {
    .frmm-bar, .frmm-build-row { flex-direction: column; align-items: stretch; }
    .frmm-build-row .frm-build-btn { width: 100%; }
}
