#mosaicComponentContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mosaic-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    color: #cbd5e1;
}

.mosaic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-pink-btn {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    margin-right: 4px;
    border-radius: 8px !important;
}

.header-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    transition: all 0.2s;
}

.header-action-btn:hover {
    background: #334155;
    color: white;
}

.reset-btn:hover {
    background: #475569;
}

.mosaic-controls-top {
    display: flex;
    gap: 12px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.control-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.control-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}

.control-label span:last-child {
    color: #ec4899;
}

.editor-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #334155;
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}

.editor-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f472b6;
    cursor: pointer;
    border: 2px solid #fff;
}

.mosaic-scroll-area {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #f97316 rgba(30, 39, 56, 0.5);
}

.mosaic-scroll-area::-webkit-scrollbar {
    height: 4px !important;
}

.mosaic-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #f43f5e, #f97316) !important;
    border-radius: 99px !important;
}

.mosaic-grid {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 4px;
}

.mosaic-item {
    min-width: 76px;
    width: 76px;
    background: #101522;
    border: 1px solid #1e2738;
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mosaic-item:hover {
    border-color: #334155;
}

.mosaic-item.active {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.05);
}

.mosaic-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #1e293b;
    overflow: hidden;
}

.mosaic-item span {
    font-size: 10px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
