/* Cobalt60 — compact admin theme */

:root,
[data-bs-theme='light'] {
    --fc-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fc-font-size: 0.875rem;
    --fc-sidebar-width: 140px;
    --fc-sidebar-collapsed-width: 64px;
    --fc-content-gap: 1em;
    --fc-row-gap: 1em;
    --fc-surface: #ffffff;
    --fc-sidebar-bg: #f1f2f4;
    --fc-bg: #f8f9fa;
    --fc-border: #dee2e6;
    --fc-text: #212529;
    /* Light: cobalt blue */
    --fc-primary: #0047ab;
    --fc-primary-rgb: 0, 71, 171;
    --fc-secondary: #6c757d;
    --fc-success: #198754;
    --fc-warning: #ffc107;
    --fc-danger: #dc3545;
    --fc-info: #0dcaf0;
    --fc-brand-accent: #0047ab;
    --fc-clip-active: #0047ab;
    --fc-action: #0047ab;
    --fc-action-hover: #003a8c;
    --fc-on-action: #ffffff;
    --fc-tab-active-bg: #cbd9ec;
    --fc-table-head-bg: #cbd9ec;
    --fc-radius: 0.375rem;
    --fc-pill-radius: 0.25rem;
    --fc-btn-radius: var(--fc-radius);
    --bs-border-radius: var(--fc-radius);
    --bs-border-radius-sm: var(--fc-radius);
    --bs-border-radius-lg: var(--fc-radius);
    --bs-border-radius-xl: var(--fc-radius);
    --bs-border-radius-xxl: var(--fc-radius);
    --bs-border-radius-pill: 50rem;
}

[data-bs-theme='dark'] {
    /* Dark: former Obsidian palette. */
    --fc-surface: #191b20;
    --fc-sidebar-bg: #0f1115;
    --fc-bg: #111318;
    --fc-border: #353944;
    --fc-text: #e5e7ec;
    --fc-primary: #ffde35;
    --fc-primary-rgb: 255, 222, 53;
    --fc-secondary: #a9aeba;
    --fc-success: #75b798;
    --fc-warning: #ffda6a;
    --fc-danger: #ea868f;
    --fc-info: #6edff6;
    --fc-brand-accent: #ffde35;
    --fc-clip-active: #ffde35;
    --fc-action: #ffde35;
    --fc-action-hover: #ffe566;
    --fc-on-action: #111318;
    --fc-tab-active-bg: #332f12;
    --fc-table-head-bg: var(--fc-tab-active-bg);
}

[data-bs-theme='dark'][data-fc-theme='grey'] {
    /* Grey: retained legacy dark palette; not exposed in theme selectors. */
    --fc-surface: #2b3035;
    --fc-sidebar-bg: #24282c;
    --fc-bg: #212529;
    --fc-border: #495057;
    --fc-text: #dee2e6;
    /* Dark: radiation yellow */
    --fc-primary: #ffde35;
    --fc-primary-rgb: 255, 222, 53;
    --fc-secondary: #adb5bd;
    --fc-success: #75b798;
    --fc-warning: #ffda6a;
    --fc-danger: #ea868f;
    --fc-info: #6edff6;
    --fc-brand-accent: #ffde35;
    --fc-clip-active: #ffde35;
    --fc-action: #ffde35;
    --fc-action-hover: #ffe566;
    --fc-on-action: #212529;
    --fc-tab-active-bg: #49462b;
    --fc-table-head-bg: var(--fc-tab-active-bg);
}

html {
    font-size: var(--fc-font-size);
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--fc-font-family);
    background-color: var(--fc-bg);
    color: var(--fc-text);
    overflow-x: hidden;
    zoom: var(--fc-app-zoom, 1);
}

/*
 * scrollbar-gutter: stable already reserves scrollbar width.
 * Bootstrap modal-open padding-right double-compensates and leaves a blank strip.
 */
body.modal-open {
    padding-right: 0 !important;
}

body.modal-open .modal {
    padding-right: 0 !important;
}

.modal {
    --bs-modal-transition: transform 0.08s ease-out;
    --bs-modal-fade-transform: none;
}

.modal.fade {
    transition: opacity 0.08s linear;
}

.modal.fade .modal-dialog {
    transform: none;
}

.modal-backdrop.fade {
    transition: opacity 0.08s linear;
}

.modal-content {
    background-color: var(--fc-surface);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
}

[data-bs-theme='dark'] .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background-color: var(--fc-surface);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 2rem 4.5rem rgba(0, 0, 0, 0.92);
}

[data-bs-theme='dark'] .modal-backdrop.show {
    opacity: 0.9;
    background-color: #000;
}

/* Vendor Bootstrap build omits width utilities; layout relies on min-w-0. */
.min-w-0 {
    min-width: 0 !important;
}

html.app-document,
.app-body {
    overflow: hidden;
    scrollbar-gutter: auto;
}

.app-shell {
    /* Body zoom scales CSS lengths, including viewport units. */
    height: calc(100vh / var(--fc-app-zoom, 1));
    height: calc(100dvh / var(--fc-app-zoom, 1));
    overflow: hidden;
}

.app-main {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

.app-content {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    overscroll-behavior-y: contain;
}

.sidebar-mobile-open .app-content {
    overflow: hidden;
}

.app-shell > .offcanvas-backdrop {
    /* Cover floating page actions (1040), below the drawer (1045). */
    z-index: 1044;
    width: calc(100vw / var(--fc-app-zoom, 1));
    height: calc(100vh / var(--fc-app-zoom, 1));
    height: calc(100dvh / var(--fc-app-zoom, 1));
}

.app-topbar {
    flex-shrink: 0;
    position: relative;
    z-index: 1020;
}

/*
 * Cursor stability: icon fonts (::before) can steal hit-testing so the cursor
 * flickers between arrow and hand while hovering. Interactive hosts own the
 * cursor; nested icons inherit and do not receive pointer events.
 */
a[href]:not(.disabled):not([aria-disabled='true']),
button:not(:disabled):not(.disabled),
.btn:not(:disabled):not(.disabled),
.btn-icon-action:not(:disabled),
.btn-topbar:not(:disabled),
.fc-add-btn,
.page-link:not(.disabled),
.nav-link:not(.disabled),
.dropdown-item:not(.disabled),
.dropdown-toggle:not(:disabled),
.sidebar-link:not(.sidebar-link-disabled),
.form-check-input:not(:disabled),
.form-select:not(:disabled),
.form-check-label,
label[for],
summary,
[role='button']:not([aria-disabled='true']),
.crm-list-row,
.team-list-row,
.intel-tracker-term-row,
.intel-collection-row,
.intel-sort-th,
.crm-sort-th,
.crm-filter-actions,
.intel-feed-headline-link,
.intel-feed-row[data-feed-preview] {
    cursor: pointer;
}

a[href]:not(.disabled):not([aria-disabled='true']) *,
button:not(:disabled):not(.disabled) *,
.btn:not(:disabled):not(.disabled) *,
.btn-icon-action:not(:disabled) *,
.btn-topbar:not(:disabled) *,
.fc-add-btn *,
.page-link:not(.disabled) *,
.nav-link:not(.disabled) *,
.dropdown-item:not(.disabled) *,
.dropdown-toggle:not(:disabled) *,
.sidebar-link:not(.sidebar-link-disabled) *,
[role='button']:not([aria-disabled='true']) *,
.crm-list-row *,
.team-list-row *,
.intel-feed-headline-link *,
.intel-feed-row[data-feed-preview] *,
.crm-filter-actions * {
    cursor: inherit;
}

.btn .bi,
.btn .fi,
.btn-icon-action .bi,
.btn-topbar .bi,
.fc-add-btn .bi,
.sidebar-link .bi,
.sidebar-link .fi,
.nav-link .bi,
.dropdown-item .bi,
.page-link .bi,
.brand-icon,
[role='button'] .bi,
[role='button'] .fi,
.crm-list-row .bi,
.team-list-row .bi {
    pointer-events: none;
}

button:disabled,
.btn:disabled,
.btn.disabled,
fieldset:disabled .btn,
.disabled,
[aria-disabled='true'],
.sidebar-link-disabled {
    cursor: not-allowed;
}

button:disabled *,
.btn:disabled *,
.btn.disabled *,
.disabled *,
[aria-disabled='true'] * {
    cursor: inherit;
}

/* Text fields keep the I-beam; do not inherit pointer from wrappers */
input[type='text'],
input[type='search'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='url'],
input[type='tel'],
input[type='date'],
input[type='time'],
input[type='datetime-local'],
textarea,
.form-control {
    cursor: text;
}

input[type='checkbox'],
input[type='radio'],
.form-check-input {
    cursor: pointer;
}

h1, .h1 { font-size: 1.5rem; font-weight: 600; }
h2, .h2 { font-size: 1.25rem; font-weight: 600; }
h3, .h3 { font-size: 1.1rem; font-weight: 600; }
h4, .h4 { font-size: 1rem; font-weight: 600; }
h5, .h5 { font-size: 0.95rem; font-weight: 600; }
h6, .h6 { font-size: 0.9rem; font-weight: 600; }

.brand-mark {
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.brand-word,
.brand-short-word {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.2rem;
}

.brand-icon {
    color: var(--fc-brand-accent);
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.brand-icon::before {
    line-height: 1;
}

.brand-cobalt {
    font-weight: 300;
    color: var(--fc-text);
    letter-spacing: -0.006em;
}

.brand-sixty {
    font-weight: 700;
    color: var(--fc-brand-accent);
    letter-spacing: -0.002em;
}

.brand-mark-sm {
    font-size: 1rem;
}

.brand-mark-lg {
    font-size: 1.5rem;
}

.brand-mark-lg .brand-icon {
    font-size: 1.45rem;
}

.brand-short {
    display: none;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    line-height: 1;
}

.brand-short-c {
    font-weight: 300;
    color: var(--fc-text);
    letter-spacing: -0.006em;
}

.brand-short-sixty {
    font-weight: 700;
    color: var(--fc-brand-accent);
    letter-spacing: -0.002em;
}

.ds-brand-short .brand-short {
    display: inline-flex;
}

.ds-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 14rem;
}

.ds-swatch-chip {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
    flex-shrink: 0;
}

.ds-icon-muted {
    font-size: 1rem;
    color: var(--bs-secondary-color);
}

.ds-icon-brand {
    font-size: 1rem;
    color: var(--fc-brand-accent);
}

.ds-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.ds-icon-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    min-width: 9rem;
}

.ds-asset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ds-asset-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 7.5rem;
    max-width: 12rem;
}

.ds-asset-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0.65rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background-color: var(--fc-bg);
}

.ds-asset-preview--dark {
    background-color: #212529;
}

.ds-asset-preview img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ds-asset-favicon img {
    width: auto;
    height: auto;
    image-rendering: auto;
}

.page-header h1,
.page-header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fc-brand-accent);
}

.page-header-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
}

.guest-body {
    background-color: var(--fc-bg);
}

.guest-card {
    background-color: var(--fc-surface);
    border-color: var(--fc-border);
}

.sidebar.app-sidebar {
    width: var(--fc-sidebar-width);
    flex: 0 0 var(--fc-sidebar-width);
    align-self: stretch;
    min-height: 0;
    height: 100%;
    background-color: var(--fc-sidebar-bg);
    transition: none;
    overflow: hidden;
    position: relative;
}

.sidebar-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--fc-sidebar-bg);
}

.sidebar.app-sidebar:not(.sidebar-collapsed) {
    max-width: var(--fc-sidebar-width);
}

.sidebar.app-sidebar:not(.sidebar-collapsed) .brand-full .brand-icon {
    font-size: 1.45rem;
}

