/* 颜色工具通用样式 */
.ct-pad-wrap {
    position: relative;
    display: inline-block;
}

.ct-pad {
    display: block;
    cursor: crosshair;
    border: 1px solid #d2d6de;
    border-radius: 4px;
    touch-action: none;
}

.ct-hue {
    display: block;
    cursor: pointer;
    border-radius: 4px;
    touch-action: none;
}

.ct-preview {
    width: 100%;
    height: 72px;
    border: 1px solid #d2d6de;
    border-radius: 4px;
}

.ct-val-row .input-group-text {
    min-width: 46px;
    justify-content: center;
}

.ct-swatch {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .15);
    cursor: pointer;
    display: inline-block;
    flex: 0 0 auto;
}

.ct-swatch-sm {
    width: 22px;
    height: 22px;
}

.ct-his-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ct-empty {
    color: #999;
    font-size: 13px;
}

/* 图片取色 */
.ct-drop {
    border: 2px dashed #b0b7c0;
    border-radius: 6px;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    text-align: center;
    padding: 32px 16px;
    transition: all .2s;
}

.ct-drop.dragover {
    border-color: #007bff;
    background: #e7f1ff;
    color: #007bff;
}

.ct-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 1px solid #d2d6de;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.ct-img-wrap canvas {
    max-width: 100%;
    cursor: crosshair;
}

.ct-zoom {
    position: absolute;
    border: 1px solid #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .5);
    border-radius: 4px;
    pointer-events: none;
    display: none;
    z-index: 10;
}

.ct-zoom-cross {
    position: absolute;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
}

.ct-coord {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
}

/* 渐变 */
.ct-chip {
    display: inline-block;
    padding: 4px 14px;
    margin: 2px 4px 6px 0;
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

.ct-chip.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.ct-grad-bar {
    height: 96px;
    border-radius: 4px;
    cursor: pointer;
    background-size: cover;
}

.ct-grad-name {
    font-weight: bold;
    font-size: 14px;
}

.ct-code-tip {
    font-family: Consolas, Menlo, monospace;
    font-size: 11px;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-card-cursor {
    cursor: pointer;
}

/* 配色 */
.ct-scheme-bar {
    display: flex;
    height: 46px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.ct-scheme-bar span {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, .25);
}

.ct-scheme-bar span:last-child {
    border-right: none;
}

.ct-scheme-card:hover {
    box-shadow: 0 0 6px rgba(0, 0, 0, .12);
}

.ct-count {
    font-size: 13px;
    color: #6c757d;
}
