
/* Color Harmony Panel */
.anp-hm-panel {
    position: fixed;
    z-index: 99999;
    background: #1e1e24;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.24);
    width: 260px;
    padding: 10px 12px 14px;
    display: none;
    direction: rtl;
}
.anp-hm-panel.is-open { display: block; }
.anp-hm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.anp-hm-title {
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
}
.anp-hm-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.anp-hm-close:hover { color: #fff; }
.anp-hm-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}
.anp-hm-type-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #aaa;
    font-size: 9px;
    padding: 4px 2px;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: all 0.15s;
}
.anp-hm-type-btn:hover {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.3);
    color: #fff;
}
.anp-hm-type-btn.active {
    background: rgba(34,197,94,0.2);
    border-color: #22c55e;
    color: #22c55e;
    font-weight: 700;
}
.anp-hm-type-icon {
    display: block;
    font-size: 14px;
    margin-bottom: 1px;
}
.anp-hm-hue-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.anp-hm-hue-label {
    font-size: 9px;
    color: #888;
    white-space: nowrap;
}
.anp-hm-hue-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
    outline: none;
    cursor: pointer;
}
.anp-hm-hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.4);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
    cursor: pointer;
}
.anp-hm-hue-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.4);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
    cursor: pointer;
}
.anp-hm-hue-val {
    font-size: 9px;
    color: #aaa;
    min-width: 28px;
    text-align: center;
    font-family: monospace;
}
.anp-hm-palette {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 4px;
}
.anp-hm-swatch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.12s;
}
.anp-hm-swatch-wrap:hover { transform: translateY(-2px); }
.anp-hm-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.15s;
}
.anp-hm-swatch-wrap:hover .anp-hm-swatch {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.anp-hm-label {
    font-size: 7px;
    color: #888;
    font-family: monospace;
    direction: ltr;
}
.anp-hm-indicators {
    position: relative;
    height: 6px;
    margin-top: 4px;
}