.sidebar.app-sidebar.sidebar-collapsed {
    width: var(--fc-sidebar-collapsed-width);
    max-width: var(--fc-sidebar-collapsed-width);
    flex-basis: var(--fc-sidebar-collapsed-width);
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-label,
.sidebar.app-sidebar.sidebar-collapsed .brand-full {
    display: none !important;
}

.sidebar.app-sidebar.sidebar-collapsed .brand-short {
    display: inline-flex;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-brand-link {
    justify-content: center;
    width: 100%;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-nav {
    padding-left: 0;
    padding-right: 0;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-nav-list {
    gap: 0;
    width: 100%;
}

.sidebar.app-sidebar.sidebar-collapsed .nav-item {
    width: 100%;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-link {
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0 !important;
    gap: 0;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-link .sidebar-icon {
    margin: 0;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-link.active {
    border-radius: 0 !important;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-group-toggle .sidebar-group-caret,
.sidebar.app-sidebar.sidebar-collapsed .sidebar-subnav {
    display: none !important;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-group {
    position: relative;
}

.sidebar.app-sidebar.sidebar-collapsed.sidebar-flyout-open {
    z-index: 1040;
    overflow: visible;
}

.sidebar.app-sidebar.sidebar-collapsed.sidebar-flyout-open .sidebar-inner,
.sidebar.app-sidebar.sidebar-collapsed.sidebar-flyout-open .sidebar-nav {
    overflow: visible;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-group.is-flyout > .sidebar-subnav {
    display: flex !important;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 1041;
    width: max-content;
    min-width: 11rem;
    max-width: 16rem;
    margin: 0;
    padding: 0.25rem 0;
    background-color: var(--fc-sidebar-bg);
    border: 1px solid var(--fc-border);
    box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.28);
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-group.is-flyout > .sidebar-subnav .sidebar-label {
    display: inline !important;
}

.sidebar.app-sidebar.sidebar-collapsed .sidebar-group.is-flyout > .sidebar-subnav .sidebar-link {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
}

.sidebar-nav {
    padding: 0.5rem 0 0.5rem 0.2rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

@media (max-width: 767.98px) {
    .sidebar.app-sidebar {
        position: fixed;
        height: calc(100vh / var(--fc-app-zoom, 1));
        height: calc(100dvh / var(--fc-app-zoom, 1));
    }

    .sidebar.app-sidebar:not(.sidebar-collapsed) {
        width: min(20rem, 85%);
        max-width: 85%;
    }

    .sidebar-brand {
        flex-shrink: 0;
        gap: 1rem;
    }

    .sidebar-brand .btn-close {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .sidebar-nav .sidebar-link {
        min-height: 44px;
    }

    .app-topbar {
        flex-wrap: wrap;
    }

    .app-topbar .toolbar-actions {
        margin-left: auto;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .app-topbar .btn-topbar {
        min-width: 36px;
        min-height: 44px;
    }
}

.sidebar-nav-list {
    gap: 0;
    width: 100%;
}

.sidebar-nav .nav-item {
    width: 100%;
}

.sidebar-group-toggle {
    position: relative;
    padding-right: 0.6rem;
}

.sidebar-group-toggle .sidebar-group-caret {
    margin-left: auto;
    width: auto;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.sidebar-group.is-open > .sidebar-group-toggle .sidebar-group-caret {
    transform: rotate(180deg);
}

.sidebar-group-toggle.active-parent {
    background-color: rgba(var(--fc-primary-rgb), 0.1);
    color: var(--fc-brand-accent);
}

.sidebar-group-toggle.active-parent .sidebar-icon {
    color: var(--fc-brand-accent);
}

.sidebar-subnav {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0.1rem 0 0.2rem 0.7rem;
    list-style: none;
}

.sidebar-subnav.is-open {
    display: flex;
}

.sidebar-link.sidebar-sublink {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 1rem;
    font-size: 12px;
}

.sidebar-sublink .sidebar-icon {
    font-size: 0.85rem;
}

.sidebar-link .sidebar-icon.sidebar-icon--clip {
    font-size: 1.2rem;
    width: 1.2rem;
    line-height: 1;
}

.sidebar-sublink .sidebar-icon.sidebar-icon--clip {
    font-size: 1.15rem;
}

.sidebar-brand {
    min-height: 42px;
    padding: 0.5rem 0.65rem 0.5rem 1rem;
    border-bottom: 0;
}

.sidebar-brand .brand-cobalt {
    font-weight: 400;
}

.sidebar-brand-link {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.9rem;
    font-size: 13px;
    width: 100%;
    min-width: 0;
    text-align: left;
    border: 0;
    border-radius: 0 !important;
    color: var(--fc-text);
}

.sidebar-link .sidebar-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link .sidebar-icon {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    color: var(--fc-text);
}

.sidebar-link:hover,
.sidebar-link:focus {
    background-color: rgba(var(--fc-primary-rgb), 0.1);
    color: var(--fc-brand-accent);
    border-radius: 0 !important;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link:focus .sidebar-icon {
    color: var(--fc-brand-accent);
}

.sidebar-link.active {
    background-color: rgba(var(--fc-primary-rgb), 0.18);
    color: var(--fc-brand-accent);
    font-weight: 500;
    border-radius: 0 !important;
}

.sidebar-link.active .sidebar-icon {
    color: var(--fc-brand-accent);
}

.sidebar-link-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

.sidebar-link-disabled .sidebar-icon {
    color: var(--fc-secondary);
}

.app-topbar {
    background-color: var(--fc-surface);
    min-height: 42px;
}

.app-topbar .btn-topbar {
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    padding: 0.2rem 0.35rem;
    line-height: 1;
}

.app-topbar .btn-topbar:hover,
.app-topbar .btn-topbar:focus,
.app-topbar .btn-topbar.show {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--bs-secondary-color);
    box-shadow: none;
}

.app-topbar .btn-topbar i {
    font-size: 1rem;
}

.app-topbar #themeToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
}

.theme-action-icon {
    width: 1rem;
    text-align: center;
}

.theme-action-icon--dark {
    display: none;
}

[data-bs-theme='dark'] .theme-action-icon--light {
    display: none;
}

[data-bs-theme='dark'] .theme-action-icon--dark {
    display: inline-block;
}

.app-topbar .btn-topbar .bi-keyboard {
    font-size: 1.3rem;
}

.app-topbar .btn-topbar .topbar-user-icon,
.app-topbar .btn-topbar:hover .topbar-user-icon,
.app-topbar .btn-topbar:focus .topbar-user-icon,
.app-topbar .btn-topbar.show .topbar-user-icon {
    font-size: 1.2rem;
    color: var(--fc-brand-accent);
}

[data-bs-theme='dark'] .app-topbar .btn-topbar:hover,
[data-bs-theme='dark'] .app-topbar .btn-topbar:focus,
[data-bs-theme='dark'] .app-topbar .btn-topbar.show {
    background-color: rgba(255, 255, 255, 0.1);
}

.toolbar-actions {
    gap: 1em;
}

.app-content .row {
    --bs-gutter-x: 1em;
    --bs-gutter-y: 1em;
}

.app-content > .row > [class*='col'] {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.app-content > .row > [class*='col'] > .card {
    flex: 1 1 auto;
    width: 100%;
}

.app-content {
    background-color: var(--fc-bg);
}

.app-content > .card,
.app-content > .row,
.app-content > .alert + .card,
.app-content > .alert + .row {
    margin-bottom: var(--fc-content-gap);
}

.app-content > *:last-child {
    margin-bottom: 0;
}

.card {
    background-color: var(--fc-surface);
    border-color: var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: none;
}

.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card-body-stretch {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5em;
    padding-top: 1em;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.35rem;
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    line-height: 1;
    cursor: pointer;
}

.btn-icon-action:hover,
.btn-icon-action:focus {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--bs-secondary-color);
    box-shadow: none;
}

.btn-icon-action[aria-pressed="true"] {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--fc-brand-accent);
}

[data-bs-theme='dark'] .btn-icon-action:hover,
[data-bs-theme='dark'] .btn-icon-action:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme='dark'] .btn-icon-action[aria-pressed="true"] {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-icon-action .bi {
    font-size: 1rem;
}

.zoom-popup {
    position: fixed;
    top: 3.25rem;
    right: 1rem;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem 0.35rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fc-text);
    background-color: var(--fc-surface);
    border: 1px solid var(--fc-border);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.25rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.zoom-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.zoom-popup-label {
    min-width: 2.5rem;
}

.zoom-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.25rem;
    border: 0;
    background: transparent;
    color: var(--fc-secondary);
    line-height: 1;
}

.zoom-popup-close:hover,
.zoom-popup-close:focus {
    color: var(--fc-brand-accent);
}

[data-bs-theme='dark'] .alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.alert.alert-dismissible .btn-close {
    padding: 0.55rem;
}

.border-dashed {
    border-style: dashed !important;
}

.alert-sm {
    font-size: 0.8125rem;
}

.table {
    --bs-table-bg: var(--fc-bg);
    --bs-table-border-color: var(--fc-border);
    font-size: calc(var(--fc-font-size) - 1pt);
    background-color: var(--fc-bg);
    border: 0 !important;
}

.table > :not(caption) > * > * {
    padding: 0.35rem 0.5rem;
    border-width: 0 0 1px !important;
    border-color: var(--fc-border) !important;
    background-color: transparent;
}

.table > thead > tr {
    background-color: var(--fc-table-head-bg);
}

.table > thead > tr > th,
.table > thead > tr > td {
    background-color: var(--fc-table-head-bg) !important;
    color: var(--fc-brand-accent);
    font-weight: 600;
}

.client-contacts-editor-wrap.table-responsive {
    overflow-x: auto;
}

.client-contacts-editor {
    width: 100%;
    table-layout: fixed;
}

.client-contacts-editor th,
.client-contacts-editor td {
    min-width: 0;
}

.client-contacts-editor .form-control {
    width: 100%;
    min-width: 0;
}

.client-contacts-editor .client-contact-remove {
    width: 2.5rem;
}

.table > tbody > tr.table-active > * {
    background-color: rgba(var(--fc-primary-rgb), 0.28) !important;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(var(--fc-primary-rgb), 0.16) !important;
}

.table > tbody > tr:last-child > * {
    border-bottom-width: 0 !important;
}

.table-responsive,
.intel-notes-table-wrap,
.intel-correlated-list,
.intel-list-wrap,
.crm-list-scroll,
.team-members-table-scroll,
.card-body > .table,
.card-body > .table-responsive {
    border: 0;
    border-radius: var(--fc-radius);
    overflow: hidden;
    background-color: var(--fc-bg);
}

.table .small,
.table .badge:not(.fc-pill) {
    font-size: inherit;
}

.table .badge.fc-pill {
    font-size: 0.68rem;
}

.dropdown-menu-sm {
    font-size: 1rem;
}

.dropdown-menu-sm .dropdown-item {
    font-size: inherit;
}

.dropdown-menu-sm .dropdown-header {
    font-size: inherit;
    font-weight: 600;
}

.dropdown-user-menu {
    min-width: 14.5rem;
}

.dropdown-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-user-menu .dropdown-item .bi {
    width: 1rem;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.75;
}

.dropdown-user-menu .dropdown-item:hover .bi,
.dropdown-user-menu .dropdown-item:focus .bi,
.dropdown-user-menu .dropdown-item.active .bi,
.dropdown-user-menu .dropdown-item:active .bi {
    opacity: 1;
}

.dropdown-user-meta {
    font-size: inherit;
    line-height: 1.35;
}

/* Unified corner radius across interactive surfaces */
.btn,
.badge,
.card,
.guest-card,
.team-checkbox-list,
.nav-tabs .nav-link,
.alert,
.dropdown-menu,
.form-control,
.form-select,
.input-group-text,
.modal-content,
.list-group-item,
.pagination .page-link,
.popover,
.offcanvas,
.toast {
    border-radius: var(--fc-radius) !important;
}

.nav-tabs .nav-link {
    border-top-left-radius: var(--fc-radius) !important;
    border-top-right-radius: var(--fc-radius) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-width: 0 0 1px !important;
    border-style: solid !important;
    border-color: transparent !important;
}

.nav-tabs .nav-link.active,
.team-tabs .nav-link.active,
.intel-tabs .nav-link.active,
.client-tabs .nav-link.active {
    background-color: var(--fc-tab-active-bg) !important;
    border-bottom: 1px solid var(--fc-brand-accent) !important;
    border-bottom-color: var(--fc-brand-accent) !important;
}

.card,
.card.shadow-sm {
    box-shadow: none !important;
}

/* Brand accent as the primary action color */
.btn-primary {
    --bs-btn-color: var(--fc-on-action);
    --bs-btn-bg: var(--fc-action);
    --bs-btn-border-color: var(--fc-action);
    --bs-btn-hover-color: var(--fc-on-action);
    --bs-btn-hover-bg: var(--fc-action-hover);
    --bs-btn-hover-border-color: var(--fc-action-hover);
    --bs-btn-focus-shadow-rgb: var(--fc-primary-rgb);
    --bs-btn-active-color: var(--fc-on-action);
    --bs-btn-active-bg: var(--fc-action);
    --bs-btn-active-border-color: var(--fc-action);
    --bs-btn-disabled-color: var(--fc-on-action);
    --bs-btn-disabled-bg: var(--fc-action);
    --bs-btn-disabled-border-color: var(--fc-action);
}

.btn-outline-primary {
    --bs-btn-color: var(--fc-action);
    --bs-btn-border-color: var(--fc-action);
    --bs-btn-hover-color: var(--fc-on-action);
    --bs-btn-hover-bg: var(--fc-action);
    --bs-btn-hover-border-color: var(--fc-action);
    --bs-btn-focus-shadow-rgb: var(--fc-primary-rgb);
    --bs-btn-active-color: var(--fc-on-action);
    --bs-btn-active-bg: var(--fc-action);
    --bs-btn-active-border-color: var(--fc-action);
    --bs-btn-disabled-color: var(--fc-action);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--fc-action);
}

/* Card / toolbar actions: right-aligned, positive action last */
.fc-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
}

.text-bg-primary {
    background-color: RGB(var(--bs-primary-rgb)) !important;
    color: var(--fc-on-action) !important;
}

.ti-origin-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--bs-primary);
    border-radius: var(--fc-pill-radius, 0.25rem);
    background: transparent;
    color: var(--bs-primary);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.intel-recon-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.intel-recon-pagination .page-link,
.intel-recon-pagination .page-item + .page-item .page-link {
    margin-left: 0;
}

.pagination .page-item.active .page-link {
    background-color: var(--fc-action);
    border-color: var(--fc-action);
    color: var(--fc-on-action);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--fc-action);
    color: var(--fc-on-action);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fc-action);
    box-shadow: 0 0 0 0.25rem rgba(var(--fc-primary-rgb), 0.25);
}

input::placeholder,
textarea::placeholder {
    color: var(--bs-secondary-color) !important;
    font-style: italic;
    opacity: 0.45 !important;
}

textarea[data-intel-autogrow] {
    overflow-y: hidden;
    resize: none;
}

.form-check-input:checked {
    background-color: var(--fc-action);
    border-color: var(--fc-action);
}

.form-check-input:focus {
    border-color: var(--fc-action);
    box-shadow: 0 0 0 0.25rem rgba(var(--fc-primary-rgb), 0.25);
}

/* Team module */
.team-toolbar {
    border-bottom: 1px solid var(--fc-border);
    min-height: 2.5rem;
}

.team-tabs {
    border-bottom: 0;
}

.team-tabs .nav-link {
    color: var(--fc-text);
    border-color: transparent;
}

.team-tabs .nav-link:hover,
.team-tabs .nav-link:focus {
    background-color: rgba(var(--fc-primary-rgb), 0.1);
    border-color: transparent;
    color: var(--fc-brand-accent);
}

.team-tabs .nav-link.active {
    background-color: var(--fc-tab-active-bg);
    border-color: transparent transparent var(--fc-brand-accent);
    color: var(--fc-brand-accent);
    font-weight: 500;
}

.team-member-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.team-member-filter {
    flex: 1 1 0;
    min-width: 0;
}

.team-member-filter-search {
    flex: 1.6 1 0;
}

.team-member-filter-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
    white-space: nowrap;
}

.team-members-layout.is-editing .team-members-table-card,
.team-members-layout.is-editing #teamDetailPanel {
    min-height: 0;
}

.team-members-layout.is-editing .team-members-table-body {
    max-height: min(72vh, 42rem);
    min-height: 12rem;
}

.team-members-table-scroll {
    overflow-y: auto;
    min-height: 0;
}

.team-list-row {
    cursor: pointer;
    min-height: 2.75rem;
}

.team-list-row:focus-visible {
    outline: 2px solid var(--fc-primary);
    outline-offset: -2px;
}

.team-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.team-flag-img {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
    vertical-align: middle;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.team-panel-close {
    color: var(--fc-secondary);
    line-height: 1;
    flex-shrink: 0;
}

.team-panel-close .bi,
.crm-panel-close .bi {
    font-size: 1.2rem;
}

.team-panel-close:hover,
.team-panel-close:focus {
    color: var(--fc-brand-accent);
}

.team-org-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.3rem;
    line-height: 1;
    color: #fff;
    vertical-align: middle;
    min-height: 1.1rem;
}

.team-org-flag-nato {
    background: #003087;
    min-width: 1.85rem;
}

.team-org-flag-resteurope {
    background: #4a6fa5;
    min-width: 1.85rem;
}

.team-concept-badge {
    font-size: 0.65rem;
    font-weight: 500;
}

.team-checkbox-list {
    max-height: 12rem;
    overflow-y: auto;
    background-color: var(--fc-bg);
    border-radius: var(--fc-radius);
}

.team-chip {
    display: inline-flex;
    align-items: center;
}

.team-leave-list .list-group-item {
    background: transparent;
    border-color: var(--fc-border);
}

.crm-notes-list .list-group-item {
    background: transparent;
    border-color: var(--fc-border);
}

.crm-documents-list .list-group-item {
    background: transparent;
    border-color: var(--fc-border);
}

.team-members-layout {
    --bs-gutter-x: 0.375rem;
}

.team-split {
    --bs-gutter-x: 0.375rem;
}

.team-members-layout .card {
    min-height: 0;
}

/* Clients and deals */
.crm-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.crm-filters-wrap {
    flex-wrap: wrap;
}

.fc-filter-title {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.crm-list-body .btn-topbar {
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    padding: 0.2rem 0.35rem;
    line-height: 1;
}

.crm-list-body .btn-topbar.fc-import-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.crm-list-body .btn-topbar:hover,
.crm-list-body .btn-topbar:focus {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--bs-secondary-color);
    box-shadow: none;
}

.crm-list-body .btn-topbar i {
    font-size: 1rem;
}

[data-bs-theme='dark'] .crm-list-body .btn-topbar:hover,
[data-bs-theme='dark'] .crm-list-body .btn-topbar:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.crm-bulk-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.crm-check-col {
    width: 2rem;
    vertical-align: middle !important;
}

.crm-list-table .crm-check-col .form-check-input {
    margin: 0;
    cursor: pointer;
}

.fc-add-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--fc-action);
    color: var(--fc-on-action);
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.18);
}

.fc-add-btn .bi {
    font-size: 1.5rem;
    line-height: 1;
}

.fc-add-btn:hover,
.fc-add-btn:focus {
    color: var(--fc-on-action);
    background-color: var(--fc-action-hover);
}

.fc-add-btn:focus-visible {
    outline: 2px solid var(--fc-action);
    outline-offset: 2px;
}

.fc-bug-btn {
    border: 0;
    padding: 0;
    background-color: #dc3545;
    color: #fff;
}

.fc-bug-btn:hover,
.fc-bug-btn:focus {
    background-color: #b02a37;
    color: #fff;
}

.fc-bug-btn:focus-visible {
    outline-color: #dc3545;
}

body:has(.fc-add-btn:not(.fc-bug-btn):not([hidden]):not(.d-none)) .fc-bug-btn {
    right: 5rem;
}

.bug-image-dropzone.is-dragging {
    background: var(--bs-tertiary-bg);
    outline: 2px dashed var(--bs-danger);
}

.bug-image-preview {
    width: 8rem;
}

.bug-image-preview img {
    width: 100%;
    height: 6rem;
    object-fit: contain;
    background: var(--bs-tertiary-bg);
}

#bugAdmin .bug-list-table {
    width: max-content;
    min-width: 0;
    max-width: none;
    table-layout: fixed;
}

.bug-list-table > thead > tr > th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.bug-list-table .form-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 22px;
    min-height: 22px;
    padding: 0 1.5rem 0 .4rem;
    font-size: inherit;
    line-height: 20px;
    background-position: right .35rem center;
}

.bug-list-table col.bug-col-select,
.bug-list-table .bug-col-select { width: 2.25rem; text-align: center; }
.bug-list-table:not(.is-selecting) col.bug-col-select,
.bug-list-table:not(.is-selecting) .bug-col-select { display: none; }
.bug-list-table col.bug-col-indicator,
.bug-list-table .support-icon-cell { width: 28px; }
.bug-list-table col.bug-col-details,
.bug-list-table .bug-col-details { width: 28rem; min-width: 12rem; }
.bug-list-table col.bug-col-type,
.bug-list-table .bug-col-type { width: 6.75rem; }
.bug-list-table col.bug-col-screenshot,
.bug-list-table .bug-col-screenshot { width: 4.25rem; text-align: center; }
.bug-list-table col.bug-col-opened,
.bug-list-table .bug-col-opened { width: 8.5rem; }
.bug-list-table col.bug-col-reporter,
.bug-list-table .bug-col-reporter { width: 6.75rem; }
.bug-list-table col.bug-col-role,
.bug-list-table .bug-col-role { width: 4.5rem; }
.bug-list-table col.bug-col-status,
.bug-list-table .bug-col-status { width: 8rem; }
.bug-list-table col.bug-col-severity,
.bug-list-table .bug-col-severity { width: 8.25rem; }
.bug-list-table col.bug-col-prompt,
.bug-list-table .bug-col-prompt { width: 4.5rem; text-align: center; }
.bug-list-table col.bug-col-delete,
.bug-list-table .bug-col-delete { width: 6.75rem; text-align: right; white-space: nowrap; }
.bug-list-table > thead > tr > th.bug-col-delete,
.bug-list-table > tbody > tr > td.bug-col-delete { overflow: visible; text-overflow: clip; }
.bug-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.15rem; }
.bug-row-actions form { display: inline-flex; margin: 0; }

.bug-list-table > thead > tr > th.bug-col-details {
    overflow: visible;
}

.bug-list-table th.bug-col-details {
    position: relative;
}

.bug-list-table th.bug-col-details .crm-sort-link {
    padding-right: 1.1rem;
}

.bug-col-resizer {
    position: absolute;
    top: 0;
    right: -6px;
    z-index: 3;
    width: 16px;
    height: 100%;
    cursor: col-resize;
}

.bug-col-resizer:hover,
.bug-list-table.is-col-resizing .bug-col-resizer {
    background: var(--fc-brand-accent, #0d6efd);
    opacity: .45;
}

body.is-bug-col-resizing {
    cursor: col-resize;
    user-select: none;
}

.bug-detail-hover {
    position: fixed;
    z-index: 1080;
    display: none;
    max-width: min(42rem, calc(100vw - 1.5rem));
    max-height: min(50vh, 22rem);
    overflow: auto;
    padding: .55rem .7rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .35rem;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .18);
    color: var(--bs-body-color, inherit);
    font-size: .8125rem;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.bug-detail-hover.is-visible { display: block; }

.bug-modal-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.support-message-body {
    overflow-wrap: anywhere;
}

.support-message-body {
    white-space: pre-wrap;
}

.bug-severity-dot {
    --bug-color: #6c757d;
    display: inline-block;
    width: .8rem;
    height: .8rem;
    flex: 0 0 .8rem;
    border-radius: 50%;
    background: var(--bug-color);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.bug-severity-dot[data-severity="solved"] { --bug-color: #198754; }
.bug-severity-dot[data-severity="medium"] { --bug-color: #fd7e14; }
.bug-severity-dot[data-severity="high"] { --bug-color: #dc3545; }
.bug-severity-dot[data-severity="low"] { --bug-color: #ffc107; }
.bug-severity-dot[data-severity="postponed"] { --bug-color: #6f42c1; }
.bug-severity-dot[data-severity="discarded"] { --bug-color: #6c757d; }
.bug-severity-dot.bug-severity-tool {
    width: 1rem;
    height: 1rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bug-color);
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
}

#bugAdmin .table-responsive,
#messagesPage .table-responsive { overflow-x: auto; }

.support-inbox-table {
    table-layout: fixed;
    min-width: 720px;
}
.support-inbox-table .msg-col-select { width: 2.25rem; text-align: center; }
.support-inbox-table:not(.is-selecting) .msg-col-select { display: none; }
.support-inbox-table .msg-col-star,
.support-inbox-table .msg-col-delete { width: 32px; text-align: center; }
.support-inbox-table th.support-sender-cell,
.support-inbox-table td.support-sender-cell { width: 150px; }
.support-inbox-table th.support-time-cell,
.support-inbox-table td.support-time-cell { width: 160px; }
.support-inbox-table .support-read-cell { width: 64px; }
.bug-list-table .support-icon-cell,
.support-inbox-table .support-icon-cell { width: 28px; text-align: center; }
.support-inbox-table .message-starred [data-message-star] { color: var(--fc-brand-accent); }

.bug-list-table > tbody > tr > td,
.support-inbox-table > tbody > tr > td {
    height: 28px;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.support-row-open {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 22px;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.support-row-open:hover { color: var(--fc-brand-accent); }
.support-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: .25rem;
    padding: 0;
    background: transparent;
    color: var(--fc-brand-accent);
    font-size: inherit;
}
.support-icon-button:hover { background: var(--bs-tertiary-bg); }
.support-row-open:focus-visible,
.support-icon-button:focus-visible { outline: 2px solid var(--fc-brand-accent); outline-offset: -2px; }
.support-inbox-table .message-unread .support-message-subject,
.support-inbox-table .message-unread .support-sender-cell { font-weight: 600; }
.support-inbox-table .message-unread .support-icon-cell { color: var(--fc-brand-accent); }
.support-menu-dot {
    display: inline-block;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #dc3545;
    vertical-align: top;
}

.app-main .app-content {
    padding-bottom: 5rem;
}

#fcToastContainer {
    bottom: 4.75rem !important;
}

.fc-shortcuts-menu {
    min-width: 18rem;
    max-width: 22rem;
}

.fc-shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}

.fc-shortcuts-list .fc-shortcut-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.fc-shortcuts-list dt {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fc-text);
    white-space: nowrap;
}

.fc-shortcuts-list dd {
    margin: 0;
    color: var(--fc-secondary);
    text-align: right;
}

#fcConfirmModal .modal-content {
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background-color: var(--fc-surface);
}

#fcConfirmModal .modal-header,
#fcConfirmModal .modal-footer {
    border-color: var(--fc-border);
}

#fcConfirmModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fc-brand-accent);
}

#fcConfirmModal .modal-footer {
    justify-content: flex-end;
}

#fcConfirmModal .modal-footer .fc-card-actions {
    width: 100%;
}

