/* HTML Entity Encoder — html-entity-encoder.css */
.html-entity-section {
    --tool-accent: #6366F1;
    --tool-accent-rgb: 99, 102, 241;
}

.he-mode-toggle {
    display: flex;
    gap: 4px;
    background: #F1F5F9;
    border-radius: 8px;
    padding: 4px;
}

.he-mode-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.he-mode-btn:hover {
    color: var(--tool-accent);
    background: #fff;
}

.he-mode-btn--active {
    background: #fff;
    color: var(--tool-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.he-swap-btn {
    background: #fff;
    border: 1.5px solid rgba(100, 116, 139, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.he-swap-btn:hover {
    background: rgba(var(--tool-accent-rgb), 0.08);
    border-color: var(--tool-accent);
    color: var(--tool-accent);
}