/* ── Widget buttons in titlebar ── */
.container {
    display: flex;
    align-items: center;
    gap: 2px;
    pointer-events: auto;
    -webkit-app-region: no-drag;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: default;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color var(--duration-fast), background var(--duration-fast);
    padding: 0;
    flex-shrink: 0;
}

.btn:hover {
    color: var(--text-light);
    background: var(--overlay-light);
}

.active {
    color: var(--text);
    background: var(--overlay-light);
}

.dropdown {
    min-width: 130px;
    max-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--overlay-medium);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px var(--shadow);
    padding: 4px;
    animation: hana-fade-up var(--duration-fast) var(--ease-out);
    -webkit-app-region: no-drag;
}

.dropdownItem {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-light);
    font-family: var(--font-ui);
    font-size: 0.76rem;
    cursor: default;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--duration-instant), color var(--duration-instant);
}

.dropdownItem:hover {
    background: var(--overlay-light);
    color: var(--text);
}

.dropdownRow {
    display: flex;
    align-items: center;
    gap: 2px;
}

.dropdownRow .dropdownItem {
    flex: 1;
    min-width: 0;
}

.pinBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-muted);
    cursor: default;
    opacity: 0;
    transition: opacity var(--duration-instant), color var(--duration-instant), background var(--duration-instant);
}

.dropdownRow:hover .pinBtn {
    opacity: 1;
}

.pinBtn:hover {
    color: var(--text);
    background: var(--overlay-light);
}

.divider {
    width: 1px;
    height: 14px;
    background: var(--overlay-medium);
    margin: 0 4px;
    flex-shrink: 0;
}