.crm-detail-list--stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.crm-detail-list--stack .crm-detail-row {
    margin: 0;
}

.crm-detail-list--stack dt {
    margin: 0 0 0.1rem;
    font-weight: 500;
}

.crm-detail-list--stack dd {
    margin: 0;
}

.client-contacts-table .client-contact-row {
    cursor: pointer;
}

.client-contacts-table .client-contact-pill-cell,
.crm-list-table .client-contact-pill-cell {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

.client-contacts-table .client-contact-pill-cell .fc-pill,
.crm-list-table .client-contact-pill-cell .fc-pill {
    gap: 0.4rem;
    width: 10.5rem;
    min-width: 10.5rem;
    justify-content: center;
    white-space: nowrap;
}

.people-list-table td:not(.client-contact-pill-cell),
.profiler-list-table td:not(.client-contact-pill-cell),
.client-contacts-table td:not(.client-contact-pill-cell) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.profiler-list-table td[data-col="person"] .d-flex {
    min-width: 0;
    max-width: 14rem;
}

.profiler-list-table td[data-col="person"] .d-flex span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.people-list-table .client-contact-pill-cell .fc-pill,
.profiler-list-table .client-contact-pill-cell .fc-pill {
    width: 13rem;
    min-width: 13rem;
    max-width: 13rem;
    flex: 0 0 13rem;
    justify-content: center;
}

.people-list-table a.people-cell-link,
.people-list-table a.people-cell-link:hover,
.people-list-table a.people-cell-link:focus,
.people-list-table a.people-cell-link:visited {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.client-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.client-contact + .client-contact {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 0.75rem;
}

.client-contact-layout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.client-contact-open {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.client-contact-open:hover .client-contact-name,
.client-contact-open:focus-visible .client-contact-name {
    text-decoration: underline;
}

.client-contact-open:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.client-contact-role {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--bs-secondary-color);
}

.client-contact-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 1rem;
    margin-top: 0.35rem;
}

.client-contact-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.client-contact-field-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.client-contact-field-value {
    font-size: 0.875rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.client-contact-field-value.is-empty {
    color: var(--bs-secondary-color);
}

@media (max-width: 767.98px) {
    .client-contact-fields {
        grid-template-columns: 1fr;
    }
}

.client-contact-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.35;
}

a.client-contact-name {
    text-decoration: none;
}

a.client-contact-name:hover,
a.client-contact-name:focus-visible {
    text-decoration: underline;
}

.client-contact-layout .fc-pill {
    margin-top: 0.1rem;
    gap: 0.4rem;
}

.client-contact-meta,
.client-contact-note {
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--bs-secondary-color);
}

.client-contact-note {
    white-space: pre-wrap;
}

.crm-filter {
    flex: 1 1 10rem;
    min-width: 0;
}

.crm-filter-search {
    flex-grow: 1.6;
}

.crm-filter-small {
    flex-grow: 0.5;
    min-width: 6rem;
}

.crm-filter-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 11.5rem;
}

.crm-filter-inline-label {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--fc-secondary);
    white-space: nowrap;
}

.crm-filter-date .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.crm-filter-multi {
    position: relative;
    flex: 1 1 14rem;
    min-width: 12rem;
}

.crm-filter-multi:has(.crm-letter-source-menu) {
    flex: 1 1 16rem;
    min-width: 14rem;
}

.crm-filter > .dropdown-toggle,
.crm-filter-multi > .dropdown-toggle {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* form-select already has a chevron — hide Bootstrap dropdown caret */
.crm-filter > .dropdown-toggle::after,
.crm-filter-multi > .dropdown-toggle::after {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    border: 0 !important;
}

.crm-filter-menu {
    z-index: 1080;
    max-height: 16rem;
    overflow: auto;
}

.crm-multi-menu {
    min-width: 100%;
    max-height: 16rem;
    overflow: auto;
}

/* Status list is short — show every option without a scrollbar */
.crm-status-menu {
    max-height: none;
    overflow: visible;
}

.crm-multi-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
    padding: 0 0.25rem 0.35rem;
    border-bottom: 1px solid var(--fc-border);
}

.crm-multi-actions .btn-link {
    font-size: 0.75rem;
    text-decoration: none;
}

.crm-multi-option {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.25rem 0.35rem;
    border-radius: var(--fc-radius);
    cursor: pointer;
}

.crm-multi-option:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

[data-bs-theme='dark'] .crm-multi-option:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.crm-multi-option .form-check-input {
    position: static;
    margin: 0.15rem 0 0;
    flex: 0 0 auto;
    float: none;
}

.crm-multi-option span {
    font-size: 0.8125rem;
    line-height: 1.3;
    min-width: 0;
}

.crm-letter-source-menu {
    min-width: 20rem;
    width: max(100%, 20rem);
    max-height: 22rem;
}

.crm-letter-source-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0.2rem 0.35rem 0.35rem;
    border-top: 1px solid var(--fc-border);
}

.crm-letter-source-actions .btn {
    min-height: 0;
    padding: 0;
    font-size: 0.72rem;
    text-decoration: none;
}

.crm-letter-source-actions .btn:hover,
.crm-letter-source-actions .btn:focus-visible {
    text-decoration: underline;
}

.crm-letter-group {
    border-top: 1px solid var(--fc-border);
}

.crm-letter-group:first-of-type {
    border-top: 0;
    margin-top: 0.25rem;
}

.crm-letter-group-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.crm-letter-group-summary::-webkit-details-marker {
    display: none;
}

.crm-letter-group-summary::after {
    content: '\F282';
    font-family: bootstrap-icons;
    font-size: 0.7rem;
    color: var(--fc-secondary);
    transition: transform 0.15s ease;
}

.crm-letter-group[open] > .crm-letter-group-summary::after {
    transform: rotate(180deg);
}

.crm-letter-group-letter {
    font-variant-numeric: tabular-nums;
}

.crm-letter-group-count {
    font-weight: 400;
    font-size: 0.75rem;
    margin-right: auto;
    margin-left: 0.35rem;
}

.crm-letter-group-body {
    display: flex;
    flex-direction: column;
    padding: 0 0 0.25rem;
}

.crm-letter-source-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.35rem 0.55rem;
    border-radius: var(--fc-btn-radius);
    font-size: 0.8125rem;
    color: var(--fc-text);
    line-height: 1.3;
}

.crm-letter-source-option:hover {
    background: rgba(var(--fc-primary-rgb), 0.08);
}

.crm-letter-source-option.is-active {
    background: rgba(var(--fc-primary-rgb), 0.14);
    font-weight: 600;
}

[data-bs-theme='dark'] .crm-letter-source-option:hover,
[data-bs-theme='dark'] .crm-letter-source-option.is-active {
    background: rgba(255, 255, 255, 0.08);
}

.crm-filter-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
    white-space: nowrap;
}

.crm-sort-th {
    padding: 0 !important;
    cursor: pointer;
}

.crm-sort-th .crm-sort-link {
    display: flex;
    align-items: center;
    justify-content: inherit;
    gap: 0.25rem;
    width: 100%;
    min-height: 100%;
    padding: 0.35rem 0.5rem;
    color: inherit;
    text-decoration: none;
}

.crm-sort-th.text-end .crm-sort-link {
    justify-content: flex-end;
}

.crm-sort-link:hover,
.crm-sort-link.is-active,
.crm-sort-th.is-sorted .crm-sort-link {
    color: var(--fc-brand-accent);
}

.crm-sort-th.is-sorted .crm-sort-link span {
    font-weight: 700;
}

