
#cpg-palette-generator {
    display: flex;
    width: 100%;
    min-height: 180px;
    gap: 0.5rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 30px;
}
.cpg-color {
    flex: 1;
    position: relative;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: transform 0.1s;
    cursor: pointer;
    min-width: 130px;
    max-width: 240px;
    margin: 0 6px;
    overflow: hidden;
}
.cpg-color:hover { transform: scale(1.04); }
.cpg-color-content {
    width: 100%;
    text-align: center;
    padding: 14px 0 10px 0;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(2px);
}
.cpg-color-hex {
    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: 2px;
}
.cpg-color-name {
    font-size: 0.97rem;
    margin-bottom: 6px;
}
.cpg-color-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}
.cpg-color:hover .cpg-color-actions { opacity: 1; }
.cpg-color-actions button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 7px;
    transition: background 0.13s;
}
.cpg-color-actions button:hover {
    background: rgba(255,255,255,0.23);
}
.cpg-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(22,22,25,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
}
.cpg-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 540px;
    min-width: 320px;
    padding: 30px;
    box-shadow: 0 7px 36px 0 rgba(0,0,0,0.13);
    position: relative;
}
.cpg-modal-close {
    position: absolute; top: 12px; right: 18px;
    font-size: 2rem; font-weight: bold;
    cursor: pointer;
}
.cpg-modal-body {
    margin-top: 18px;
}
.cpg-shades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px,1fr));
    gap: 12px;
}
.cpg-shade {
    border-radius: 7px;
    padding: 18px 0 6px 0;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
