.bwc-brand-logo .brand-img {
    overflow: hidden;
    border: 1px solid var(--bs-theme);
    background: rgba(var(--bs-theme-rgb), .1);
}

.bwc-brand-logo .brand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bwc-brand-logo .brand-text span {
    color: var(--bs-theme);
    font-size: .72em;
    letter-spacing: .08em;
}

.bwc-login-logo {
    width: min(320px, 100%);
    height: auto;
}

.login-content-wide {
    width: min(760px, calc(100vw - 32px)) !important;
}

.bwc-profile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-theme-rgb), .08);
}

.bwc-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bwc-profile-initials {
    color: var(--bs-theme);
    font-size: 54px;
    font-weight: 800;
}

.mission-metric {
    min-height: 86px;
    padding: 14px;
    border: 1px solid rgba(var(--bs-theme-rgb), .25);
    background: rgba(var(--bs-theme-rgb), .055);
}

.mission-metric-label {
    margin-bottom: 8px;
    color: rgba(var(--bs-inverse-rgb), .55);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.mission-metric-value {
    color: var(--bs-inverse);
    font-size: 16px;
    font-weight: 700;
}

.mission-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(var(--bs-theme-rgb), .35);
    color: var(--bs-theme);
    background: rgba(var(--bs-theme-rgb), .08);
    font-size: 22px;
}

.mission-avatar-sm {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
}

.bwc-contact-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(var(--bs-theme-rgb), .45);
    color: var(--bs-theme);
    background: rgba(var(--bs-theme-rgb), .1);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
}

img.bwc-contact-avatar {
    padding: 0;
    object-fit: cover;
}

.bwc-contact-avatar-lg {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 18px;
}

.bwc-contact-card .min-w-0 {
    min-width: 0;
}

.bwc-contact-profile {
    display: -webkit-box;
    min-height: 4.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bwc-contacts-table th {
    color: rgba(var(--bs-inverse-rgb), .55);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.bwc-contacts-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.bwc-contacts-table .min-w-0 {
    min-width: 0;
}

.bwc-contact-availability {
    max-width: 360px;
    font-size: 12px;
    line-height: 1.35;
}

.bwc-mailbox-card {
    min-height: calc(100vh - 125px);
}

.bwc-mailbox-card .mailbox,
.bwc-mailbox-card .mailbox-body {
    min-height: calc(100vh - 180px);
}

.bwc-mailbox-card .mailbox-sidebar {
    width: min(460px, 42vw);
}

.bwc-mailbox-card .mailbox-checkbox {
    color: var(--bs-theme);
    font-size: 16px;
}

.bwc-mailbox-card .mailbox-list-item-link,
.bwc-mailbox-list .mailbox-list-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bwc-mailbox-card .mailbox-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bwc-email-body {
    font-size: 1rem;
    line-height: 1.65;
}

.bwc-email-body a {
    color: var(--bs-theme);
    font-weight: 700;
}

.text-opacity-85 {
    --bs-text-opacity: .85;
}

.bwc-hud-calendar {
    min-height: calc(100vh - 170px);
}

.bwc-hud-calendar .calendar-body {
    min-height: 720px;
}

.bwc-hud-calendar .calendar-sidebar {
    min-height: 720px;
}

.bwc-hud-calendar .fc {
    height: 100%;
    color: var(--bs-inverse);
}

.bwc-hud-calendar .fc-toolbar-title {
    color: var(--bs-inverse);
    font-size: 18px;
    font-weight: 700;
}

.bwc-hud-calendar .fc-button {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.bwc-hud-calendar .fc-daygrid-day-number,
.bwc-hud-calendar .fc-col-header-cell-cushion {
    color: rgba(var(--bs-inverse-rgb), .8);
    text-decoration: none;
}

.bwc-hud-calendar .fc-event {
    cursor: pointer;
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
}

.bwc-hud-calendar .fc-timegrid-event {
    padding: 3px 5px;
}

.bwc-agenda-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
}

.bwc-agenda-item .fc-event-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px;
    white-space: normal;
}

.bwc-agenda-item .fa-circle {
    margin-top: 6px;
    flex: 0 0 auto;
}

.bwc-agenda-copy {
    min-width: 0;
}

.bwc-agenda-title {
    display: block;
    overflow: hidden;
    color: var(--bs-inverse);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bwc-agenda-meta {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: rgba(var(--bs-inverse-rgb), .5);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bwc-agenda-item:hover .bwc-agenda-title {
    color: var(--bs-theme);
}

.bwc-ops-chat-card {
    min-height: 640px;
    overflow: hidden;
}

.bwc-ops-sidebar {
    overflow: hidden;
}

.bwc-ops-sidebar,
.bwc-ops-main {
    min-height: 640px;
}

.bwc-ops-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bwc-ops-channel-link {
    min-height: 72px;
    padding: 1rem 1.25rem;
    overflow: hidden;
}

.bwc-ops-channel-link .flex-grow-1 {
    overflow: hidden;
}

.bwc-ops-channel-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bwc-ops-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(var(--bs-theme-rgb), .15);
}

.bwc-ops-feed {
    flex: 1 1 auto;
    padding: .5rem 1.25rem 1rem;
    overflow: auto;
}

.bwc-ops-message {
    display: flex;
    gap: .875rem;
    padding: 1.125rem 0;
    border-top: 1px solid rgba(var(--bs-theme-rgb), .12);
}

.bwc-ops-message:first-child {
    border-top: 0;
}

.bwc-ops-avatar {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--bs-theme-rgb), .45);
    background: rgba(var(--bs-theme-rgb), .12);
    color: var(--bs-theme);
    font-size: 12px;
    font-weight: 800;
}