.crm-sort-link .bi {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.crm-sort-th.is-sorted .crm-sort-link .bi {
    opacity: 1;
}

.fc-pill--deal-status {
    width: 7.5rem;
    min-width: 7.5rem;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-bg-deal-prospecting {
    background-color: #5b7fa6 !important;
    color: #fff !important;
}

[data-bs-theme='dark'] .text-bg-deal-prospecting {
    background-color: #4e6f94 !important;
    color: #fff !important;
}

.deals-list-table {
    table-layout: fixed;
    width: 100%;
}

.deals-list-table .deal-col-check {
    width: 2rem;
}

.deals-list-table .deal-col-id {
    width: 5.75rem;
}

.deals-list-table .deal-col-assigned {
    width: 11.5rem;
}

.deals-list-table .deal-col-status {
    width: 8.25rem;
}

.deals-list-table .deal-col-value {
    width: 8.5rem;
}

.deal-renewal--later { color: #1f7a4d; }
.deal-renewal--month { color: #b8860b; }
.deal-renewal--week { color: #e07a1f; }
.deal-renewal--overdue { color: #d1242f; }

[data-bs-theme='dark'] .deal-renewal--later { color: #6fbf8b; }
[data-bs-theme='dark'] .deal-renewal--month { color: #ffde35; }
[data-bs-theme='dark'] .deal-renewal--week { color: #ff9f43; }
[data-bs-theme='dark'] .deal-renewal--overdue { color: #ff6b6b; }

.deals-list-table .deal-col-renewal {
    width: 5.25rem;
}

.deals-list-table .deal-col-date,
.deals-list-table .deal-col-closing {
    width: 6.5rem;
}

.people-list-table .people-country-cell,
.profiler-list-table .people-country-cell {
    width: 4.5rem;
    min-width: 4.5rem;
    text-align: center;
}

.deals-list-table .deal-col-name,
.deals-list-table .deal-col-client {
    width: auto;
}

.deals-list-table th,
.deals-list-table td {
    overflow: hidden;
    vertical-align: middle;
}

.deals-list-table tbody tr,
.deals-list-table tbody td {
    height: 29px;
    max-height: 29px;
}

.deals-list-table tbody td {
    box-sizing: border-box;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.deal-inline-cell {
    vertical-align: middle !important;
    cursor: pointer;
}

.deal-inline-edit {
    position: relative;
    user-select: none;
}

.deal-inline-edit.is-editing {
    user-select: auto;
}

.deal-inline-edit.is-saving {
    opacity: 0.65;
}

.deal-inline-display {
    cursor: pointer;
}

.deal-inline-display--hidden {
    visibility: hidden;
}

.deal-inline-display.text-truncate {
    display: block;
    max-width: 100%;
}

.deal-inline-edit[data-deal-edit-field='team_member_id'] .deal-inline-display {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: normal;
}

.deal-inline-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0.35rem !important;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: 0 !important;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none !important;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}

.deal-inline-control:focus,
.deal-inline-control:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
    background-color: transparent;
}

.deal-inline-assigned,
.deal-inline-status {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.deal-inline-assigned {
    left: 0;
    right: 0;
    text-align: left;
}

.deal-inline-status {
    left: 0;
    width: 7.5rem;
    min-width: 7.5rem;
    max-width: 7.5rem;
    padding: 0 0.45rem !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35rem !important;
    text-transform: uppercase;
    text-align: center;
}

.deal-inline-status:focus,
.deal-inline-status:focus-visible {
    outline: 2px solid rgba(var(--fc-primary-rgb), 0.35);
    outline-offset: 1px;
}

.deal-inline-status option {
    color: #212529;
    text-transform: none;
    font-weight: 400;
    background-color: #fff;
}

.deal-inline-value {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    width: 100%;
}

.deal-inline-value .deal-inline-control {
    width: 5.75rem;
    min-width: 5.75rem;
    max-width: 7rem;
    -moz-appearance: textfield;
}

.deal-inline-value .deal-inline-control::-webkit-outer-spin-button,
.deal-inline-value .deal-inline-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deal-inline-currency {
    flex: 0 0 auto;
    color: inherit;
}

.crm-layout {
    --bs-gutter-x: 0.375rem;
}

.crm-layout.is-split .crm-list-body {
    max-height: min(72vh, 42rem);
    min-height: 12rem;
}

.crm-list-scroll {
    overflow-y: auto;
    min-height: 0;
}

.crm-list-row,
.intel-tracker-term-row,
.intel-tracker-term-row > td,
.intel-collection-row,
.intel-collection-row > td {
    cursor: pointer;
}

.crm-list-row:focus-visible {
    outline: 2px solid var(--fc-primary);
    outline-offset: -2px;
}

.crm-panel-close {
    color: var(--fc-secondary);
    flex-shrink: 0;
    line-height: 1;
}

.crm-panel-close:hover,
.crm-panel-close:focus {
    color: var(--fc-brand-accent);
}

.crm-detail-list dt,
.crm-detail-list dd {
    margin-bottom: 0.5rem;
}

/* Intel capture */
.intel-toolbar {
    min-height: 2.5rem;
    border-bottom: 1px solid var(--fc-border);
}

.profiler-detail-tabs {
    min-height: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--fc-border);
}

.intel-toolbar + .card,
.intel-toolbar + .row {
    margin-top: 12px;
}

.intel-tabs,
.client-tabs {
    border-bottom: 0;
}

.intel-tabs .nav-link,
.team-tabs .nav-link,
.client-tabs .nav-link,
.deal-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.intel-tabs .nav-link,
.client-tabs .nav-link {
    color: var(--fc-text);
}

.fc-tab-section-icon {
    font-size: 0.95em;
    line-height: 1;
}

.intel-tabs .nav-link:hover,
.intel-tabs .nav-link:focus,
.intel-tabs .nav-link.active,
.client-tabs .nav-link:hover,
.client-tabs .nav-link:focus,
.client-tabs .nav-link.active {
    color: var(--fc-brand-accent);
}

.intel-tabs .nav-link.active,
.client-tabs .nav-link.active {
    background-color: var(--fc-tab-active-bg);
    border-color: transparent transparent var(--fc-brand-accent);
}

.intel-capture-form {
    position: relative;
    min-width: 0;
}

.intel-capture-form [data-intel-title].is-fetching-title {
    opacity: 0.85;
}

.intel-capture-form.is-page-dragging {
    outline: 2px dashed var(--fc-action);
    outline-offset: 0.5rem;
    border-radius: var(--fc-radius);
    background-color: rgba(var(--fc-primary-rgb), 0.06);
}

#intelCaptureModal .modal-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
}

.intel-capture-modal-hint {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--fc-muted, var(--bs-secondary-color));
}

#intelCaptureModal [data-intel-capture-status] {
    min-height: 1.25rem;
}

.intel-capture-progress {
    height: 0.55rem;
}

.intel-ai-scan-card .form-check-input {
    cursor: pointer;
}

.intel-drop-zone {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem;
    border: 1px dashed var(--fc-border);
    border-radius: var(--fc-radius);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.intel-drop-zone.is-dragging {
    border-color: var(--fc-action);
    background-color: rgba(var(--fc-primary-rgb), 0.1);
}

.intel-content {
    max-height: 32rem;
    overflow: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    background-color: var(--fc-bg);
}

.intel-reminder-alert {
    display: flex;
    align-items: center;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background-color: var(--fc-surface);
    color: var(--fc-text);
}

.intel-reminder-alert--full {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
}

.intel-reminder-alert--pending {
    border-color: var(--fc-border);
    background-color: var(--fc-bg);
}

.intel-reminder-alert--overdue {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.12);
}

.intel-reminder-alert--completed {
    border-color: var(--fc-border);
    background-color: rgba(108, 117, 125, 0.12);
    color: var(--fc-secondary);
}

.intel-item-media,
.intel-item-media > [class*='col-'] {
    min-width: 0;
}

#intelDetailPanel {
    margin-top: 12px;
    overflow-x: hidden;
}

.intel-file-picker {
    display: flex;
    align-items: center;
    min-height: 31px;
    gap: 0.5rem;
}

.intel-file-picker-name {
    min-width: 0;
    overflow: hidden;
    color: var(--fc-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-notes-panel {
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background-color: var(--fc-surface);
}

.intel-notes-table-wrap {
    max-width: 100%;
    overflow: hidden;
}

.intel-notes-table {
    table-layout: fixed;
    max-width: 100%;
    width: 100%;
}

.intel-notes-table .intel-note-date {
    width: 5.5rem;
}

.intel-reminders-table .intel-reminder-status {
    width: 4.5rem;
}

.intel-reminders-table .intel-note-date {
    width: 6.5rem;
}

.intel-notes-table .intel-note-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-notes-table .intel-note-actions {
    width: 6rem;
    white-space: nowrap;
}

.intel-reminders-table .intel-note-actions {
    width: 6.5rem;
}

.intel-note-actions .btn,
.intel-note-actions form {
    display: inline-flex;
    vertical-align: middle;
}

.intel-note-delete {
    margin-right: 5px;
}

.intel-note-expanded {
    background-color: var(--fc-bg);
}

.intel-note-full {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.intel-note-expanded {
    padding: 0.75rem !important;
    background-color: var(--fc-bg) !important;
}

.intel-note-full {
    overflow-wrap: anywhere;
    white-space: normal;
}

.intel-correlated-list {
    max-width: 100%;
    overflow-x: hidden;
}

.intel-correlated-list .table {
    table-layout: fixed;
    width: 100%;
}

.intel-correlated-list th:nth-child(1) { width: 4rem; }
.intel-correlated-list th:nth-child(2) { width: 35%; }
.intel-correlated-list th:nth-child(3),
.intel-correlated-list th:nth-child(4) { width: 20%; }
.intel-correlated-list th:nth-child(5) { width: 14rem; }

.intel-correlated-list td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.intel-correlated-list td.intel-correlation-matches {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.intel-correlation-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
    color: var(--fc-secondary);
}

.intel-correlation-matches .bi {
    color: var(--fc-brand-accent);
}

.intel-tracker-match-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.intel-tracker-match-row {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--fc-border);
}

.intel-tracker-match-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.intel-image-preview {
    display: block;
    width: 100%;
    height: 10rem;
    object-fit: contain;
    background-color: var(--fc-bg);
    border-radius: var(--fc-radius);
}

.intel-pdf-preview {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background-color: var(--fc-bg);
    border-radius: var(--fc-radius);
}

.intel-preview-stage {
    width: 100%;
}

.intel-preview-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: var(--fc-bg);
}

.intel-pdf-preview-modal {
    width: 100%;
    height: 75vh;
    border: 0;
    background-color: var(--fc-bg);
    border-radius: var(--fc-radius);
}

.intel-image-preview-modal {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background-color: var(--fc-bg);
    border-radius: var(--fc-radius);
}

.intel-preview-modal .intel-doc-preview {
    width: min(100%, 48rem);
    max-height: 75vh;
}

.intel-preview-modal .intel-file-icon {
    width: min(100%, 24rem);
    height: 12rem;
}

.intel-attachment-preview .intel-image-preview,
.intel-attachment-preview .intel-doc-preview,
.intel-attachment-preview .intel-file-icon {
    margin-bottom: 0;
}

.intel-list-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.intel-list-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

/* Items list: readable fixed metadata columns; title fills remaining space */
.intel-list-table col.intel-col-type { width: 4rem; }
.intel-list-table col.intel-col-category { width: 6.25rem; }
.intel-list-table col.intel-col-entity { width: 5rem; }
.intel-list-table col.intel-col-issuer { width: 6.25rem; }
.intel-list-table col.intel-col-tags { width: 6.25rem; }
.intel-list-table col.intel-col-reminder { width: 4.75rem; }
.intel-list-table col.intel-col-created { width: 5.75rem; }
.intel-list-table col.intel-col-modified { width: 6rem; }
.intel-list-table col.intel-col-actions { width: 12.75rem; }
.intel-list-table col.intel-col-title { width: calc(100% - 57rem); }

.intel-list-table.has-status-col col.intel-col-status { width: 5rem; }
.intel-list-table.has-status-col col.intel-col-title { width: calc(100% - 62rem); }

.intel-list-table col.intel-feed-col-select { width: 2.25rem; }
.intel-list-table col.intel-feed-col-publisher { width: 10.5rem; }
.intel-list-table.intel-feed-table--open-source col.intel-feed-col-publisher { width: 13.75rem; }
.fc-player-report-frame {
    display: block;
    width: 100%;
    height: 28rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background: #fff;
}
.intel-list-table col.intel-feed-col-origin { width: 6.75rem; }
.intel-list-table col.intel-feed-col-source { width: 7.25rem; }
.intel-list-table col.intel-feed-col-category { width: 6.25rem; }
.intel-list-table col.intel-feed-col-country { width: 4.5rem; }
.intel-list-table col.intel-feed-col-sentiment { width: 5.5rem; }
.intel-list-table col.intel-feed-col-target { width: 8.5rem; }
.intel-list-table col.intel-feed-col-group { width: 4.5rem; }
.intel-list-table col.intel-feed-col-published { width: 7.5rem; }
.intel-list-table col.intel-feed-col-attack { width: 7.5rem; }
.intel-list-table col.intel-feed-col-actions { width: 10.5rem; }
.intel-list-table.intel-feed-table--root col.intel-feed-col-actions { width: 12.25rem; }
.intel-list-table col.intel-feed-col-headline { width: auto; }
.intel-list-table col.intel-tracker-col-select { width: 2.25rem; }
.intel-list-table col.intel-tracker-col-term { width: 8rem; }
.intel-list-table col.intel-tracker-col-origin { width: 5.25rem; }
.intel-list-table col.intel-tracker-col-source { width: 8rem; }
.intel-list-table col.intel-tracker-col-found { width: 7.5rem; }
.intel-list-table col.intel-tracker-col-actions { width: 8.75rem; }
.intel-list-table col.intel-clip-col-topic { width: 8rem; }
.intel-list-table col.intel-clip-col-items,
.intel-list-table col.intel-topic-col-clips,
.intel-list-table col.intel-topic-col-items,
.intel-list-table col.intel-tracker-col-hits { width: 4.5rem; }
.intel-list-table col.intel-tracker-col-clipboard,
.intel-list-table col.intel-tracker-col-topic { width: 8rem; }
.intel-list-table col.intel-clip-col-actions,
.intel-list-table col.intel-topic-col-actions { width: 9rem; }
.intel-list-table col.intel-tracker-col-term-actions { width: 11.5rem; }
.intel-list-table col.intel-clip-col-item-actions,
.intel-list-table col.intel-topic-col-item-actions { width: 8.75rem; }
.intel-list-table col.intel-clip-col-origin,
.intel-list-table col.intel-topic-col-origin { width: 6rem; }
.intel-list-table col.intel-clip-col-publisher { width: 8rem; }
.intel-list-table col.intel-clip-col-date,
.intel-list-table col.intel-clip-col-clipped { width: 6.5rem; }
.intel-list-table col.intel-tracker-col-headline { width: auto; }

.intel-feed-country-flag,
img.intel-feed-country-flag {
    display: inline-block;
    width: 1.25rem;
    height: 0.9rem;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    font-size: 1.15rem;
    line-height: 1;
}

.intel-list-table th[data-col="sentiment"] {
    overflow: visible;
    text-overflow: clip;
}

.intel-feed-sentiment-cell {
    vertical-align: middle;
}

.intel-feed-sentiment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.intel-feed-sentiment-mark {
    transform: translateY(-0.04em);
}

.intel-feed-sentiment--positive {
    background-color: var(--fc-success);
    color: #fff;
}

.intel-feed-sentiment--negative {
    background-color: var(--fc-danger);
    color: #fff;
}

[data-bs-theme='dark'] .intel-feed-sentiment--positive {
    background-color: #2ec973;
    color: #111318;
}

[data-bs-theme='dark'] .intel-feed-sentiment--negative {
    background-color: #ef4b5a;
    color: #fff;
}

.intel-feed-sentiment--neutral,
.intel-feed-sentiment--unknown {
    background-color: var(--fc-secondary);
    color: #fff;
}

.intel-feed-sentiment--neutral .intel-feed-sentiment-mark {
    font-size: 0.78rem;
    transform: translateY(-0.08em);
}

.intel-feed-sentiment--unknown {
    opacity: 0.45;
}

.intel-list-table th[data-col="country"],
.intel-list-table td.intel-feed-country-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-intel-feed-table] th[data-col="country"],
[data-intel-feed-table] th[data-col="sentiment"] {
    text-align: center;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

[data-intel-feed-table] td.intel-feed-country-cell,
[data-intel-feed-table] td.intel-feed-sentiment-cell {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.intel-feed-publisher-cell {
    vertical-align: middle;
    max-width: 10.5rem;
}

.intel-feed-publisher-inner {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.intel-feed-publisher-name {
    min-width: 0;
    flex: 1 1 auto;
}

.fc-pill.fc-pill--feed-kind {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.15rem;
    min-height: 1.15rem;
    padding: 0 0.32rem !important;
    margin: 0;
    border: 0;
    font-size: 0.62rem;
    font-weight: 100;
    line-height: 1.15rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.fc-pill.fc-pill--feed-kind-news {
    color: #f4f7fb;
    background-color: #3d6f9a;
}

.fc-pill.fc-pill--feed-kind-blogs {
    color: #1a1200;
    background-color: #ffb347;
}

.fc-pill.fc-pill--feed-kind-social {
    color: #f7f4ff;
    background-color: #6b5b95;
}

.fc-pill.fc-pill--feed-kind-stream {
    color: #fff5f5;
    background-color: #b42318;
}

[data-bs-theme='dark'] .fc-pill.fc-pill--feed-kind-news {
    color: #e8f1f8;
    background-color: #2f5f86;
}

[data-bs-theme='dark'] .fc-pill.fc-pill--feed-kind-blogs {
    color: #1a1200;
    background-color: #ffb347;
}

[data-bs-theme='dark'] .fc-pill.fc-pill--feed-kind-social {
    color: #f3eeff;
    background-color: #7a68a8;
}

[data-bs-theme='dark'] .fc-pill.fc-pill--feed-kind-stream {
    color: #ffe8e6;
    background-color: #c2413a;
}

.intel-feed-category-cell {
    vertical-align: middle;
    max-width: 6.25rem;
}

.intel-feed-category-cell .fc-pill.fc-pill--feed-compact,
.fc-pill.fc-pill--feed-compact.fc-pill--feed-category {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 1.35rem;
    min-height: 1.35rem;
    max-height: 1.35rem;
    padding: 0 0.28rem !important;
    margin: 0;
    border: 0;
    font-size: 0.62rem;
    font-weight: 100;
    line-height: 1.35rem !important;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.intel-match-keywords-card {
    min-height: 0;
}

.intel-match-keywords-card > .card-body {
    min-height: 0;
}

.intel-match-keywords-card.h-100 {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.intel-match-keywords-card.h-100 > .card-body {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.intel-match-keywords-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 22rem;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.intel-match-keywords-card.h-100 .intel-match-keywords-wrap {
    /* height:0 + flex-grow fills sibling card height and enables scroll */
    flex: 1 1 auto;
    height: 0;
    min-height: 14rem;
    max-height: none;
}

.intel-match-keywords-table {
    margin-bottom: 0;
}

.intel-match-keywords-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--bs-tertiary-bg, var(--bs-body-bg));
    box-shadow: inset 0 -1px 0 var(--bs-border-color);
}

.intel-match-keywords-col-select {
    width: 2rem;
}

.intel-match-keywords-col-status {
    width: 6rem;
}

.intel-match-keywords-table tbody td {
    vertical-align: middle;
}

.intel-match-keywords-card [data-keyword-add-form] {
    align-items: center;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.intel-match-keywords-card [data-keyword-add-input] {
    width: auto;
    min-width: 8rem;
    max-width: none;
    flex: 1 1 auto;
}

.intel-match-keywords-toolbar {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.intel-match-keywords-toolbar .d-flex.flex-nowrap {
    flex-shrink: 0;
}

.intel-csv-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.intel-match-keywords-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(1.5em + 0.5rem + 2px);
    padding-left: 0;
    padding-right: 0;
}

.intel-match-keywords-wrap::-webkit-scrollbar,
.intel-feed-sources-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.intel-match-keywords-wrap::-webkit-scrollbar-thumb,
.intel-feed-sources-wrap::-webkit-scrollbar-thumb {
    background-color: var(--fc-border, var(--bs-border-color));
    border-radius: 4px;
}

.intel-match-keywords-wrap::-webkit-scrollbar-track,
.intel-feed-sources-wrap::-webkit-scrollbar-track {
    background-color: transparent;
}

.intel-tracker-field-hint {
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bs-secondary-color);
}

.gdelt-archives-table {
    width: 100%;
    table-layout: fixed;
}

.gdelt-archives-table th:nth-child(2),
.gdelt-archives-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gdelt-archives-table th:last-child,
.gdelt-archives-table td:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gdelt-archive-range-field {
    min-width: 9rem;
}

.users-col-actions {
    width: 2.5rem;
    white-space: nowrap;
}

.users-status-select {
    min-width: 8.5rem;
    width: auto;
    max-width: 11rem;
}

.ds-theme-preview {
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 1rem;
    background-color: var(--fc-bg);
    color: var(--fc-text);
}

.ds-theme-preview .ds-theme-preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    color: var(--fc-secondary);
}

.ds-theme-preview .table {
    background-color: var(--fc-surface);
    color: var(--fc-text);
}

.ds-theme-preview .table > :not(caption) > * > * {
    background-color: var(--fc-surface);
    color: var(--fc-text);
    border-bottom-color: var(--fc-border);
}

.ds-theme-preview .table thead th {
    background-color: var(--fc-table-head-bg);
    color: var(--fc-brand-accent);
}

.intel-feed-table-toolbar {
    flex: 0 0 auto;
}

.intel-tracker-bulk-clip {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.intel-tracker-bulk-clip .form-select {
    width: auto;
    min-width: 11rem;
    max-width: 16rem;
}

.fc-columns-menu,
.intel-feed-columns-menu {
    min-width: 11rem;
    padding: 0.35rem 0;
}

.fc-columns-item,
.intel-feed-columns-item {
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0.35rem 0.75rem;
}

.fc-columns-item .form-check-input,
.intel-feed-columns-item .form-check-input {
    cursor: pointer;
    margin: 0;
    float: none;
}

[data-intel-feed-table] .intel-list-actions {
    width: 10.5rem;
    min-width: 10.5rem;
    max-width: 10.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

[data-intel-feed-table].intel-feed-table--root .intel-list-actions {
    width: 12.25rem;
    min-width: 12.25rem;
    max-width: 12.25rem;
}

[data-intel-feed-table] tbody td {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

[data-intel-feed-table] .intel-feed-actions {
    gap: 0.1rem;
}

[data-intel-feed-table] .intel-feed-actions .btn-icon-action {
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    font-size: 0.8rem;
}

[data-intel-feed-table] tbody tr.intel-feed-row,
[data-intel-feed-table] tbody tr.intel-feed-row > td,
tr.intel-feed-row[data-feed-preview],
tr.intel-feed-row[data-feed-preview] > td {
    cursor: pointer;
}

[data-intel-feed-table] td.intel-feed-headline,
[data-intel-feed-table] td.intel-feed-headline .intel-feed-headline-link {
    cursor: pointer;
}

[data-intel-feed-table] .intel-feed-actions,
[data-intel-feed-table] .intel-feed-actions .btn-icon-action {
    cursor: pointer;
}

.intel-feed-headline-link {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    text-decoration: none;
}

.intel-feed-headline-link:hover,
.intel-feed-headline-link:focus-visible {
    color: var(--fc-primary);
    text-decoration: none;
}

.intel-feed-headline-inline {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-feed-headline-excerpt {
    font-weight: 400;
}

.fc-pill.fc-pill--data-breach {
    color: #5c3b00;
    background-color: #ffb347;
}

[data-bs-theme='dark'] .fc-pill.fc-pill--data-breach {
    color: #1a1200;
    background-color: #ffb347;
}

.intel-feed-preview-image-wrap {
    overflow: hidden;
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
    background: var(--fc-bg);
}

.intel-feed-preview-image {
    display: block;
    width: 100%;
    max-height: 16rem;
    object-fit: cover;
}

.btn-icon-action.is-clipped,
.btn-icon-action.is-clipped .bi,
.btn-icon-action.is-clipped:hover,
.btn-icon-action.is-clipped:focus,
.btn-icon-action.is-clipped:focus-visible,
.btn-icon-action.is-clipped:hover .bi,
.btn-icon-action.is-clipped:focus .bi,
.btn-icon-action.is-clipped:focus-visible .bi {
    color: var(--fc-clip-active);
    font-weight: 700;
}

/* Icon fonts only ship weight 400; stroke thickens the hairline paperclip. */
.btn-icon-action.is-clipped .bi::before {
    color: var(--fc-clip-active);
    -webkit-text-stroke: 0.55px currentColor;
    paint-order: stroke fill;
}

.btn-icon-action.is-topiced,
.btn-icon-action.is-vaulted,
.btn-icon-action .bi-archive-fill {
    color: var(--fc-brand-accent);
}

.btn-icon-action .intel-topic-icon-minus {
    display: none;
}

.btn-icon-action.is-topiced:hover,
.btn-icon-action.is-topiced:focus-visible {
    color: var(--bs-danger);
}

.btn-icon-action.is-topiced:hover .intel-topic-icon-check,
.btn-icon-action.is-topiced:focus-visible .intel-topic-icon-check {
    display: none;
}

.btn-icon-action.is-topiced:hover .intel-topic-icon-minus,
.btn-icon-action.is-topiced:focus-visible .intel-topic-icon-minus {
    display: inline-block;
}

.intel-clipboard-picker-list {
    max-height: 15rem;
    overflow-y: auto;
}

.intel-clipboard-picker-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
}

.intel-clipboard-picker-option + .intel-clipboard-picker-option {
    border-top: 1px solid var(--fc-border);
}

.intel-clipboard-picker-option:hover {
    background: var(--fc-table-hover-bg, rgba(127, 127, 127, 0.08));
}

.intel-clipboard-picker-option .form-check-input {
    float: none;
    flex-shrink: 0;
    margin-left: 0;
}

.intel-clipboards-table td:first-child,
.intel-topics-table td:first-child {
    max-width: 15rem;
}

.intel-clipboard-items-table td:nth-child(2) {
    min-width: 13rem;
}

.intel-topic-clipboard-row > td {
    border-bottom-width: 0;
}

.intel-topic-clipboard {
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-btn-radius);
    margin: 0.15rem 0.25rem 0.35rem;
    background: var(--fc-bg-elevated, var(--bs-body-bg));
    overflow: hidden;
}

.intel-topic-clipboard-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    cursor: pointer;
    user-select: none;
}

.intel-topic-clipboard-summary::-webkit-details-marker {
    display: none;
}

.intel-topic-clipboard-summary-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.intel-topic-clipboard-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--fc-secondary);
    transition: transform 0.15s ease;
}

.intel-topic-clipboard:not([open]) > .intel-topic-clipboard-summary .intel-topic-clipboard-chevron {
    transform: rotate(-90deg);
}

.intel-topic-clipboard-remove {
    flex: 0 0 auto;
    margin: 0;
}

.intel-topic-clipboard-body {
    border-top: 1px solid var(--fc-border);
    background: rgba(var(--fc-primary-rgb), 0.03);
}

.intel-topic-clipboard-nested {
    --bs-table-bg: transparent;
}

.intel-topic-clipboard-nested td {
    padding-left: 1.75rem;
    vertical-align: top;
}

.intel-topic-clipboard-nested td:nth-child(2) {
    width: auto;
    min-width: 5.5rem;
    text-align: end;
}

.intel-topic-clipboard-nested td:last-child,
.intel-topic-clipboard-nested-actions {
    width: 2.75rem;
    min-width: 2.75rem;
    padding-right: 0.75rem;
    text-align: end;
    white-space: nowrap;
}

.intel-collection-view-modal {
    width: min(92vw, 72rem);
    max-width: 96vw;
    height: min(88vh, 48rem);
    margin: 1.25rem auto;
}

.intel-collection-view-modal .modal-content {
    height: 100%;
}

.intel-collection-view-modal .modal-body {
    min-height: 0;
}

.intel-feed-browser-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - (var(--bs-modal-margin) * 2));
    max-width: none !important;
    height: auto;
    min-height: calc(100% - (var(--bs-modal-margin) * 2));
    margin: var(--bs-modal-margin) auto;
}

.intel-feed-browser-modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(92vw, 72rem);
    height: min(88vh, 48rem);
    min-width: 28rem;
    min-height: 18rem;
    max-width: 96vw;
    max-height: 92vh;
    overflow: hidden;
}

.intel-feed-browser-modal .modal-content.is-resizing {
    user-select: none;
}

.intel-feed-browser-modal .modal-content.is-resizing .intel-feed-browser-frame,
.intel-feed-browser-modal .modal-content.is-resizing .intel-feed-reader-pane {
    pointer-events: none;
}

.intel-feed-browser-resize-handle {
    position: absolute;
    z-index: 30;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='nw'] {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='ne'] {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='sw'] {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='se'] {
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
}

.intel-feed-browser-resize-handle::before {
    content: '';
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    border-color: var(--fc-secondary);
    border-style: solid;
    opacity: 0.75;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='nw']::before {
    top: 0.22rem;
    left: 0.22rem;
    border-width: 2px 0 0 2px;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='ne']::before {
    top: 0.22rem;
    right: 0.22rem;
    border-width: 2px 2px 0 0;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='sw']::before {
    bottom: 0.22rem;
    left: 0.22rem;
    border-width: 0 0 2px 2px;
}

.intel-feed-browser-resize-handle[data-feed-preview-resize='se']::before {
    right: 0.22rem;
    bottom: 0.22rem;
    border-width: 0 2px 2px 0;
}

.intel-feed-browser-resize-handle:hover::before,
.intel-feed-browser-resize-handle:focus-visible::before,
.intel-feed-browser-modal .modal-content.is-resizing .intel-feed-browser-resize-handle::before {
    opacity: 1;
    border-color: var(--fc-primary);
}

.intel-feed-browser-modal .modal-header {
    flex: 0 0 auto;
}

.intel-feed-browser-modal .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--fc-bg);
}

.intel-feed-browser-chrome {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--fc-border);
    background: var(--fc-sidebar-bg);
}

.intel-feed-find-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--fc-border);
    background: var(--fc-sidebar-bg);
}

.intel-feed-find-bar .form-control {
    max-width: 18rem;
}

mark.intel-feed-search-hit,
mark.intel-feed-find-hit {
    background: #ffe58f;
    color: inherit;
    padding: 0;
}

