.threat-model-header-grid {
    grid-template-columns: 1fr auto 1fr;
}

.threat-model-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Linking Mode Info Window */
.linking-mode-info {
    position: fixed;
    top: 45px;
    right: 20px;
    padding: 12px 14px;
    z-index: 1000;
    max-width: 340px;
    background-color: rgba(239, 246, 255, 0.96);
    border: 1px solid #c7dbfb;
    color: #1e3a8a;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.14);
    animation: linkingWindowSlideIn 0.2s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes linkingWindowSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.linking-mode-info p {
    margin: 0;
    color: inherit;
}

.linking-mode-info__header {
    gap: 0.5rem;
}

.linking-mode-info__title {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.93rem;
    line-height: 1.25;
}

.linking-mode-info__title i {
    font-size: 0.95rem;
}

.linking-mode-info__close {
    transform: scale(0.82);
    opacity: 0.7;
    margin-top: 0.05rem;
}

.linking-mode-info__meta {
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    color: #334155 !important;
    font-size: 0.76rem;
    line-height: 1.35;
}

.linking-mode-info .text-muted {
    color: #334155 !important;
}

.linking-mode-selected {
    margin-top: 0.6rem !important;
}

.linking-mode-selected__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.linking-mode-info [data-assessment-assets--index-target="linkingSelectedName"],
.linking-mode-info [data-assessment-threats--index-target="linkingSelectedName"],
.linking-mode-info [data-assessment-threats-to-assets--index-target="linkingSelectedName"],
.linking-mode-info [data-assessment-security-controls--index-target="scSelectedName"],
.linking-mode-info [data-assessment-security-controls--index-target="assetContextScName"],
.linking-mode-info [data-assessment-security-controls--index-target="assetSelectedName"] {
    color: #1e3a8a;
    border-left: 3px solid #3b82f6 !important;
}

.linking-mode-selected__value,
.linking-mode-info [data-assessment-assets--index-target="linkingSelectedName"],
.linking-mode-info [data-assessment-threats--index-target="linkingSelectedName"],
.linking-mode-info [data-assessment-threats-to-assets--index-target="linkingSelectedName"],
.linking-mode-info [data-assessment-security-controls--index-target="scSelectedName"],
.linking-mode-info [data-assessment-security-controls--index-target="assetContextScName"],
.linking-mode-info [data-assessment-security-controls--index-target="assetSelectedName"] {
    padding: 0.48rem 0.65rem !important;
    font-size: 0.82rem;
    line-height: 1.3;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.effectiveness-help {
    overflow: hidden;
    margin-top: 0.6rem !important;
    padding: 0.45rem 0.6rem !important;
    border-color: #d5e4fb !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

.effectiveness-help__summary {
    display: flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
    user-select: none;
    font-size: 0.76rem;
    line-height: 1.3;
}

.effectiveness-help__summary::-webkit-details-marker {
    display: none;
}

.effectiveness-help__summary::after {
    content: '\F282';
    font-family: bootstrap-icons;
    margin-left: auto;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.effectiveness-help[open] .effectiveness-help__summary::after {
    transform: rotate(180deg);
}

.effectiveness-help__body {
    color: inherit;
    font-size: 0.76rem;
    line-height: 1.4;
}

.effectiveness-help__description,
.linking-mode-instructions__text,
.effectiveness-help__footer {
    font-size: 0.76rem;
    line-height: 1.4;
}

.linking-mode-instructions {
    margin-top: 0.45rem !important;
}

.effectiveness-help__footer {
    margin-top: 0.5rem !important;
}