.bwc-ops-message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

.bwc-ops-message-meta {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: .35rem .6rem;
    min-width: 0;
}

.bwc-ops-body {
    color: rgba(var(--bs-inverse-rgb), .82);
    font-size: .95rem;
    line-height: 1.55;
    max-width: 92ch;
}

.bwc-ops-body a {
    color: var(--bs-theme);
    font-weight: 700;
}

.bwc-signal-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
}

.bwc-ops-compose-disabled {
    flex: 0 0 auto;
    margin: 0 1.25rem 1.25rem;
    padding: .875rem 1rem;
    border: 1px solid rgba(var(--bs-theme-rgb), .25);
    background: rgba(0, 0, 0, .1);
    color: rgba(var(--bs-inverse-rgb), .55);
}

.btn-group > form {
    display: inline-flex;
}

.panel {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(var(--bs-theme-rgb), .25);
    background: var(--bs-card-bg);
}

.panel h1,
.panel h2 {
    color: var(--bs-inverse);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.wide {
    grid-column: 1 / -1;
}

.message {
    padding: .875rem 0;
    border-top: 1px solid rgba(var(--bs-theme-rgb), .15);
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: .75rem;
    align-items: end;
}

.response-form {
    display: grid;
    gap: .75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: .5rem .75rem;
    border: 1px solid var(--bs-theme);
    color: var(--bs-theme);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .grid,
    .inline-form {
        grid-template-columns: 1fr;
    }

    .bwc-hud-calendar {
        min-height: 0;
    }

    .bwc-mailbox-card,
    .bwc-mailbox-card .mailbox,
    .bwc-mailbox-card .mailbox-body {
        min-height: 0;
    }

    .bwc-mailbox-card .mailbox-sidebar {
        width: 100%;
    }

    .bwc-contact-availability {
        min-width: 260px;
    }

    .bwc-hud-calendar .calendar-body,
    .bwc-hud-calendar .calendar-sidebar {
        min-height: 560px;
    }

    .bwc-ops-chat-card,
    .bwc-ops-sidebar,
    .bwc-ops-main {
        min-height: 0;
    }

    .bwc-ops-header {
        display: block;
    }

    .bwc-ops-message-header {
        display: block;
    }

    .bwc-ops-message-header .badge {
        margin-top: .35rem;
    }
}