mark.intel-feed-find-hit.is-current {
    background: #ffc107;
}

[data-bs-theme='dark'] mark.intel-feed-search-hit,
[data-bs-theme='dark'] mark.intel-feed-find-hit {
    background: #8a6d1b;
    color: inherit;
}

[data-bs-theme='dark'] mark.intel-feed-find-hit.is-current {
    background: #c9a227;
}

.intel-feed-browser-url {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--fc-border);
    border-radius: 999px;
    background: var(--fc-surface);
    color: var(--fc-secondary);
    font-size: 0.72rem;
    line-height: 1.4;
}

.intel-feed-browser-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 14rem;
    background: var(--fc-surface);
}

.intel-feed-browser-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--fc-surface);
}

.intel-feed-browser-frame.is-blocked {
    opacity: 0.15;
    pointer-events: none;
}

.intel-feed-browser-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: center;
    background: color-mix(in srgb, var(--fc-surface) 92%, transparent);
}

.intel-feed-browser-pending {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 1.5rem;
    text-align: center;
    background: color-mix(in srgb, var(--fc-surface) 94%, transparent);
}

.intel-feed-browser-pending.d-none {
    display: none;
}

.intel-feed-preview-mode {
    flex-shrink: 0;
}

.intel-feed-reader-pane {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
    background: var(--fc-bg);
    z-index: 2;
}

.intel-feed-reader-article {
    max-width: 42rem;
    margin: 0 auto;
}

.intel-feed-reader-meta {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.intel-feed-reader-article h1 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
    line-height: 1.3;
}

.intel-feed-reader-hero {
    margin: 0 0 1.15rem;
}

.intel-feed-reader-hero-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.intel-feed-reader-hero:not(.is-video) .intel-feed-reader-hero-link {
    pointer-events: none;
}

.intel-feed-reader-hero img,
.intel-feed-preview-video-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--fc-radius, 0.35rem);
}

.intel-feed-preview-video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    text-decoration: none;
    color: #fff;
}

.intel-feed-preview-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.intel-feed-preview-video-play,
.intel-feed-reader-hero-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3.4rem;
    height: 3.4rem;
    margin: -1.7rem 0 0 -1.7rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: none;
}

.intel-feed-preview-video-play::after,
.intel-feed-reader-hero-play::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -0.55rem 0 0 -0.28rem;
    border-style: solid;
    border-width: 0.55rem 0 0.55rem 0.95rem;
    border-color: transparent transparent transparent #fff;
}

.intel-feed-preview-video-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.intel-feed-preview-video-poster:hover .intel-feed-preview-video-play,
.intel-feed-reader-hero.is-video .intel-feed-reader-hero-link:hover .intel-feed-reader-hero-play {
    background: rgba(0, 0, 0, 0.78);
}

.intel-feed-reader-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.intel-feed-reader-body p {
    margin-bottom: 1rem;
}

.intel-feed-reader-body img {
    max-width: 100%;
    height: auto;
    margin: 0.75rem 0;
}

.intel-feed-reader-body a {
    color: var(--fc-primary);
}

.intel-feed-reader-body .fc-feed-preview-video {
    margin: 1rem 0;
}

.intel-feed-reader-body .fc-feed-preview-video iframe,
.intel-feed-reader-body .fc-feed-preview-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    background: #000;
}

.bug-filter-form .crm-filters {
    flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
    .bug-filter-form .crm-filters {
        flex-wrap: wrap;
    }
}

.bug-filter-form .crm-filter {
    flex: 0 0 9.5rem;
    min-width: 8.5rem;
}

.bug-filter-form .crm-filter-search {
    flex: 1 1 16rem;
    min-width: 12rem;
    max-width: 28rem;
}

.intel-filter-form .crm-filter {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.intel-filter-form .crm-filter-actions {
    cursor: pointer;
}

.intel-filter-form .crm-filter-actions .btn,
.intel-filter-form .crm-filter-actions a.btn {
    cursor: pointer;
    text-decoration: none;
}

.intel-filter-form .crm-filter-actions a.btn:hover,
.intel-filter-form .crm-filter-actions a.btn:focus-visible {
    text-decoration: none;
}

.intel-feed-filter-form .crm-filter {
    flex: 0 1 9.5rem;
    min-width: 7.5rem;
}

.intel-feed-filter-form .crm-filter-search {
    flex: 2.6 1 18rem;
    min-width: 14rem;
}

.intel-feed-filter-form .intel-feed-filter-category {
    flex: 0 1 10.5rem;
    min-width: 8.5rem;
}

.intel-feed-filter-form .crm-filter-multi,
.intel-feed-filter-form .crm-filter-multi:has(.crm-letter-source-menu) {
    flex: 0 0 11rem;
    width: 11rem;
    min-width: 11rem;
    max-width: 11rem;
}

.intel-feed-filter-form .crm-filter-date {
    flex: 0 0 auto;
    max-width: none;
    gap: 0.3rem;
}

.intel-feed-filter-form .crm-filter-date .form-control {
    flex: none;
    width: 8.9rem;
    min-width: 8.9rem;
    max-width: 8.9rem;
    padding-left: 0.4rem;
    padding-right: 0.3rem;
}

.intel-feed-filter-form .crm-filter-small {
    flex: 0 1 7.25rem;
    min-width: 6.25rem;
    max-width: 8.5rem;
}

.intel-feed-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.intel-feed-actions form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: middle;
}

.intel-feed-per-page-form {
    flex: 0 0 auto;
}

.intel-feed-per-page-select {
    width: 4.75rem;
    min-width: 4.75rem;
}

