/* header — область домена (выделено из main.css при рефакторинге R5). */

/* Header model pill: текущая модель + recent-5 + «Настроить…». */
.model-pill {
    position: relative;
}

.model-pill__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    max-width: 220px;
    transition: border-color 0.15s, background 0.15s;
}

.model-pill__btn:hover {
    border-color: var(--accent);
}

.model-pill__btn--active {
    border-color: var(--accent);
}

.model-pill__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.model-pill__chevron {
    font-size: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.model-pill__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    max-width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.model-pill__empty {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    cursor: default;
}

.model-pill__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: background 0.15s;
}

.model-pill__item:hover {
    background: var(--hover-bg);
}

.model-pill__item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.model-pill__item-check {
    color: var(--accent);
    flex-shrink: 0;
}

.model-pill__item--current {
    color: var(--accent);
}

.model-pill__configure {
    display: block;
    width: 100%;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
}

.model-pill__configure:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Logout Button */
.logout-btn {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.logout-btn:hover {
    transform: scale(1.1);
    background: var(--hover-bg);
}

.logout-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
    color: var(--text-primary);
}

/* Settings Button */
.settings-btn {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.settings-btn:hover {
    transform: scale(1.1);
    background: var(--hover-bg);
}

.settings-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
    color: var(--text-primary);
}

