/* Диалог подтверждения бейджа (вход / отмены). */

.bc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.bc-overlay.bc-show {
    opacity: 1;
    pointer-events: auto;
}

.bc-dialog {
    width: min(520px, 96vw);
    max-height: 86vh;
    overflow: auto;
    background: var(--sa-bg, #fff);
    color: var(--sa-text, #1f2933);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
    padding: 20px 22px 16px;
}

.bc-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bc-who {
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.bc-list-label {
    font-size: 13px;
    opacity: .75;
    margin-bottom: 8px;
}

.bc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--sa-line, #d5dbe1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
}
.bc-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bc-hint {
    font-size: 13px;
    color: var(--sa-err, #c0392b);
    margin-bottom: 10px;
}

.bc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.bc-btn {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--sa-line, #d5dbe1);
    background: var(--sa-bg, #fff);
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.bc-btn-primary {
    background: var(--sa-ok, #1a73e8);
    border-color: var(--sa-ok, #1a73e8);
    color: #fff;
}
.bc-btn-ok {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}
.bc-btn-ghost {
    background: transparent;
}

body.terminal-body .bc-dialog {
    background: var(--t-panel, #1e2430);
    color: var(--t-text, #eef2f7);
    width: min(720px, 94vw);
}
body.terminal-body .bc-btn {
    min-height: 56px;
    font-size: 1rem;
}
body.terminal-body .bc-check {
    min-height: 52px;
    align-items: center;
}