.intel-feed-pagination,
.intel-vault-pagination {
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.intel-feed-pagination .page-link,
.intel-vault-pagination .page-link,
.intel-feed-pagination .page-item + .page-item .page-link,
.intel-vault-pagination .page-item + .page-item .page-link {
    margin-left: 0;
}

.intel-feed-pagination .page-item .page-link,
.intel-vault-pagination .page-item .page-link {
    min-width: 2.1rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    text-align: center;
}

.intel-feed-pagination .page-item:first-child .page-link,
.intel-feed-pagination .page-item:last-child .page-link,
.intel-vault-pagination .page-item:first-child .page-link,
.intel-vault-pagination .page-item:last-child .page-link {
    min-width: auto;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.admin-intel-sources-col {
    min-width: 0;
}

.intel-feed-sources-slot {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.intel-feed-sources-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.intel-feed-sources-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.75rem;
}

.intel-feed-sources-header {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.intel-feed-sources-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.intel-feed-sources-wrap {
    flex: 1 1 auto;
    max-width: 100%;
    overflow: visible;
}

.intel-feed-card-help-btn {
    line-height: 1;
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.intel-feed-card-help-btn:hover,
.intel-feed-card-help-btn:focus-visible {
    color: var(--fc-primary);
}

.intel-feed-schedule-fields {
    row-gap: 0.75rem;
}

.intel-feed-schedule-enabled {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-height: calc(1.5em + 0.5rem + 2px);
    padding-left: 0;
    max-width: 22rem;
}

.intel-feed-schedule-enabled .form-check-input {
    margin: 0.2rem 0 0;
    float: none;
    flex-shrink: 0;
}

.intel-feed-schedule-enabled .form-check-label {
    padding-left: 0;
    line-height: 1.25;
}

.intel-feed-schedule-interval {
    width: 9.5rem;
    min-width: 9.5rem;
}

.intel-feed-schedule-limit {
    width: 5.5rem;
    min-width: 5.5rem;
}

.intel-feed-sources-bulk {
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.intel-feed-sources-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

.intel-feed-sources-table th,
.intel-feed-sources-table td {
    vertical-align: middle;
}

.intel-feed-sources-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    background-color: var(--fc-table-head-bg, var(--fc-surface));
}

.intel-feed-sources-table .intel-feed-sources-col-select {
    width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

.intel-feed-sources-table .intel-feed-sources-col-crawler {
    width: 4.75rem;
}

.intel-feed-sources-table .intel-feed-sources-col-name {
    width: 22%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-feed-sources-table .intel-feed-sources-col-type {
    width: 4.5rem;
}

.intel-feed-sources-table .intel-feed-sources-col-key {
    width: 24%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intel-feed-sources-table .intel-feed-sources-col-status {
    width: 6.5rem;
}

.intel-feed-sources-table .intel-feed-sources-col-usage {
    width: 7.5rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.intel-feed-sources-col-select .form-check-input {
    margin: 0;
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.intel-feed-key-cell code {
    white-space: nowrap;
}

.intel-feed-last-crawl-cell {
    white-space: nowrap;
}

.intel-feed-last-crawl-cell .fc-pill {
    max-width: 100%;
}

.intel-feed-error-cell {
    max-width: none;
}

.intel-feed-crawler-form {
    display: inline;
    margin: 0;
}

.intel-feed-crawler-toggle {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: none;
}

.intel-feed-crawler-toggle.is-active {
    color: var(--fc-success);
}

.intel-feed-crawler-toggle.is-inactive {
    color: var(--bs-secondary-color);
}

.intel-feed-crawler-toggle:hover,
.intel-feed-crawler-toggle:focus-visible {
    text-decoration: underline;
}

.intel-feed-error-link {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    text-decoration: none;
    color: var(--fc-danger);
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.intel-feed-error-link:hover,
.intel-feed-error-link:focus-visible {
    color: var(--fc-danger);
    text-decoration: none;
    filter: brightness(1.1);
}

.intel-feed-error-ellipsis {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: var(--fc-danger);
    font-size: inherit;
}

.intel-feed-error-cell code.intel-feed-error-ellipsis {
    color: var(--fc-danger);
}

.intel-feed-error-pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 16rem;
    overflow: auto;
    background: var(--fc-bg);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 0.75rem;
}

.intel-feed-progress .progress {
    height: 0.55rem;
}

.intel-feed-crawl-log-view {
    max-height: 10rem;
    overflow: auto;
    background: var(--fc-bg);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 0.65rem 0.75rem;
    font-family: var(--bs-font-monospace, ui-monospace, monospace);
    font-size: 0.72rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.intel-feed-crawl-log-view--resizable {
    min-height: 8rem;
    max-height: none;
    height: 14rem;
    resize: vertical;
}

.intel-feed-crawl-log-view--modal {
    max-height: min(60vh, 28rem);
}

.intel-feed-source-warnings {
    max-width: 100%;
    overflow: hidden;
}

.intel-feed-source-warnings-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.intel-feed-source-warning-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7.5rem) 4.75rem minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
    align-items: baseline;
    min-width: 0;
}

.intel-feed-source-warning-key {
    font-size: 0.78rem;
    word-break: break-all;
}

.intel-feed-source-warning-code {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.intel-feed-source-warning-detail {
    min-width: 0;
    max-width: 100%;
    text-align: left;
}

.intel-feed-source-warning-detail .intel-feed-error-ellipsis {
    display: block;
    max-width: 100%;
}

.intel-list-table tr.intel-feed-row.is-preview-active > td {
    background-color: color-mix(in srgb, var(--fc-action) 16%, transparent);
}

.intel-list-table tr.intel-feed-row.is-preview-active > td:first-child {
    box-shadow: inset 3px 0 0 var(--fc-action);
}

.intel-feed-crontab-header {
    width: 100%;
    min-width: 0;
}

.intel-feed-crontab-header .form-label {
    margin-bottom: 0;
}

.intel-feed-crontab-status {
    padding-left: 0.15rem;
}

.intel-feed-status-light {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.intel-feed-status-light--ok {
    background: #28c840;
}

.intel-feed-status-light--warn {
    background: #febc2e;
}

.intel-feed-status-light--off {
    background: #ff5f57;
}

.intel-feed-crontab-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
    field-sizing: content;
    min-height: 8rem;
}

.intel-feed-cron-log-textarea {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    field-sizing: fixed;
    overflow: auto;
    resize: none;
}

#feed-schedule,
#feed-schedule .card-body,
#feed-schedule .border.rounded {
    max-width: 100%;
    min-width: 0;
}

#feed-schedule .card-body {
    overflow-x: hidden;
}

.intel-feed-cron-preview {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.intel-feed-cron-preview-label {
    flex: 0 0 auto;
}

.intel-feed-cron-preview-btn {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.intel-feed-cron-preview-btn:hover,
.intel-feed-cron-preview-btn:focus-visible {
    color: var(--fc-primary);
    text-decoration: none;
}

.intel-feed-cron-preview-code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-size: inherit;
}

.intel-list-table td,
.intel-list-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.intel-list-table .intel-col-category,
.intel-list-table .intel-col-entity,
.intel-list-table .intel-col-issuer,
.intel-list-table .intel-col-tags,
.intel-list-table .intel-col-reminder,
.intel-list-table .intel-col-status,
.intel-list-table th.intel-col-category,
.intel-list-table th.intel-col-entity,
.intel-list-table th.intel-col-issuer,
.intel-list-table th.intel-col-tags,
.intel-list-table th.intel-col-reminder,
.intel-list-table th.intel-col-status {
    text-align: right;
}

.intel-list-table .intel-list-actions {
    overflow: visible;
    text-overflow: clip;
}

.intel-col-type {
    box-sizing: border-box;
    width: 4rem;
    min-width: 4rem;
    max-width: 4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.intel-col-type .badge,
.intel-col-type .fc-pill {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.intel-col-title {
    min-width: 0;
}

.intel-col-modified {
    padding-right: 0.5rem !important;
}

.intel-list-actions {
    white-space: nowrap;
    width: 1%;
    text-align: left;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

th.intel-list-actions,
.intel-list-table thead .intel-list-actions {
    text-align: left !important;
}

[data-intel-list-table] tbody td.intel-list-actions {
    text-align: right;
}

[data-intel-feed-table] tbody td.intel-list-actions {
    text-align: right;
}

[data-intel-feed-table] thead th.intel-list-actions {
    text-align: center !important;
}

[data-intel-list-table] tbody td {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

[data-intel-list-table] .intel-vault-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1.75rem;
    justify-content: end;
    align-items: center;
    gap: 0.28rem;
    width: max-content;
    margin-left: auto;
    margin-right: 0;
}

[data-intel-list-table] .intel-vault-actions > form,
[data-intel-list-table] .intel-vault-actions > .btn-icon-action,
[data-intel-list-table] .intel-vault-actions > .intel-vault-slot {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-intel-list-table] .intel-vault-actions .btn-icon-action {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    font-size: 0.95rem;
}

[data-intel-list-table] tbody td.intel-list-actions {
    text-align: right;
}

[data-intel-list-table] thead th.intel-list-actions {
    text-align: center !important;
}

[data-intel-list-table] .intel-col-category,
[data-intel-list-table] .intel-col-entity,
[data-intel-list-table] .intel-col-issuer,
[data-intel-list-table] .intel-col-tags,
[data-intel-list-table] .intel-col-created,
[data-intel-list-table] .intel-col-modified,
[data-intel-list-table] th.intel-col-category,
[data-intel-list-table] th.intel-col-entity,
[data-intel-list-table] th.intel-col-issuer,
[data-intel-list-table] th.intel-col-tags,
[data-intel-list-table] th.intel-col-created,
[data-intel-list-table] th.intel-col-modified {
    text-align: left;
}

[data-intel-list-table] th.intel-col-type,
[data-intel-list-table] td.intel-col-type,
[data-intel-list-table] th.intel-col-reminder,
[data-intel-list-table] td.intel-col-reminder,
[data-intel-list-table] th.intel-col-status,
[data-intel-list-table] td.intel-col-status {
    text-align: center;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

[data-intel-list-table] .intel-sort-th.intel-col-created .intel-sort-link,
[data-intel-list-table] .intel-sort-th.intel-col-modified .intel-sort-link,
.intel-list-table .intel-sort-th.intel-col-created .intel-sort-link,
.intel-list-table .intel-sort-th.intel-col-modified .intel-sort-link {
    justify-content: flex-start;
    gap: 0.15rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.intel-list-table tbody tr.crm-list-row,
.intel-list-table tbody tr.crm-list-row td {
    cursor: pointer;
}

.intel-list-table thead th {
    font-size: calc(1em + 1pt);
}

.intel-sort-th {
    padding: 0 !important;
    cursor: pointer;
}

.intel-sort-th .intel-sort-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    min-height: 100%;
    padding: 0.35rem 0.5rem;
    color: inherit;
    text-decoration: none;
}

button.intel-sort-link {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.intel-sort-link:hover,
.intel-sort-link.is-active,
.intel-sort-th.is-sorted .intel-sort-link {
    color: var(--fc-brand-accent);
}

.intel-sort-link .bi {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.intel-advanced-toggle {
    color: var(--fc-secondary);
    text-decoration: none;
}

.intel-advanced-toggle:hover,
.intel-advanced-toggle:focus {
    color: var(--fc-brand-accent);
}

.intel-advanced-toggle .bi {
    display: inline-block;
    margin-left: 0.2rem;
    transition: transform 0.15s ease;
}

.intel-advanced-toggle:not(.collapsed) .bi {
    transform: rotate(180deg);
}

.fc-card-collapse-toggle {
    color: inherit;
    text-decoration: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.fc-card-collapse-toggle:hover,
.fc-card-collapse-toggle:focus {
    color: var(--fc-brand-accent);
}

.fc-card-collapse-toggle .bi {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.fc-card-collapse-toggle:not(.collapsed) .bi {
    transform: rotate(180deg);
}

.fc-float-alerts {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: min(36rem, calc(100vw - 1.5rem));
    transform: translateX(-50%);
    pointer-events: none;
}

.fc-float-alerts .alert {
    pointer-events: auto;
    margin-bottom: 0;
    box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.28);
}

.fc-shortlist-region {
    margin-top: 1.5rem;
    margin-bottom: 1.35rem;
}

.fc-shortlist-region-title {
    margin: 0 0 0.55rem;
    padding: 0 0.15rem 0.35rem;
    border-bottom: 1px solid var(--fc-border);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fc-secondary);
}

.fc-shortlist-country {
    margin-bottom: 0.55rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    overflow: hidden;
}

.fc-shortlist-country-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.4rem 0.55rem 0.4rem 0.5rem;
    border-radius: 0;
    background: color-mix(in srgb, var(--fc-border) 42%, transparent);
    color: inherit;
}

.fc-shortlist-country-toggle:hover,
.fc-shortlist-country-toggle:focus {
    color: inherit;
    background: color-mix(in srgb, var(--fc-border) 68%, transparent);
}

.fc-shortlist-country-name {
    font-size: 0.92rem;
    font-weight: 600;
}

.fc-shortlist-country .table-responsive {
    margin-bottom: 0 !important;
}

.fc-shortlist-country-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.fc-shortlist-table .intel-sort-link {
    padding: 0.35rem 0.2rem;
    gap: 0.15rem;
}

.fc-shortlist-table thead th.intel-sort-th:first-child .intel-sort-link {
    padding-left: 0.5rem;
}

.fc-shortlist-table {
    table-layout: fixed;
    width: 100%;
    min-width: 62rem;
}

.fc-shortlist-table col.fc-shortlist-col-company { width: auto; }

.fc-shortlist-table .fc-player-name {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fc-shortlist-table .fc-player-name > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-list-table .fc-player-relation-select,
.crm-list-table .fc-player-relation-select:hover,
.crm-list-table .fc-player-relation-select:focus {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 12rem;
    padding: 0.1rem 0.25rem 0.1rem 0;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: 0;
    text-overflow: ellipsis;
    cursor: pointer;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.fc-shortlist-table .fc-player-relation-select {
    width: 100%;
    max-width: 100%;
}

.crm-list-table td:has(.fc-player-relation-select) {
    overflow: hidden;
    max-width: 12rem;
}

.fc-shortlist-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.fc-shortlist-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

.fc-shortlist-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.2;
}

.fc-shortlist-heading .fc-directness-legend {
    margin: 0;
}

.fc-shortlist-report-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

/* Keep the colgroup aligned with the cells when report selection is hidden. */
.fc-shortlist-table col.fc-shortlist-col-pick {
    display: none;
    width: 0;
}
.fc-shortlist-table .fc-shortlist-pick {
    display: none;
    width: 0;
    padding: 0;
    border: 0;
}

#fcPlayerReportModal.modal { z-index: 1065; }

#fcShortlistReport.is-picking col.fc-shortlist-col-pick {
    display: table-column;
    width: 2rem;
}
#fcShortlistReport.is-picking .fc-shortlist-pick {
    display: table-cell;
    width: 2rem;
    padding: 0.25rem 0.35rem;
    border-bottom: 1px solid var(--bs-border-color);
    vertical-align: middle;
}

.fc-shortlist-table col.fc-shortlist-col-rank { width: 3.25rem; }
.fc-shortlist-table col.fc-shortlist-col-index { width: 4.5rem; }
.fc-shortlist-table col.fc-shortlist-col-type { width: 6.25rem; }
.fc-shortlist-table col.fc-shortlist-col-relation { width: 9.5rem; }
.fc-shortlist-table col.fc-shortlist-col-enrichment { width: 6.5rem; }
.fc-shortlist-table col.fc-shortlist-col-recon { width: 3.5rem; }
.fc-shortlist-table col.fc-shortlist-col-actions { width: 7.25rem; }

.fc-shortlist-table.crm-list-table .fc-actions-heading,
.fc-shortlist-table.crm-list-table .fc-actions-cell {
    width: 7.25rem;
    max-width: 7.25rem;
    overflow: hidden;
}

.fc-shortlist-table .fc-player-actions {
    max-width: 100%;
    justify-content: flex-end;
}

.fc-shortlist-table.crm-list-table .fc-actions-heading {
    text-align: center !important;
}

.fc-shortlist-table.crm-list-table .fc-actions-cell {
    text-align: right !important;
}

.intel-doc-preview {
    width: 100%;
    overflow: auto;
    background-color: #525659;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
}

.intel-reminder-icon--completed {
    color: var(--fc-success);
}

.intel-reminder-icon--overdue {
    color: var(--fc-danger);
}

.intel-reminder-icon--pending {
    color: var(--fc-warning);
}

.intel-doc-preview--landscape {
    aspect-ratio: 16 / 9;
    max-height: 18rem;
}

.intel-doc-preview--portrait {
    aspect-ratio: 3 / 4;
    max-height: 24rem;
}

.intel-doc-preview--docx {
    aspect-ratio: 3 / 4;
    max-height: 24rem;
}

.intel-doc-preview-body {
    min-height: 100%;
    padding: 1rem;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.intel-doc-preview-page {
    width: min(100%, 8.5in);
    min-height: auto;
    margin: 0;
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.15;
    flex-shrink: 0;
}

.intel-doc-preview-page p,
.intel-doc-preview-page h1,
.intel-doc-preview-page h2,
.intel-doc-preview-page h3,
.intel-doc-preview-page h4,
.intel-doc-preview-page h5,
.intel-doc-preview-page h6 {
    margin: 0 0 0.35rem;
    color: inherit;
}

.intel-doc-preview-page h1 {
    font-size: 16pt;
    font-weight: 700;
}

.intel-doc-preview-page h2 {
    font-size: 13pt;
    font-weight: 700;
}

.intel-doc-preview-page h3 {
    font-size: 12pt;
    font-weight: 700;
}

.intel-doc-preview-page h4,
.intel-doc-preview-page h5,
.intel-doc-preview-page h6 {
    font-size: 11pt;
    font-weight: 700;
}

.intel-doc-preview-page p:last-child,
.intel-doc-preview-page h1:last-child,
.intel-doc-preview-page h2:last-child,
.intel-doc-preview-page h3:last-child,
.intel-doc-preview-page h4:last-child,
.intel-doc-preview-page h5:last-child,
.intel-doc-preview-page h6:last-child {
    margin-bottom: 0;
}

.intel-doc-preview-page strong {
    font-weight: 700;
}

.intel-doc-preview-page em {
    font-style: italic;
}

.intel-doc-preview-page u {
    text-decoration: underline;
}

.intel-doc-tab {
    white-space: pre;
}

.intel-doc-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.35rem 0;
}

.intel-analysis-row {
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: var(--fc-radius);
    background-color: var(--fc-bg);
}

.intel-analysis-md-icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--fc-secondary);
}

.fc-pill,
.badge.fc-pill {
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 3rem;
    height: 1.35rem;
    padding: 0 0.45rem;
    border-radius: var(--fc-pill-radius) !important;
    font-size: 0.68rem;
    font-weight: 100;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}

.fc-pill--fill {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.logs-filter-form.crm-filters-wrap {
    align-items: flex-end;
}

.logs-filter-form .crm-filter-actions {
    align-self: flex-end;
}

.logs-filter-modules {
    min-width: 11rem;
    flex: 0 1 12rem;
}

.logs-col-select {
    width: 2rem;
    text-align: center;
    vertical-align: middle;
}

[data-logs-copy].is-copied {
    border-color: var(--fc-success);
    color: var(--fc-success);
}

.logs-action-cell {
    width: 6.5rem;
    max-width: 6.5rem;
}

.fc-pill--compact {
    width: auto;
    min-width: 3.5rem;
    max-width: none;
    padding: 0 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-pill--compact.fc-pill--fill {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.badge.text-bg-doc,
.fc-pill.text-bg-doc {
    background-color: #003087 !important;
    color: #fff !important;
}

[data-bs-theme='dark'] .badge.text-bg-doc,
[data-bs-theme='dark'] .fc-pill.text-bg-doc {
    background-color: #1a4fa0 !important;
    color: #fff !important;
}

.intel-file-pill--md {
    background-color: #0f766e !important;
    color: #fff !important;
    text-transform: lowercase;
}

.intel-file-pill--md .bi {
    font-size: 0.65rem;
    line-height: 1;
}

.intel-analysis-md {
    width: 100%;
    max-height: 75vh;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    background: #fff;
    color: #212529;
    border-radius: var(--fc-radius);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.intel-analysis-rendered {
    width: 100%;
    max-height: 75vh;
    overflow: auto;
    margin: 0;
    padding: 1rem 1.25rem;
    background: #fff;
    color: #212529;
    border-radius: var(--fc-radius);
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.intel-analysis-rendered > :first-child {
    margin-top: 0;
}

.intel-analysis-rendered > :last-child {
    margin-bottom: 0;
}

.intel-analysis-rendered h1,
.intel-analysis-rendered h2,
.intel-analysis-rendered h3,
.intel-analysis-rendered h4,
.intel-analysis-rendered h5,
.intel-analysis-rendered h6 {
    margin: 1rem 0 0.5rem;
    line-height: 1.25;
    color: inherit;
}

.intel-analysis-rendered h1 { font-size: 1.5rem; }
.intel-analysis-rendered h2 { font-size: 1.3rem; }
.intel-analysis-rendered h3 { font-size: 1.15rem; }

.intel-analysis-rendered p,
.intel-analysis-rendered ul,
.intel-analysis-rendered ol,
.intel-analysis-rendered table,
.intel-analysis-rendered pre {
    margin: 0 0 0.75rem;
}

.intel-analysis-rendered ul,
.intel-analysis-rendered ol {
    padding-left: 1.4rem;
}

.intel-analysis-rendered code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
}

.intel-analysis-rendered pre {
    padding: 0.75rem;
    background: var(--fc-bg);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    overflow: auto;
    white-space: pre-wrap;
}

.intel-analysis-rendered .intel-analysis-table {
    width: 100%;
}

.intel-analysis-rendered-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
}

.intel-preview-modal [data-intel-analysis-view-toggle] .btn.active {
    color: #fff;
    background-color: var(--fc-secondary);
    border-color: var(--fc-secondary);
}

#fcToastContainer .toast {
    min-width: 18rem;
    max-width: 24rem;
}

#fcToastContainer .toast-body a {
    color: inherit;
    text-decoration: underline;
}

.intel-ai-summary {
    padding-top: 0.25rem;
}

.intel-ai-block {
    position: relative;
    padding: 0.75rem 2.1rem 0.75rem 0.85rem;
    border: 0;
    border-radius: var(--fc-radius);
    background-color: var(--fc-bg);
}

.intel-ai-block-toggle {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 0;
    border-radius: var(--fc-radius);
    background: transparent;
    color: var(--fc-secondary);
    cursor: pointer;
}

.intel-ai-block-toggle .bi {
    font-size: 0.9rem;
    transition: transform 0.15s ease;
}

.intel-ai-block:not(.is-collapsed) .intel-ai-block-toggle .bi {
    transform: rotate(180deg);
}

.intel-ai-heading {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--fc-secondary);
}

.intel-ai-block.is-collapsed .intel-ai-summary-body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intel-ai-block.is-collapsed .intel-ai-summary-body p {
    margin: 0;
}

.intel-ai-block.is-collapsed .intel-ai-block-extra {
    display: none;
}

.intel-ai-block:not(.is-collapsed) .intel-ai-summary-body {
    margin-bottom: 0.85rem;
}

.intel-file-rows .intel-analysis-row:last-child {
    margin-bottom: 0;
}

.intel-section-heading,
.fc-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.intel-section-heading h3,
.intel-section-heading h4,
.fc-section-heading h3,
.fc-section-heading h4 {
    margin: 0;
}

.intel-section-heading small,
.fc-section-heading small {
    font-size: 0.8rem;
    line-height: 1.3;
}

.fc-detail-side > section + section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fc-border);
}

.intel-notes-table-wrap .table,
.intel-correlated-list .table {
    margin-bottom: 0;
}

.intel-detail-side .intel-files,
.intel-detail-side .intel-reminder,
.intel-detail-side .intel-notes,
.intel-detail-side .intel-analysis {
    border-top: 0 !important;
    padding-top: 0 !important;
}

.intel-ai-topics {
    margin: 0;
    padding-left: 1.1rem;
}

.intel-ai-topics li {
    margin-bottom: 0.2rem;
    font-size: 0.875rem;
}

.intel-ai-topics li:last-child {
    margin-bottom: 0;
}

.intel-tag-suggestions,
.fc-suggest-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.25rem;
    background-color: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.fc-suggest-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: calc(var(--fc-radius) - 2px);
    background: transparent;
    color: var(--fc-text);
    text-align: left;
}

.fc-suggest-item:hover,
.fc-suggest-item.is-active {
    background-color: rgba(var(--fc-primary-rgb), 0.12);
    color: var(--fc-brand-accent);
}

.fc-suggest-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-suggest-meta {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--fc-secondary);
}

.fc-suggest-item:hover .fc-suggest-meta,
.fc-suggest-item.is-active .fc-suggest-meta {
    color: inherit;
    opacity: 0.85;
}

.intel-tag-suggestion {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: calc(var(--fc-radius) - 2px);
    background: transparent;
    color: var(--fc-text);
    text-align: left;
}

.intel-tag-suggestion:hover,
.intel-tag-suggestion.is-active {
    background-color: rgba(var(--fc-primary-rgb), 0.12);
    color: var(--fc-brand-accent);
}

.intel-file-icon {
    display: grid;
    place-items: center;
    height: 6rem;
    font-size: 2.5rem;
    color: var(--fc-secondary);
    background-color: var(--fc-bg);
    border-radius: var(--fc-radius);
}

@media (max-width: 991.98px) {
    .crm-filters {
        flex-wrap: wrap;
    }

}

@media (max-width: 991.98px) {
    .team-split > [class*='col-'] + [class*='col-'] {
        margin-top: 0.5rem;
    }
}

/* Home dashboard */
.home-quickbar .card-body {
    row-gap: 0.35rem;
}

.home-greeting {
    font-weight: 600;
}

.home-quick-action {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.home-attention {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-attention-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background-color: var(--fc-bg);
    color: var(--fc-text);
    text-decoration: none;
    line-height: 1.2;
}

.home-attention-item:hover,
.home-attention-item:focus {
    border-color: var(--fc-brand-accent);
    color: var(--fc-text);
}

.home-attention-count {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fc-brand-accent);
}

.home-attention-item--danger .home-attention-count {
    color: var(--fc-danger);
}

.home-attention-item--warning .home-attention-count {
    color: var(--fc-warning);
}

.home-attention-item--info .home-attention-count {
    color: var(--fc-info);
}

.home-attention-label {
    font-size: 0.8125rem;
}

.home-kpi-card {
    color: inherit;
    transition: border-color 0.12s ease;
}

.home-kpi-card:hover,
.home-kpi-card:focus {
    border-color: var(--fc-brand-accent);
    color: inherit;
}

.home-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--fc-brand-accent);
    word-break: break-word;
}

.home-kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.home-kpi-delta i {
    font-size: 1rem;
    line-height: 1;
}

.home-kpi-delta--up {
    color: var(--fc-success);
}

.home-kpi-delta--down {
    color: var(--fc-danger);
}

/* Plan & usage */
.plan-usage-page {
    max-width: 1180px;
    margin: 0 auto;
}

.plan-usage-intro,
.plan-section-heading,
.plan-tier-card__topline,
.plan-tier-card__title-row,
.plan-tier-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plan-usage-intro {
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.plan-usage-cycle,
.plan-section-meta {
    color: var(--fc-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.plan-usage-cycle i,
.plan-section-meta i {
    margin-right: 0.3rem;
}

.eyebrow,
.plan-tier-kicker {
    color: var(--fc-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.105em;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.plan-tier-card {
    position: relative;
    display: flex;
    min-height: 342px;
    flex-direction: column;
    gap: 1.15rem;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid var(--fc-border);
    border-radius: 0.75rem;
    background: var(--fc-surface);
}

.plan-tier-card--current {
    box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.04);
}

.plan-tier-card--featured {
    border-color: rgba(var(--fc-primary-rgb), 0.65);
    background: linear-gradient(145deg, var(--fc-surface) 0%, rgba(var(--fc-primary-rgb), 0.1) 100%);
    box-shadow: 0 0.9rem 2rem rgba(var(--fc-primary-rgb), 0.08);
}

.plan-tier-glow {
    position: absolute;
    top: -5rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(var(--fc-primary-rgb), 0.13);
    filter: blur(2.2rem);
    pointer-events: none;
}

.plan-tier-card > *:not(.plan-tier-glow) {
    position: relative;
}

.plan-tier-card__title-row {
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.8rem;
}

.plan-tier-card h2 {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.plan-tier-price {
    color: var(--fc-secondary);
    font-size: 0.88rem;
}

.plan-tier-price strong {
    color: var(--fc-text);
    font-size: 1.15rem;
}

.plan-tier-description {
    min-height: 2.8rem;
    margin: 0;
    color: var(--fc-secondary);
    line-height: 1.5;
}

.plan-recommended,
.plan-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--fc-brand-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-feature-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    color: var(--fc-text);
    font-size: 0.86rem;
    list-style: none;
}

.plan-feature-list i {
    margin-right: 0.4rem;
    color: var(--fc-success);
}

.plan-tier-card__footer {
    align-items: center;
    margin-top: auto;
    padding-top: 0.25rem;
}

.plan-tier-note {
    color: var(--fc-secondary);
    font-size: 0.72rem;
}

.plan-tier-card .btn:disabled {
    opacity: 0.72;
}

.plan-usage-section {
    margin-bottom: 2rem;
}

.plan-section-heading {
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.plan-section-heading h2 {
    margin: 0.15rem 0 0;
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.plan-metric-card {
    border-radius: 0.65rem;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.plan-metric-card:hover,
.plan-metric-card:focus {
    border-color: var(--fc-brand-accent);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.plan-metric-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--fc-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.plan-metric-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--fc-brand-accent);
    box-shadow: 0 0 0 0.2rem rgba(var(--fc-primary-rgb), 0.12);
}

.plan-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fc-border);
    border-radius: 0.65rem;
    color: var(--fc-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.plan-info-banner i {
    flex-shrink: 0;
    color: var(--fc-brand-accent);
}

@media (max-width: 767.98px) {
    .plan-usage-intro,
    .plan-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-tier-grid {
        grid-template-columns: 1fr;
    }

    .plan-tier-card {
        min-height: 0;
    }

    .plan-tier-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.home-funnel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-funnel-row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) 2rem auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.35rem;
    border-radius: var(--fc-radius);
    color: inherit;
    text-decoration: none;
}

.home-funnel-row:hover,
.home-funnel-row:focus {
    background-color: var(--fc-bg);
    color: inherit;
}

.home-funnel-label {
    font-size: 0.8125rem;
}

.home-funnel-track,
.home-mini-track {
    display: block;
    height: 0.45rem;
    border-radius: 50rem;
    background-color: var(--fc-bg);
    border: 1px solid var(--fc-border);
    overflow: hidden;
}

.home-funnel-fill,
.home-mini-fill {
    display: block;
    height: 100%;
    background-color: var(--fc-brand-accent);
    opacity: 0.75;
}

.home-funnel-count {
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: right;
    color: var(--fc-brand-accent);
}

.home-funnel-value {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    text-align: right;
    white-space: nowrap;
}

.home-panel-footer {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--fc-border);
}

.home-metric {
    color: var(--fc-text);
    font-weight: 600;
}

.home-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-mini-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.3rem 0.35rem;
    border-radius: var(--fc-radius);
    color: inherit;
    text-decoration: none;
}

.home-mini-row:hover,
.home-mini-row:focus {
    background-color: var(--fc-bg);
    color: inherit;
}

.home-mini-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
    min-width: 0;
}

.home-mini-value {
    font-weight: 600;
    white-space: nowrap;
    color: var(--fc-brand-accent);
}

.home-mini-meta {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.home-availability {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .home-availability {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-availability-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fc-brand-accent);
    margin-bottom: 0.25rem;
}

.home-plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8125rem;
}

.home-plain-list span {
    font-size: 0.75rem;
}

.home-tabs {
    gap: 0.25rem;
}

.home-tabs .nav-link {
    padding: 0.15rem 0.55rem;
    font-size: 0.8125rem;
    border-radius: var(--fc-radius);
    color: var(--fc-text);
}

.home-tabs .nav-link.active {
    background-color: var(--fc-action);
    color: var(--fc-on-action);
}

.home-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.home-feed-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.8125rem;
}

.home-feed-item + .home-feed-item {
    border-top: 1px solid var(--fc-border);
}

.home-feed-action,
.home-feed-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-feed-action--create {
    color: var(--fc-success);
}

.home-feed-action--delete {
    color: var(--fc-danger);
}

.home-feed-body {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-feed-time {
    font-size: 0.75rem;
}

.home-cell-clip {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CSV import */
.import-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--bs-secondary-color);
}

.import-steps .active {
    color: var(--fc-brand-accent);
    font-weight: 600;
}

/* Bootstrap variable overrides */
[data-bs-theme='light'] {
    --bs-body-bg: var(--fc-bg);
    --bs-body-color: var(--fc-text);
    --bs-border-color: var(--fc-border);
    --bs-primary: var(--fc-primary);
    --bs-primary-rgb: var(--fc-primary-rgb);
    --bs-primary-text-emphasis: #003070;
    --bs-primary-bg-subtle: #e6eef8;
    --bs-primary-border-subtle: #9db4db;
    --bs-link-color: var(--fc-primary);
    --bs-link-hover-color: #003a8c;
    --bs-focus-ring-color: rgba(var(--fc-primary-rgb), 0.25);
    --bs-secondary: var(--fc-secondary);
    --bs-success: var(--fc-success);
    --bs-warning: var(--fc-warning);
    --bs-danger: var(--fc-danger);
    --bs-info: var(--fc-info);
}

[data-bs-theme='dark'] {
    --bs-body-bg: var(--fc-bg);
    --bs-body-color: var(--fc-text);
    --bs-border-color: var(--fc-border);
    --bs-primary: var(--fc-primary);
    --bs-primary-rgb: var(--fc-primary-rgb);
    --bs-primary-text-emphasis: #ffe566;
    --bs-primary-bg-subtle: #3a3514;
    --bs-primary-border-subtle: #8a7820;
    --bs-link-color: var(--fc-primary);
    --bs-link-hover-color: #ffe566;
    --bs-focus-ring-color: rgba(var(--fc-primary-rgb), 0.25);
    --bs-secondary: var(--fc-secondary);
    --bs-success: var(--fc-success);
    --bs-warning: var(--fc-warning);
    --bs-danger: var(--fc-danger);
    --bs-info: var(--fc-info);
}

[data-bs-theme='dark'][data-fc-theme='dark'] {
    --bs-emphasis-color: #f5f6f8;
    --bs-secondary-color: #a9aeba;
    --bs-secondary-bg: #20232a;
    --bs-tertiary-color: #8e94a1;
    --bs-tertiary-bg: #252831;
    --bs-border-color: var(--fc-border);
    --bs-border-color-translucent: rgba(229, 231, 236, 0.14);
    --bs-dark-rgb: 17, 19, 24;
    --bs-primary-text-emphasis: #ffe566;
    --bs-primary-bg-subtle: #332f12;
    --bs-primary-border-subtle: #83731f;
}

.admin-system-range {
    width: auto;
    min-width: 7.5rem;
    max-width: 9.5rem;
}

.admin-system-widget {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.admin-system-widget > .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

@media (min-width: 1200px) {
    .admin-system-widget {
        aspect-ratio: 1 / 1;
    }

    .admin-system-widget--wide {
        aspect-ratio: auto;
    }
}

.admin-system-widget--wide {
    height: auto;
}

.admin-system-size-table {
    font-variant-numeric: tabular-nums;
}

.admin-system-size-table th,
.admin-system-size-table td {
    white-space: nowrap;
}

.admin-system-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-bottom: 0.35rem;
}

.admin-system-split-copy {
    flex: 1 1 50%;
    min-width: 0;
}

.admin-system-gauge {
    flex: 0 0 46%;
    width: 46%;
    max-width: 7.75rem;
    height: auto;
    overflow: visible;
}

.admin-system-gauge-track {
    stroke: var(--fc-border);
    stroke-width: 10;
    stroke-linecap: round;
}

.admin-system-gauge-value {
    stroke: var(--fc-primary);
    stroke-width: 10;
    stroke-linecap: round;
}

.admin-system-metric-value {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.admin-system-meter {
    height: 0.45rem;
    border-radius: 999px;
    background: var(--fc-border);
    overflow: hidden;
    flex-shrink: 0;
}

.admin-system-meter > span {
    display: block;
    height: 100%;
    background: var(--fc-primary);
}

.admin-system-chart {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 4rem;
    height: auto;
    color: var(--bs-secondary-color);
}

.admin-system-chart-line {
    stroke: var(--fc-primary);
    stroke-width: 1.6;
}

.admin-system-chart-fill {
    fill: color-mix(in srgb, var(--fc-primary) 22%, transparent);
    stroke: none;
}

.intel-recon-table col.intel-recon-col-company { width: 9rem; }
.intel-recon-table col.intel-recon-col-file { width: auto; }
.intel-recon-table col.intel-recon-col-price { width: 7.25rem; }
.intel-recon-table col.intel-recon-col-confidence { width: 5.4rem; }
.intel-recon-table col.intel-recon-col-vector { width: 3.4rem; }
.intel-recon-table col.intel-recon-col-fetch { width: 5.6rem; }
.intel-recon-table col.intel-recon-col-found { width: 4.85rem; }
.intel-recon-table col.intel-recon-col-actions { width: 8.75rem; }

[data-intel-recon-findings-table] th[data-col="price"],
[data-intel-recon-findings-table] td[data-col="price"],
[data-intel-recon-findings-table] th[data-col="confidence"],
[data-intel-recon-findings-table] td[data-col="confidence"],
[data-intel-recon-findings-table] th[data-col="vector"],
[data-intel-recon-findings-table] td[data-col="vector"],
[data-intel-recon-findings-table] th[data-col="fetch"],
[data-intel-recon-findings-table] td[data-col="fetch"],
[data-intel-recon-findings-table] th[data-col="found"],
[data-intel-recon-findings-table] td[data-col="found"],
[data-intel-recon-findings-table] .intel-list-actions {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    padding-left: 0.28rem;
    padding-right: 0.28rem;
}

[data-intel-recon-findings-table] th[data-col="price"],
[data-intel-recon-findings-table] th[data-col="confidence"],
[data-intel-recon-findings-table] th[data-col="vector"],
[data-intel-recon-findings-table] th[data-col="fetch"],
[data-intel-recon-findings-table] th[data-col="found"],
[data-intel-recon-findings-table] th.intel-list-actions {
    font-size: 0.78rem;
    letter-spacing: -0.01em;
}

[data-intel-recon-findings-table] .intel-list-actions {
    width: 4.35rem;
    max-width: 4.35rem;
}

.fc-pill.fc-pill--recon-confidence {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    width: 4.7rem;
    min-width: 4.7rem;
    max-width: 4.7rem;
    padding-left: 0;
    padding-right: 0;
}

.fc-pill.fc-pill--recon-fetch {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    width: 5.05rem;
    min-width: 5.05rem;
    max-width: 5.05rem;
    padding-left: 0.12rem;
    padding-right: 0.12rem;
    font-size: 0.62rem;
}
.intel-recon-table col.intel-recon-col-skill { width: 14rem; }
.intel-recon-table col.intel-recon-col-findings-n { width: 5.5rem; }
.intel-recon-table col.intel-recon-col-conf-mix { width: 8rem; }
.intel-recon-table col.intel-recon-col-mode { width: 5.5rem; }
.intel-recon-table col.intel-recon-col-run { width: 6.5rem; }
.intel-recon-table col.intel-recon-col-target { width: 8rem; }
.intel-recon-table col.intel-recon-col-document { width: 12rem; }
.intel-recon-table col.intel-recon-col-uom { width: 7rem; }
.intel-recon-table col.intel-recon-col-currency { width: 5rem; }

.intel-recon-finding-row,
.intel-recon-run-row {
    cursor: pointer;
}

#intelReconFindingModal .modal-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
}

#intelReconFindingModal .modal-dialog {
    --bs-modal-width: min(72rem, calc(100vw - 2rem));
}

.intel-recon-file-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.15rem;
}

.intel-recon-file-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fc-text);
    font: inherit;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.intel-recon-file-action:hover,
.intel-recon-file-action:focus {
    color: var(--fc-brand-accent);
    text-decoration: none;
}

.intel-recon-file-action .bi {
    font-size: 1rem;
    opacity: 0.85;
}

#intelReconBrowserModal,
#intelClipboardModal.fc-stacked-modal,
#intelTopicModal.fc-stacked-modal,
#intelCategoryCreateModal.fc-stacked-modal,
#intelFeedPreviewModal.fc-stacked-modal {
    z-index: 1075;
}

.modal-backdrop.fc-stacked-backdrop {
    z-index: 1070;
}

.intel-recon-browser-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    background: var(--fc-bg);
}

