.tool-page { padding-top: var(--space-6); padding-bottom: var(--space-12); }
#controls { margin-top: var(--space-6); }
.canvas-wrapper {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    margin: var(--space-4) 0;
    min-height: 300px;
}
#pickerCanvas {
    max-width: 100%;
    max-height: 500px;
    cursor: crosshair;
    display: block;
    border-radius: var(--radius);
}

.color-display {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-4);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin: var(--space-4) 0;
    align-items: center;
    flex-wrap: wrap;
}
.color-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}
.color-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}
.value-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
}
.value-row .label {
    font-weight: 600;
    min-width: 40px;
    color: var(--color-text-muted);
}
.value-row .value {
    font-family: var(--font-mono, monospace);
    font-weight: 500;
    min-width: 100px;
}
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.copy-btn:hover {
    background: var(--color-primary-light);
}
.copy-btn.copied {
    background: var(--color-success);
    color: white;
}

.history-section {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.history-section h4 {
    margin-bottom: var(--space-2);
    color: var(--color-text);
}
.history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.history-item {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.2s;
}
.history-item:hover {
    transform: scale(1.1);
}
.history-item .tooltip {
    display: none;
}
@media (max-width: 768px) {
    .canvas-wrapper { min-height: 200px; }
    #pickerCanvas { max-height: 300px; }
    .color-display { flex-direction: column; align-items: stretch; }
    .color-preview { width: 100%; height: 60px; }
}