#intelReconSkillSnippet {
    min-height: 10rem;
}

.email-preview-frame {
    font-size: 16px;
    line-height: 1.55;
    font-family: Helvetica, Arial, sans-serif;
    color: #111318;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 22rem;
    overflow: auto;
}

.email-preview-frame img {
    max-height: 36px;
    width: auto;
}

.fc-pill .bi {
    flex-shrink: 0;
    font-size: 0.75rem;
    line-height: 1;
}

a.badge.fc-pill {
    text-decoration: none;
    color: inherit;
}

a.badge.fc-pill:hover,
a.badge.fc-pill:focus-visible {
    color: inherit;
    text-decoration: none;
}

button.badge.fc-pill {
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.crm-list-table .tender-col-translate {
    width: 6.75rem;
    white-space: nowrap;
    vertical-align: middle;
}

.crm-list-table.tenders-list-table {
    table-layout: fixed;
    width: 100%;
}

.tenders-list-table .tender-col-title {
    width: auto;
}

.tenders-list-table .tender-col-title a {
    display: inline;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tenders-list-table .tender-col-buyer {
    width: 16rem;
    max-width: 16rem;
    vertical-align: middle;
}

.tenders-list-table.is-awarded .tender-col-buyer {
    width: 12rem;
    max-width: 12rem;
}

.tenders-list-table .tender-buyer-text,
.tenders-list-table .tender-source-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenders-list-table .tender-source-text {
    color: var(--fc-muted, #8b8b8b);
    font-size: 0.75rem;
    line-height: 1.2;
}

.tenders-list-table .tender-col-new {
    width: 4.5rem;
    min-width: 4.5rem;
    max-width: 4.5rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tenders-list-table .tender-col-new .bi-star-fill {
    color: var(--fc-accent, #e8c547);
    font-size: 0.95rem;
}

.tenders-list-table .tender-col-stage {
    width: 5.25rem;
    vertical-align: middle;
}

.tenders-list-table.is-awarded .tender-col-stage {
    width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenders-list-table .tender-col-stage .fc-pill + .fc-pill {
    margin-top: 0.2rem;
}

.tenders-list-table .tender-col-country {
    width: 4.75rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tenders-list-table .tender-country-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.tenders-list-table .tender-country-flag.is-empty {
    font-size: inherit;
    color: var(--fc-muted, #8b8b8b);
}

.tenders-list-table .tender-col-value,
.tenders-list-table .tender-col-date,
.tenders-list-table .tender-col-published,
.tenders-list-table .tender-col-actions {
    vertical-align: middle;
    white-space: nowrap;
}

.tenders-list-table .tender-col-value {
    width: 8rem;
}

.tenders-list-table .tender-col-date,
.tenders-list-table .tender-col-published {
    width: 4.75rem;
}

.tenders-list-table.is-awarded .tender-col-date {
    width: 6.25rem;
}

.tenders-list-table .tender-col-actions {
    width: 2.25rem;
    text-align: center;
}

.tenders-list-table .tender-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fc-muted, #8b8b8b);
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.tenders-list-table .tender-fav-btn:hover,
.tenders-list-table .tender-fav-btn:focus-visible {
    color: var(--fc-accent, #e8c547);
}

.tenders-list-table .tender-fav-btn.is-faved {
    color: var(--fc-accent, #e8c547);
}

.tenders-list-table .tender-fav-icon {
    display: none;
    font-size: 1.05rem;
}

.tenders-list-table .tender-fav-btn .tender-fav-icon-plus,
.tenders-list-table .tender-fav-btn.is-faved .tender-fav-icon-check {
    display: inline-block;
}

.tenders-list-table .tender-fav-btn.is-faved .tender-fav-icon-plus,
.tenders-list-table .tender-fav-btn.is-faved:hover .tender-fav-icon-check,
.tenders-list-table .tender-fav-btn.is-faved:focus-visible .tender-fav-icon-check {
    display: none;
}

.tenders-list-table .tender-fav-btn.is-faved:hover .tender-fav-icon-dash,
.tenders-list-table .tender-fav-btn.is-faved:focus-visible .tender-fav-icon-dash {
    display: inline-block;
}

.tender-sources-card table {
    table-layout: fixed;
    width: 100%;
}

.tender-sources-card .tender-source-identity {
    overflow-wrap: anywhere;
}

.tender-sources-card .tender-source-family {
    width: 8.25rem;
}

.tender-sources-card .tender-source-type {
    width: 3.75rem;
}

.tender-sources-card .tender-source-health {
    width: 5rem;
}

.tender-sources-card .tender-source-attempt {
    width: 7.25rem;
}

.tender-sources-card .tender-source-collected {
    width: 7.75rem;
}

.tender-sources-card .tender-source-historic {
    width: 21.5rem;
    white-space: nowrap;
}

.tender-sources-card .tender-source-error {
    width: 3.4rem;
    max-width: 3.4rem;
    white-space: nowrap;
}

.tender-source-error-link {
    color: var(--bs-danger, #dc3545);
    text-decoration: underline;
}

.tender-source-error-link:hover,
.tender-source-error-link:focus {
    color: var(--bs-danger, #dc3545);
}

.tender-source-error-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
}

.tender-sources-card .tender-source-actions {
    width: 11.5rem;
}

.tender-source-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: center;
    margin: 0;
}

.tender-source-dates label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.8rem;
}

.tender-source-dates input[type="date"] {
    width: 9.5rem;
}

.tender-probe-busy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background: var(--fc-bg-elevated, var(--fc-bg));
}

.tender-probe-busy.d-none {
    display: none !important;
}

.tender-sources-card.is-collecting .table-responsive {
    opacity: 0.45;
    pointer-events: none;
}

.tender-sources-card.is-collecting .fc-card-actions {
    pointer-events: none;
}

.fc-section-heading .fc-card-actions {
    align-self: center;
}

.client-enrichment-summary {
    font-size: 0.925rem;
    line-height: 1.45;
}

.client-enrichment-news-item + .client-enrichment-news-item {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--fc-border);
}

.client-enrichment-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.25rem;
}

.client-enrichment-news-title a {
    color: inherit;
    text-decoration: none;
}

.client-enrichment-news-title a:hover {
    text-decoration: underline;
}

.client-enrichment-news-title .bi {
    font-size: 0.7rem;
}

.client-enrichment-news-summary {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--bs-secondary-color);
}

.client-enrichment-news-meta {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.live-view {
    min-width: 0;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .live-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .live-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.live-cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    aspect-ratio: 16 / 10;
    min-height: min-content;
    overflow: hidden;
}

.live-cell:fullscreen,
.live-cell:-webkit-full-screen {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.live-cell-chrome {
    flex: 0 0 auto;
    padding: 0.4rem 0.5rem 0.35rem;
}

.live-cell-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.4rem 0.55rem;
    min-width: 0;
}

.live-cell-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fc-text);
    min-width: 0;
}

.live-cell-status {
    justify-self: center;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fc-secondary);
}

.live-pill.is-on {
    color: var(--fc-text);
}

.live-pill-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--fc-secondary);
}

.live-pill.is-on .live-pill-dot {
    background: var(--fc-action);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--fc-action) 55%, transparent);
    animation: live-pill-pulse 1.6s ease-out infinite;
}

@keyframes live-pill-pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--fc-action) 55%, transparent);
    }
    70% {
        box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--fc-action) 0%, transparent);
    }
    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--fc-action) 0%, transparent);
    }
}

.live-cell-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
}

.live-cell-sources {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.live-source-btn {
    appearance: none;
    flex: 0 0 auto;
    border: 1px solid var(--fc-border);
    background: var(--fc-bg);
    color: var(--fc-text);
    border-radius: var(--fc-btn-radius);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 0.22rem 0.38rem;
    white-space: nowrap;
}

.live-source-btn:hover,
.live-source-btn:focus-visible {
    border-color: var(--fc-action);
    color: var(--fc-action);
}

.live-source-btn.is-active {
    background: var(--fc-action);
    border-color: var(--fc-action);
    color: var(--fc-on-action);
}

.live-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    flex: 0 0 auto;
    background: #0b0d11;
    overflow: hidden;
}

.live-cell:fullscreen .live-stage,
.live-cell:-webkit-full-screen .live-stage {
    flex: 1 1 auto;
    aspect-ratio: auto;
    height: 100%;
}

.live-stage iframe,
.live-stage .live-player-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.live-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(11, 13, 17, 0.15), rgba(11, 13, 17, 0.55)),
        var(--fc-bg);
    z-index: 2;
}

.live-play-overlay.is-busy .live-play-btn {
    opacity: 0.35;
    pointer-events: none;
}

.live-play-btn {
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--fc-border);
    border-radius: 50%;
    background: var(--fc-surface);
    color: var(--fc-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.live-play-btn .bi {
    font-size: 1.45rem;
    margin-left: 0.1rem;
}

.live-play-btn:hover,
.live-play-btn:focus-visible {
    background: var(--fc-action);
    border-color: var(--fc-action);
    color: var(--fc-on-action);
}

.live-stage--reserved {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            color-mix(in srgb, var(--fc-border) 35%, transparent) 8px,
            color-mix(in srgb, var(--fc-border) 35%, transparent) 9px
        ),
        #0b0d11;
}

.live-intel-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.live-intel-card.is-swap {
    opacity: 0;
}

.live-intel-media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--fc-action) 18%, transparent), transparent 45%),
        #0b0d11;
    background-size: cover;
    background-position: center;
}

.live-intel-copy {
    position: relative;
    z-index: 1;
    padding: 0.7rem 0.75rem 0.75rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78) 38%);
    color: #fff;
}

.live-intel-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.live-intel-title {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-intel-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fc-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-bs-theme='light'] .live-intel-copy {
    background: linear-gradient(180deg, transparent, rgba(17, 19, 24, 0.78) 38%);
}

[data-bs-theme='light'] .live-stage {
    background: #111318;
}

.fc-rank-spark {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 1.15rem;
    vertical-align: middle;
}

.fc-rank-spark-bar {
    display: inline-flex;
    align-items: flex-end;
    width: 4px;
    height: 100%;
    background: color-mix(in srgb, var(--fc-action) 18%, transparent);
}

.fc-rank-spark-bar > span {
    display: block;
    width: 100%;
    min-height: 1px;
    background: var(--fc-action);
}

.fc-rank-radar-wrap {
    flex: 0 0 320px;
    max-width: 100%;
    overflow: visible;
}

.fc-rank-radar {
    width: 100%;
    max-width: 320px;
    height: auto;
    overflow: visible;
    display: block;
}

.fc-rank-radar-grid,
.fc-rank-radar-axis {
    fill: none;
    stroke: var(--bs-border-color);
    stroke-width: 1;
}

.fc-rank-radar-fill {
    fill: color-mix(in srgb, var(--fc-action) 28%, transparent);
    stroke: var(--fc-action);
    stroke-width: 1.5;
}

.fc-rank-radar-label {
    fill: var(--bs-secondary-color);
    font-size: 11px;
}

.fc-rank-radar-score {
    fill: var(--bs-body-color);
    font-size: 22px;
    font-weight: 700;
}

.fc-check-scroll {
    max-height: 12rem;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
    padding: 0.5rem 0.65rem;
}

.fc-player-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.fc-player-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--fc-surface, #fff);
}

.fc-player-logo--lg {
    width: 36px;
    height: 36px;
}

.fc-player-logo-placeholder {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--fc-border, #6c757d);
    color: var(--fc-muted, #adb5bd);
    font-size: 0.7rem;
}

.fc-player-logo-placeholder--lg {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

.crm-list-table {
    width: 100%;
}

.crm-list-table .crm-check-col {
    width: 2rem;
    max-width: 2.25rem;
}

.clients-list-table {
    table-layout: fixed;
    width: 100%;
}

.clients-list-table th,
.clients-list-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.clients-list-table .crm-check-col,
.clients-list-table .client-col-check {
    width: 2.25rem;
    overflow: visible;
}

.clients-list-table .client-col-name {
    width: auto;
}

.clients-list-table .client-col-enrichment {
    width: 7.25rem;
    overflow: visible;
}

.clients-list-table .client-col-enrichment .fc-pill {
    width: auto;
    min-width: 5.15rem;
    max-width: none;
}

.fc-pill.fc-pill--lifecycle-unset {
    color: #4b5563 !important;
    background-color: #e5e7eb !important;
}

[data-bs-theme='dark'] .fc-pill.fc-pill--lifecycle-unset {
    color: #e5e7eb !important;
    background-color: #4b5563 !important;
}

.clients-list-table .client-col-location { width: 7rem; }
.clients-list-table .client-col-country { width: 7.75rem; }
.clients-list-table .client-col-territory { width: 7rem; }
.clients-list-table .client-col-assigned { width: 11.25rem; }
.clients-list-table .client-col-lifecycle { width: 6.5rem; }
.clients-list-table .client-col-status {
    width: 5.75rem;
    overflow: visible;
}
.clients-list-table .client-col-deals { width: 4rem; }
.clients-list-table .client-col-win-rate { width: 5.25rem; }
.clients-list-table .client-col-notes { width: 4.25rem; }

.crm-list-table .fc-actions-heading,
.crm-list-table .fc-actions-cell {
    width: 1%;
    white-space: nowrap;
    text-align: left !important;
    vertical-align: middle;
}

.crm-list-group td {
    background: transparent;
    border-bottom: 0;
    padding-top: 0.85rem;
    font-weight: 500;
}

.crm-list-table tbody tr.crm-list-group,
.crm-list-table tbody tr.crm-list-group:hover > * {
    background: transparent;
    cursor: default;
}

.fc-player-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    white-space: nowrap;
}

.fc-actions-heading {
    text-align: left !important;
}

.fc-player-relation-form {
    margin: 0;
}

.fc-player-relation-form .form-select {
    width: auto;
    min-width: 8.5rem;
    max-width: 11.5rem;
    display: inline-block;
}

.fc-player-detail-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0 1.25rem;
}

.fc-player-detail-heading { min-width: 0; }
.fc-player-detail-heading h2 { font-size: 1.45rem; font-weight: 650; overflow-wrap: anywhere; }
.fc-player-detail-heading .fc-player-name { white-space: normal; }
.fc-player-eyebrow { color: var(--bs-secondary-color); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.fc-player-identity-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--bs-secondary-color); font-size: 0.8rem; }
.fc-player-shortlist-label { color: var(--fc-brand-accent); }
.fc-player-detail-actions {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-left: auto;
}
.fc-player-detail-actions form { margin: 0; }
.fc-player-detail-modal-content { overflow: hidden; }
.fc-player-detail-modal .modal-body { background: var(--fc-bg); }
.fc-player-detail-modal .fc-player-detail-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--fc-border);
    background: var(--fc-surface);
}
.fc-player-detail-modal .fc-player-detail-content { padding: 1.5rem; }
.fc-player-detail-content { overflow-wrap: anywhere; }
.fc-player-section,
.fc-player-market {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--fc-border);
    border-radius: 0.65rem;
    background: var(--fc-surface);
}
.fc-player-market { height: auto; background: color-mix(in srgb, var(--fc-brand-accent) 4%, var(--fc-surface)); }
.fc-player-market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.fc-player-market-grid dt,
.fc-player-facts dt { margin-bottom: 0.35rem; font-size: 0.75rem; font-weight: 500; color: var(--bs-secondary-color); }
.fc-player-market-grid dd,
.fc-player-facts dd { margin: 0; }
.fc-player-market-grid dd { font-size: 0.85rem; }
.fc-player-source-details { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--fc-border); font-size: 0.8rem; }
.fc-player-source-details summary { width: fit-content; color: var(--bs-secondary-color); cursor: pointer; }
.fc-player-section .fc-section-heading { align-items: baseline; gap: 0.4rem 0.75rem; }
.fc-player-section h3 { font-size: 0.95rem; font-weight: 650; }
.fc-player-section .fc-section-heading > small { font-size: 0.75rem; }
.fc-player-overlap-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
.fc-player-overlap-summary .fc-rank-radar-wrap { min-width: 0; }
.fc-player-overlap-copy { min-width: 0; }
.fc-player-score { display: flex; align-items: baseline; gap: 0.3rem; width: auto; }
.fc-player-score strong { font-size: 2.5rem; line-height: 1.2; font-weight: 650; letter-spacing: -0.05em; color: var(--fc-brand-accent); }
.fc-player-score span { color: var(--bs-secondary-color); font-size: 0.85rem; }
.fc-player-criterion-track { display: block; height: 3px; margin-top: 0.4rem; border-radius: 3px; background: color-mix(in srgb, var(--fc-brand-accent) 12%, transparent); }
.fc-player-criterion-track > span { display: block; height: 100%; border-radius: inherit; background: var(--fc-brand-accent); }
.fc-player-detail-table { --bs-table-bg: transparent; }
.fc-player-detail-table > :not(caption) > * > * { padding: 0.6rem 0.5rem; vertical-align: middle; }
.fc-player-detail-table thead th { font-size: 0.7rem; font-weight: 500; color: var(--bs-secondary-color); white-space: nowrap; }
.fc-player-detail-table tbody tr:last-child > * { border-bottom: 0; }
.fc-player-detail-table td { font-variant-numeric: tabular-nums; }
.fc-player-summary { max-width: 85ch; font-size: 0.9rem; line-height: 1.65; margin: 1rem 0 1.5rem; }
.fc-player-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.fc-player-facts > div { grid-column: span 2; min-width: 0; border-top: 1px solid var(--fc-border); padding-top: 0.75rem; }
.fc-player-facts > div:nth-last-child(-n+2) { grid-column: span 3; }
.fc-player-news > li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--fc-border); }
.fc-player-news > li { line-height: 1.6; }
.fc-player-empty { padding: 1.5rem 0; color: var(--bs-secondary-color); font-size: 0.85rem; }
.fc-player-empty > i { display: block; margin-bottom: 0.75rem; font-size: 1.5rem; }
.fc-player-modal-state { min-height: 16rem; display: grid; place-content: center; justify-items: center; gap: 0.75rem; padding: 3.5rem 1.5rem; text-align: center; }
.fc-player-modal-state-close { position: absolute; top: 1rem; right: 1rem; }

@media (max-width: 767.98px) {
    .fc-player-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-player-facts > div { grid-column: auto; }
    .fc-player-facts > div:nth-last-child(-n+2) { grid-column: span 2; }
    .fc-player-market-grid { grid-template-columns: 1fr; gap: 0.85rem; }
}

@media (max-width: 575.98px) {
    .fc-player-detail-modal .fc-player-detail-header { padding: 1rem; }
    .fc-player-detail-modal .fc-player-detail-content { padding: 0.75rem; }
    .fc-player-detail-header { gap: 0.5rem; }
    .fc-player-detail-heading h2 { font-size: 1.15rem; }
    .fc-player-section, .fc-player-market { padding: 1rem; }
    .fc-player-overlap-summary { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 0.75rem; }
    .fc-player-section .fc-card-actions { width: 100%; margin-top: 0.5rem; }
    .fc-player-detail-table > :not(caption) > * > * { padding-inline: 0.35rem; }
}

.fc-shortlist-toggle {
    color: var(--fc-text);
    line-height: 1;
}

.fc-shortlist-toggle.is-on,
.fc-shortlist-toggle:hover,
.fc-shortlist-toggle:focus {
    color: var(--fc-brand-accent);
}

.fc-directness-legend .fc-pill {
    font-weight: 500;
}

.c60-ext {
    max-width: 1200px;
    margin-inline: auto;
}

.c60-ext-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--fc-border);
    border-top: 3px solid var(--fc-brand-accent);
    border-radius: var(--fc-radius);
    background: var(--fc-surface);
}

.c60-ext-intro,
.c60-ext-sidebar {
    min-width: 0;
}

.c60-ext-eyebrow {
    color: var(--fc-brand-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
}

.c60-ext-intro h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 0.65rem;
}

.c60-ext-description {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.c60-ext-intro > .text-muted {
    max-width: 40rem;
    line-height: 1.65;
}

.c60-ext-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.c60-ext-capabilities .bi {
    color: var(--fc-brand-accent);
    margin-right: 0.3rem;
}

.c60-ext-download {
    padding: 1.25rem;
    background: var(--fc-bg);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
}

.c60-ext-mark {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fc-radius);
    background: var(--fc-tab-active-bg);
    color: var(--fc-brand-accent);
    font-size: 1.4rem;
}

.c60-ext-download .btn {
    padding-block: 0.65rem;
    font-weight: 600;
}

.c60-ext-download-meta {
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.5;
    margin: 0.65rem 0 1rem;
}

.c60-ext-install-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--fc-brand-accent);
    text-underline-offset: 3px;
}

.c60-ext-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.c60-ext-panel {
    padding: 1.75rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background: var(--fc-surface);
    min-width: 0;
    scroll-margin-top: 1rem;
}

.c60-ext-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.c60-ext-section-heading h3 {
    font-size: 1.15rem;
    font-weight: 650;
    margin: 0;
}

.c60-ext h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.c60-ext-steps p,
.c60-ext-workflow p,
.c60-ext-help p,
.c60-ext-note p {
    color: var(--fc-secondary);
    font-size: 0.86rem;
    line-height: 1.65;
    margin: 0;
    overflow-wrap: anywhere;
}

.c60-ext strong {
    color: var(--fc-text);
    font-weight: 600;
}

.c60-ext-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.c60-ext-steps li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    position: relative;
    padding-bottom: 1.65rem;
}

.c60-ext-steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 2.1rem;
    bottom: 0.2rem;
    left: 1rem;
    border-left: 1px solid var(--fc-border);
}

.c60-ext-steps li:last-child {
    padding-bottom: 0;
}

.c60-ext-step-n {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fc-tab-active-bg);
    color: var(--fc-brand-accent);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1;
    margin-top: 0.1rem;
}

.c60-ext-address {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0.55rem 0.85rem;
    margin-top: 0.65rem;
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background: var(--fc-bg);
    user-select: all;
}

.c60-ext-filename {
    overflow-wrap: anywhere;
}

.c60-ext-note {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.75rem;
    padding: 1rem;
    border-radius: var(--fc-radius);
    background: var(--fc-bg);
}

.c60-ext-note > .bi {
    color: var(--fc-brand-accent);
}

.c60-ext-workflow {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.85rem;
}

.c60-ext-workflow + .c60-ext-workflow {
    margin-top: 1.3rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--fc-border);
}

.c60-ext-workflow-icon {
    color: var(--fc-brand-accent);
    font-size: 1.25rem;
}

.c60-ext-hint {
    display: block;
    color: var(--fc-secondary);
    font-size: 0.78rem;
    margin-top: 0.65rem;
}

.c60-ext-help {
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
}

.c60-ext-help summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.86rem;
}

.c60-ext-help p {
    margin-top: 0.85rem;
}

@media (max-width: 991.98px) {
    .c60-ext-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .c60-ext-download {
        max-width: 380px;
        width: 100%;
    }

    .c60-ext-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .c60-ext-hero,
    .c60-ext-panel {
        padding: 1.25rem;
    }

    .c60-ext-capabilities {
        gap: 0.65rem 1rem;
    }

    .c60-ext-steps li {
        gap: 0.75rem;
    }
}

.profiler-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
    background: var(--fc-surface-muted, #e9ecef);
}

.profiler-avatar--lg {
    width: 4.5rem;
    height: 4.5rem;
}

.profiler-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fc-primary, #0047ab);
}

.profiler-avatar--fallback svg {
    width: 62%;
    height: 62%;
    display: block;
}

@media (max-width: 767.98px) {
    .intel-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Company profile editor and enrichment review. */
.fc-company-page { max-width: 100rem; margin-inline: auto; }
.fc-company-heading { min-width: 0; flex: 1 1 16rem; }
.fc-company-heading h2 { font-size: 1.5rem; font-weight: 650; overflow-wrap: anywhere; }
.fc-company-logo { display: grid; place-items: center; width: 5rem; height: 5rem; flex: 0 0 auto; background: var(--fc-bg); border: 1px solid var(--fc-border); border-radius: 0.75rem; color: var(--fc-brand-accent); font-size: 2rem; }
.fc-company-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0; background: #fff; border-radius: inherit; }
.fc-company-logo-editor { border-top: 1px solid var(--fc-border); padding-top: 1rem; }
.fc-company-logo-editor summary { width: fit-content; cursor: pointer; font-size: 0.85rem; color: var(--fc-brand-accent); }
.fc-company-logo-editor input[type='file'] { flex: 1 1 16rem; width: auto; }
.fc-company-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1rem; }
.fc-company-form-grid:not(.fc-company-form-grid--compact) { grid-auto-rows: 1fr; }
.fc-company-form-section { height: 100%; padding: 1.5rem; border: 1px solid var(--fc-border); border-radius: 0.6rem; background: var(--fc-surface); min-width: 0; }
.fc-suggest-progress { height: .3rem; margin: 0 0 .75rem; border-radius: 999px; background: var(--fc-border); overflow: hidden; }
.fc-suggest-progress > span { display: block; height: 100%; width: 35%; border-radius: inherit; background: var(--fc-brand-accent, #e8c547); animation: fc-suggest-progress 1.1s ease-in-out infinite; }
@keyframes fc-suggest-progress { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.fc-company-section-title { display: flex; align-items: flex-start; gap: 0.75rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--fc-border); }
.fc-company-section-title > i { color: var(--fc-brand-accent); font-size: 1.25rem; }
.fc-company-section-title h3 { font-size: 1rem; font-weight: 650; margin: 0 0 0.35rem; }
.fc-company-section-title p { font-size: 0.8rem; color: var(--bs-secondary-color); margin: 0; }
.fc-company-form .form-check { padding-block: 0.25rem; }
.fc-company-form .form-check-label { cursor: pointer; }
.fc-company-save { padding: 1rem; background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: 0.6rem; }
.fc-company-form-grid--compact { grid-template-columns: 1fr; gap: 0.75rem; }
.fc-company-form-grid--compact .fc-company-form-section { padding: 1rem; }
.fc-company-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.fc-company-suggestion { display: flex; align-items: flex-start; gap: 0.75rem; border: 1px solid var(--fc-border); border-radius: 0.5rem; padding: 1rem; cursor: pointer; overflow-wrap: anywhere; }
.fc-company-suggestion input { flex-shrink: 0; }
.fc-company-suggestion strong { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; }
.fc-company-suggestion small { display: block; color: var(--bs-secondary-color); }
.fc-company-suggestion .fc-company-proposed { color: var(--fc-brand-accent); margin-top: 0.35rem; }
.fc-player-note { height: auto; }
@media (max-width: 991.98px) {
    .fc-company-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .fc-company-form-section { padding: 1rem; }
    .fc-company-suggestions { grid-template-columns: 1fr; }
    .fc-company-hero .card-body { padding: 1rem !important; }
}

/* Deal detail: summary, next step, and supporting context. */
.deal-detail { max-width: 1440px; margin: 0 auto; }
.deal-detail-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .8rem; text-decoration: none; color: var(--fc-secondary); }
.deal-detail-back:hover { color: var(--fc-primary); }
.deal-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.deal-detail .deal-detail-title { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.deal-detail-actions { flex-shrink: 0; }
.deal-detail-label, .deal-detail-summary dt, .deal-detail-facts dt { color: var(--fc-secondary); font-size: .75rem; font-weight: 500; margin-bottom: .4rem; }
.deal-detail-summary { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; border: 1px solid var(--fc-border); border-radius: var(--fc-radius); margin-bottom: 1rem; background: var(--fc-bg); }
.deal-detail-summary > div { padding: 1rem 1.25rem; min-width: 0; }
.deal-detail-summary > div + div { border-left: 1px solid var(--fc-border); }
.deal-detail-summary dd { margin: 0; font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.deal-detail-summary .deal-detail-value { font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.deal-detail-next { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--fc-border); border-left: 3px solid var(--fc-primary); border-radius: var(--fc-radius); }
.deal-detail-next > .bi { font-size: 1.4rem; color: var(--fc-primary); }
.deal-detail-next.is-overdue { border-left-color: var(--fc-danger); }
.deal-detail-next.is-overdue > .bi, .deal-detail-next.is-overdue .small { color: var(--fc-danger); }
.deal-detail-copy { font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.deal-detail-section { border: 1px solid var(--fc-border); border-radius: var(--fc-radius); padding: 1.25rem; margin-bottom: 1rem; min-width: 0; }
.deal-detail-section .fc-section-heading { align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; }
.deal-detail-section .fc-section-heading h3 { font-size: .95rem; font-weight: 600; }
.deal-detail-section .fc-section-heading small { font-size: .75rem; }
.deal-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.deal-detail-facts dd { font-size: .85rem; margin: 0; overflow-wrap: anywhere; }
.deal-detail-section ul { padding-left: 1.1rem; }
.deal-detail-section .list-group { padding-left: 0; }
.deal-detail-section li { overflow-wrap: anywhere; }
.deal-detail-section form[enctype="multipart/form-data"] > .col-md-5 { width: 100%; }
.deal-detail-section form[enctype="multipart/form-data"] > .col-md-4 { width: 65%; }
.deal-detail-section form[enctype="multipart/form-data"] > .col-md-3 { width: 35%; }
.deal-detail-section .crm-notes-list { margin-top: 1rem; }
.deal-detail-section .crm-notes-list .list-group-item { background: transparent; }
.deal-detail-section .crm-notes-list .list-group-item > div > .small { min-width: 0; }
.deal-detail-section .crm-notes-list .list-group-item form { flex-shrink: 0; }
.deal-detail-section .crm-notes-list .text-muted { display: block; margin-bottom: .3rem; font-size: .75rem; }
@media (max-width: 767.98px) {
    .deal-detail-header { flex-direction: column; gap: 1rem; }
    .deal-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .deal-detail-summary > div { padding: 1rem; }
    .deal-detail-summary > div:nth-child(3) { border-left: 0; }
    .deal-detail-summary > div:nth-child(n+3) { border-top: 1px solid var(--fc-border); }
    .deal-detail-next { flex-wrap: wrap; padding: 1rem; gap: .75rem; }
    .deal-detail-next > .flex-grow-1 { flex-basis: calc(100% - 3rem); }
    .deal-detail-next > a { margin-left: 2.15rem; }
    .deal-detail-section { padding: 1rem; }
    .deal-detail-section .row.g-1 > div { flex: 0 0 100%; width: 100%; }
}
