:root {
    --report-bg: rgba(7, 8, 20, 0.65);
    --report-card: rgba(255, 255, 255, 0.03);
    --report-border: rgba(255, 255, 255, 0.08);
    --report-text: var(--on-surface);
    --report-text-muted: var(--on-surface-secondary);
    --report-text-strong: var(--on-surface);
    --report-accent: var(--primary);
    --report-accent-hover: var(--primary-hover);
    --report-success: var(--accent-green);
    --report-warning: var(--accent-amber);
    --report-danger: var(--accent-red);
    --report-bg-secondary: rgba(25, 27, 56, 0.45);
    --report-bg-tertiary: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] {
    --report-bg: rgba(7, 8, 20, 0.65);
    --report-card: rgba(255, 255, 255, 0.03);
    --report-border: rgba(255, 255, 255, 0.08);
    --report-text: var(--on-surface);
    --report-text-muted: var(--on-surface-secondary);
    --report-text-strong: var(--on-surface);
    --report-accent: var(--primary);
    --report-accent-hover: var(--primary-hover);
    --report-success: var(--accent-green);
    --report-warning: var(--accent-amber);
    --report-danger: var(--accent-red);
    --report-bg-secondary: rgba(25, 27, 56, 0.45);
    --report-bg-tertiary: rgba(255, 255, 255, 0.02);
}

.reports-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--report-border);
}

.reports-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reports-header p {
    color: var(--report-text-muted);
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
}

.reports-actions {
    display: flex;
    gap: 0.5rem;
}

.reports-actions .btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.reports-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    transform: translateY(-4px);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-card .stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--report-text-muted);
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.report-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--glow-primary);
    transform: translateY(-2px);
}

.report-card .report-type-badge {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.report-type-badge.initial {
    background: rgba(139, 92, 246, 0.15);
    color: var(--report-accent);
}

.report-type-badge.update {
    background: rgba(74, 222, 128, 0.15);
    color: var(--report-success);
}

.report-card .report-info {
    flex: 1;
    min-width: 0;
}

.report-card .report-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--report-text);
    margin: 0 0 0.15rem;
}

.report-card .report-summary {
    font-size: 0.78rem;
    color: var(--report-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-card .report-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-card .report-version,
.report-preview-version {
    align-items: center;
    color: var(--report-text-muted);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 0.25rem;
    white-space: nowrap;
}

.report-card .report-changes {
    padding: 0.18rem 0.5rem;
    background: rgba(251, 191, 36, 0.15);
    color: var(--report-warning);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
}

.report-card .report-delete {
    background: none;
    border: none;
    color: var(--report-text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.report-card .report-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--report-danger);
}

.reports-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--report-text-muted);
}

.reports-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
    opacity: 0.35;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reports-empty h5 {
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--report-text);
}

/* Report Viewer Modal */
.report-viewer {
    padding: 0;
}

.report-viewer-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--report-border);
    margin-bottom: 2rem;
}

.report-viewer-header .company-logo {
    max-height: 50px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.report-viewer-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-viewer-header .report-type {
    font-size: 0.82rem;
    color: var(--report-accent);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.report-viewer-header .report-date {
    font-size: 0.78rem;
    color: var(--report-text-muted);
}

.report-month-selector {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--report-border);
}

.report-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--report-border);
}

.report-section:last-child {
    border-bottom: none;
}

.report-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--report-text);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.report-section h4 i {
    color: var(--report-accent);
}

.report-section p {
    color: var(--report-text-muted);
    line-height: 1.6;
    margin: 0;
}

.report-section textarea {
    width: 100%;
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    color: var(--report-text);
    font-size: 0.82rem;
    line-height: 1.55;
    resize: vertical;
    transition: var(--transition);
}

.report-section textarea:focus,
.report-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light), var(--glow-primary);
}

.report-section input {
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    color: var(--report-text);
    font-size: 0.82rem;
    transition: var(--transition);
}

.detection-result-item,
.reference-item {
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.report-table th,
.report-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--report-border);
    font-size: 0.82rem;
}

.report-table th {
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    color: var(--report-text);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.report-table td {
    color: var(--report-text-muted);
}

.report-table tr:hover td {
    background: var(--report-bg-secondary);
}

.changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changes-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--report-border);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--report-text-muted);
    font-size: 0.82rem;
}

.changes-list li:last-child {
    border-bottom: none;
}

.changes-list li i {
    font-size: 0.85rem;
}

.changes-list li i.bi-plus-circle {
    color: var(--report-success);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

.changes-list li i.bi-palette {
    color: var(--report-warning);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.changes-list li i.bi-shield-check {
    color: var(--report-accent);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.report-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--report-border);
}

.report-actions .btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
}

.status-change-display {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.55rem 0;
    padding: 0.55rem;
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    border: 1px solid var(--report-border);
}

.status-before,
.status-after {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.status-swatch {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    border: 2px solid;
    flex-shrink: 0;
}

.status-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--report-text);
}

.status-arrow {
    color: var(--report-text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.methodology-section h6 {
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.55rem;
}

.methodology-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem;
    margin-bottom: 0.35rem;
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.methodology-option:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.methodology-option input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 0.95rem;
    height: 0.95rem;
    cursor: pointer;
}

.methodology-option label {
    cursor: pointer;
    flex: 1;
}

.methodology-option label strong {
    display: block;
    color: var(--report-text);
    font-size: 0.82rem;
    margin-bottom: 0.08rem;
}

.methodology-option label span {
    display: block;
    color: var(--report-text-muted);
    font-size: 0.72rem;
}

.threat-hunt-form .form-label {
    font-weight: 500;
    color: var(--report-text);
}

.threat-hunt-form .form-control,
.threat-hunt-form .form-select {
    background-color: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: var(--report-border);
    color: var(--report-text);
}

.threat-hunt-form .form-control:focus,
.threat-hunt-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light), var(--glow-primary);
}

.changelog-item.hunt {
    border-left: 3px solid var(--accent-purple);
}

.changelog-item.hunt .changelog-item-icon {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.changelog-item.existing {
    border-left: 3px solid #64748b;
}

.changelog-item.existing .changelog-item-icon {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.tech-type-badge {
    display: inline-block;
    padding: 0.08rem 0.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.tech-type-badge.main {
    background: rgba(139, 92, 246, 0.15);
    color: var(--report-accent);
}

.tech-type-badge.sub {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.status-change-minimal {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0;
}

.status-swatch-small {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-xs);
    border: 2px solid;
    flex-shrink: 0;
}

.status-label-small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--report-text);
}

.status-arrow-small {
    color: var(--report-text-muted);
    font-size: 0.75rem;
    margin: 0 0.15rem;
}

.changelog-item.color-change {
    border-left: 3px solid var(--report-accent);
    padding: 0.55rem 0.75rem;
}

.changelog-item.color-change .changelog-item-content {
    padding-left: 0;
}

.report-section .changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-section .changes-list li {
    padding: 0.55rem;
    margin-bottom: 0.35rem;
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    color: var(--report-text);
    font-size: 0.82rem;
}

.report-section .changes-list li strong {
    color: var(--report-text);
}

.report-section h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--report-text);
    margin-top: 1rem;
    margin-bottom: 0.55rem;
}

.leadership-section {
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
}

.leadership-content p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--report-text);
    margin: 0;
}

.hunts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.hunt-card {
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    transition: var(--transition);
}

.hunt-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.hunt-card-name {
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
}

.hunt-card-meta {
    display: flex;
    gap: 0.35rem;
    font-size: 0.68rem;
}

.hunt-card-tech {
    color: var(--report-accent);
    font-weight: 500;
}

.hunt-card-lang {
    color: var(--report-text-muted);
    background: var(--report-bg-secondary);
    padding: 0.08rem 0.3rem;
    border-radius: var(--radius-xs);
}

.query-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.query-list li {
    padding: 0.35rem 0.55rem;
    margin-bottom: 0.25rem;
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--report-accent);
    font-size: 0.78rem;
    color: var(--report-text);
}

.query-list li strong {
    color: var(--report-text-strong);
    font-size: 0.82rem;
}

.query-list li .text-muted {
    color: var(--report-text-muted);
}

.query-list li .small {
    font-size: 0.68rem;
}

.query-list li:last-child {
    margin-bottom: 0;
}

.techniques-at-risk .risk-item {
    padding: 0.55rem;
    margin-bottom: 0.35rem;
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--report-danger);
}

.techniques-at-risk .risk-item:last-child {
    margin-bottom: 0;
}

.techniques-at-risk .risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.techniques-at-risk .risk-count {
    font-size: 0.68rem;
    color: var(--report-text-muted);
    background: rgba(239, 68, 68, 0.15);
    padding: 0.08rem 0.35rem;
    border-radius: var(--radius-pill);
}

.techniques-at-risk .risk-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.techniques-at-risk .risk-tech-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.35rem;
    background: var(--report-bg-tertiary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-xs);
    color: var(--report-text);
}

.techniques-at-risk .risk-more {
    font-size: 0.68rem;
    color: var(--report-text-muted);
    font-style: italic;
}

.coverage-trend .trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    padding: 0.75rem 0.35rem 0;
    min-height: 120px;
    border-bottom: 1px solid var(--report-border);
}

.coverage-trend .trend-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.coverage-trend .trend-bar {
    width: 100%;
    max-width: 60px;
    min-height: 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    transition: height 0.3s ease;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.coverage-trend .trend-value {
    font-size: 0.6rem;
    font-weight: 600;
    color: white;
}

.coverage-trend .trend-label {
    font-size: 0.58rem;
    color: var(--report-text-muted);
    margin-top: 0.25rem;
    text-align: center;
    white-space: nowrap;
}

.coverage-trend .trend-change {
    font-size: 0.58rem;
    font-weight: 600;
    margin-top: 0.08rem;
}

.coverage-trend .trend-up { color: var(--report-success); }
.coverage-trend .trend-down { color: var(--report-danger); }
.coverage-trend .trend-flat { color: var(--report-text-muted); }

.tactics-graph {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tactic-bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tactic-bar-label {
    width: 130px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--report-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tactic-bar-track {
    flex: 1;
    height: 18px;
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 1px solid var(--report-border);
}

.tactic-bar-fill {
    height: 100%;
    border-radius: var(--radius-xs);
    transition: width 0.5s ease;
    min-width: 2%;
    background: var(--gradient-primary);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.tactic-bar-value {
    width: 40px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--report-text);
}

@media print {
    /* Hide everything on the page by default */
    body * {
        visibility: hidden !important;
    }
    
    /* Reset bootstrap modal bounds and overlays */
    .modal, .modal-dialog, .modal-content, .modal-body {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Hide dark backdrop screens */
    .modal-backdrop {
        display: none !important;
    }
    
    /* Isolate the report content container and make it visible */
    #report-export-area,
    #report-export-area * {
        visibility: visible !important;
    }
    
    #report-export-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    
    /* Force exact color, gradient, and SVG printing in modern engines */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Hide standard interactive UI controls and settings inside the report area */
    .report-month-selector,
    .report-export-settings-card,
    .report-export-options,
    .report-actions,
    .modal-header,
    .modal-footer {
        display: none !important;
    }
    
    /* Clean up report preparation author input borders and highlight backgrounds */
    .report-author-input {
        border: none !important;
        outline: none !important;
        background: transparent !important;
        padding: 0 !important;
        color: inherit !important;
        width: auto !important;
    }
    
    /* Professional multi-page break configurations */
    .report-section, .section {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 24px !important;
    }
    
    .pdf-page-break {
        page-break-before: always !important;
        break-before: always !important;
        height: 0;
        margin: 0;
        border: none;
    }
}

.month-selector-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
}

.month-selector-bar label {
    font-weight: 600;
    color: var(--report-text);
}

.month-selector-bar select {
    background-color: var(--report-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: var(--report-border);
    color: var(--report-text);
}

.month-selector-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light), var(--glow-primary);
}

.changelog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--report-border);
}

.changelog-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.changelog-count {
    padding: 0.2rem 0.55rem;
    background: rgba(139, 92, 246, 0.15);
    color: var(--report-accent);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
}

.changelog-section {
    margin-bottom: 1.25rem;
}

.changelog-section h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.changelog-section h5 i {
    color: var(--report-accent);
}

.changelog-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.changelog-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.changelog-item.new {
    border-left: 3px solid var(--report-success);
}

.changelog-item.update {
    border-left: 3px solid var(--report-warning);
}

.changelog-item.color-change {
    border-left: 3px solid var(--report-accent);
}

.changelog-item-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    flex-shrink: 0;
}

.changelog-item.new .changelog-item-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--report-success);
}

.changelog-item.update .changelog-item-icon {
    background: rgba(251, 191, 36, 0.15);
    color: var(--report-warning);
}

.changelog-item.color-change .changelog-item-icon {
    background: rgba(139, 92, 246, 0.15);
    color: var(--report-accent);
}

.changelog-item-content {
    flex: 1;
    min-width: 0;
}

.changelog-item-title {
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.15rem;
}

.changelog-item-detail {
    font-size: 0.78rem;
    color: var(--report-text-muted);
    margin-bottom: 0.35rem;
}

.changelog-item-meta {
    font-size: 0.72rem;
    color: var(--report-accent);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.changelog-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.query-chip {
    padding: 0.15rem 0.35rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-xs);
    font-size: 0.68rem;
    color: var(--report-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.query-chip.more {
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--report-text-muted);
}

.color-swatch-small {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-xs);
    vertical-align: middle;
    margin: 0 2px;
    border: 1px solid var(--report-border);
}

.changelog-empty {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--report-text-muted);
}

.changelog-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
    opacity: 0.35;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.changelog-empty h5 {
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--report-text);
}

.reports-section-header {
    padding-top: 1rem;
    border-top: 1px solid var(--report-border);
}

.reports-section-header h5 {
    font-weight: 600;
    color: var(--report-text);
    margin: 0;
}

/* Monthly Activity Section */
.monthly-activity-section {
    background: var(--report-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.activity-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--report-border);
}

.activity-subsection:first-of-type {
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
}

.activity-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.activity-title.status-title {
    color: var(--report-warning);
}

.activity-title.new-title {
    color: var(--report-success);
}

.activity-title.hunt-title {
    color: var(--accent-purple);
}

.activity-title i {
    font-size: 0.95rem;
}

.activity-cards {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.activity-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.activity-card.status-card {
    border-left: 3px solid #fbbf24;
}

.activity-card.new-card {
    border-left: 3px solid #34d399;
}

.activity-card.sub-card {
    border-left: 3px solid #38bdf8;
}

.activity-card.hunt-card {
    border-left: 3px solid #c084fc;
}

.activity-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.activity-card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    color: var(--report-text);
}

.activity-card-header strong {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.82rem;
    background-color: var(--surface-variant);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--report-border);
    margin-right: 0.15rem;
}

.activity-card-body {
    font-size: 0.78rem;
    color: var(--report-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.5;
}

.activity-card-body i {
    font-size: 0.85rem;
}

.activity-card-footer {
    font-size: 0.76rem;
    color: var(--on-surface);
    background-color: var(--surface-subtle);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
}

.activity-card-footer i {
    font-size: 0.82rem;
}

.activity-type-badge {
    display: inline-block;
    padding: 0.08rem 0.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: auto;
}

.activity-type-badge.main {
    background: rgba(139, 92, 246, 0.15);
    color: var(--report-accent);
}

.activity-type-badge.sub {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.activity-status-flow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.35rem 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    border: 1px solid;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--report-text);
}

.status-pill-label {
    font-size: 0.68rem;
}

.status-arrow {
    color: var(--report-text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Phase 2 Enhancements - Preview Cards, Timeline, Comparison, Insights
   ============================================ */

/* Reports Grid View */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Report Preview Card */
.report-preview-card {
    background: var(--report-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.report-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.report-preview-type {
    display: flex;
    gap: 0.35rem;
}

.report-preview-actions {
    display: flex;
    gap: 0.25rem;
}

.report-preview-actions .btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
}

.report-preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-preview-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--report-text-muted);
    margin-bottom: 0.75rem;
}

.report-preview-meta i {
    margin-right: 0.25rem;
}

.report-preview-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--report-bg-secondary);
    border-radius: var(--radius-sm);
}

.report-preview-chart {
    text-align: center;
}

.chart-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--report-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.mini-bar-chart svg,
.mini-sparkline svg {
    width: 100%;
    height: 40px;
}

.sparkline-trend {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.sparkline-trend.trend-up {
    color: var(--report-success);
}

.sparkline-trend.trend-down {
    color: var(--report-danger);
}

.report-preview-summary {
    font-size: 0.78rem;
    color: var(--report-text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--report-border);
}

/* Timeline View */
.reports-timeline {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.reports-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--report-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--report-card);
    border: 2px solid var(--report-border);
    z-index: 1;
}

.timeline-marker-first {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-date {
    font-size: 0.72rem;
    color: var(--report-text-muted);
    margin-bottom: 0.35rem;
}

.timeline-card {
    cursor: pointer;
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--report-text);
    margin: 0;
}

.timeline-summary {
    font-size: 0.78rem;
    color: var(--report-text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.timeline-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.68rem;
    color: var(--report-text-muted);
}

.timeline-meta i {
    margin-right: 0.25rem;
}

/* Comparison Mode */
.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--report-bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.comparison-report {
    text-align: center;
    flex: 1;
}

.comparison-report h6 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--report-text);
}

.comparison-vs {
    padding: 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--report-accent);
}

.comparison-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comparison-section h6 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.comparison-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comparison-item {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 500;
}

.comparison-item.added {
    background: rgba(74, 222, 128, 0.15);
    color: var(--report-success);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.comparison-item.removed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--report-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-item.changed {
    background: rgba(251, 191, 36, 0.15);
    color: var(--report-warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tech-id {
    font-family: var(--font-mono);
    font-weight: 600;
}

.change-detail {
    margin-left: 0.35rem;
    opacity: 0.8;
}

/* Insights Section */
.report-insights-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--report-border);
}

.report-insights-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-insights-section h5 i {
    color: var(--accent-amber);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.insight-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--report-card);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.insight-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.insight-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.insight-success .insight-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--report-success);
}

.insight-warning .insight-icon {
    background: rgba(251, 191, 36, 0.15);
    color: var(--report-warning);
}

.insight-error .insight-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--report-danger);
}

.insight-info .insight-icon {
    background: rgba(139, 92, 246, 0.15);
    color: var(--report-accent);
}

.insight-content h6 {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--report-text);
}

.insight-content p {
    font-size: 0.78rem;
    color: var(--report-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Empty State */
.reports-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--report-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--report-border);
    color: var(--report-text-muted);
}

.reports-empty i {
    font-size: 3rem;
    color: var(--report-border);
    margin-bottom: 1rem;
    display: inline-block;
}

.reports-empty h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.5rem;
}

.reports-empty p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.reports-empty button,
.reports-empty .btn {
    width: auto !important;
    height: 38px !important;
    min-height: 0 !important;
    max-width: 180px !important;
    padding: 0 1.25rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    margin: 1.25rem auto 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: var(--shadow-sm) !important;
    line-height: 1 !important;
}

/* ============================================
   Revamped Report Styles (Deep Sea / Nebula Theme)
   ============================================ */

/* Posture Dashboard - Matches EML Stats Bar */
.posture-dashboard {
    background: rgba(11, 19, 43, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.posture-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.posture-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    min-height: 70px;
}

.posture-card-coverage {
    border-color: rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.05);
}

.posture-card-detections {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.05);
}

.posture-card-techniques {
    border-color: rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.05);
}

.posture-card-threats {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.05);
}

.posture-card-sigma {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.05);
}

.posture-card-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #a2a6cc;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.posture-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.posture-card-coverage .posture-card-value { color: #a855f7; }
.posture-card-detections .posture-card-value { color: #38bdf8; }
.posture-card-techniques .posture-card-value { color: #34d399; }
.posture-card-threats .posture-card-value { color: #fbbf24; }
.posture-card-sigma .posture-card-value { color: #3b82f6; }

.posture-card-detail {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 500;
}

.posture-card-change {
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.posture-grade-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.posture-grade-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #a2a6cc;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.posture-grade-value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.posture-grade-detail {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.15rem;
}

.posture-grade-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
}

.posture-note {
    font-size: 0.68rem;
    color: #a2a6cc;
    text-align: center;
    line-height: 1.4;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

/* Report Tiers - Matches EML Tier Structure */
.report-tier {
    margin-bottom: 1.5rem;
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.report-tier-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--report-bg-secondary);
    border-bottom: 1px solid var(--report-border);
}

.report-tier-header i {
    color: var(--report-accent);
    font-size: 0.85rem;
}

#tier-1 .report-tier-header { color: #a855f7; }
#tier-2 .report-tier-header { color: #fbbf24; }
#tier-3 .report-tier-header { color: #34d399; }
#tier-4 .report-tier-header { color: #38bdf8; }

.report-tier-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Legacy Milestone Board (kept for backward compatibility) */
.milestone-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.milestone-card {
    background: rgba(11, 19, 43, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.milestone-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 4px 30px rgba(56, 189, 248, 0.25);
    transform: translateY(-2px);
}
.milestone-value {
    font-size: 2rem;
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}
.milestone-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--report-text-muted);
}
.milestone-delta {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
.milestone-delta.up { color: var(--report-success); }
.milestone-delta.down { color: var(--report-danger); }
.milestone-delta.flat { color: var(--report-text-muted); }

/* Tactic Triage Gap Rankings */
.tactic-triage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.triage-column {
    background: rgba(11, 19, 43, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.triage-column.critical {
    border-color: rgba(239, 68, 68, 0.25);
}
.triage-column.moderate {
    border-color: rgba(245, 158, 11, 0.25);
}
.triage-column.strong {
    border-color: rgba(34, 197, 94, 0.25);
}
.triage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--report-border);
}
.triage-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.critical .triage-header-title { color: #f87171; }
.moderate .triage-header-title { color: #fbbf24; }
.strong .triage-header-title { color: #4ade80; }

.triage-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
}
.critical .triage-badge { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.moderate .triage-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.strong .triage-badge { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.triage-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 380px;
    overflow-y: auto;
}
.triage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(31, 41, 55, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--report-text);
}
.triage-item-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
.triage-item-pct {
    font-weight: 700;
    font-family: var(--font-mono);
}
.critical .triage-item-pct { color: #ef4444; }
.moderate .triage-item-pct { color: #f59e0b; }
.strong .triage-item-pct { color: #10b981; }

.triage-empty {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.78rem;
    color: var(--report-text-muted);
    font-style: italic;
}

/* Threat ROI Impact Cards */
.threat-roi-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.threat-roi-card {
    background: rgba(11, 19, 43, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.threat-roi-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 25px rgba(56, 189, 248, 0.15);
}
.threat-roi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}
.threat-roi-card.group::before { background: #38bdf8; }
.threat-roi-card.software::before { background: #a855f7; }

.roi-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 200px;
}
.roi-card-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.roi-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}
.roi-card-type {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.threat-roi-card.group .roi-card-type { color: #38bdf8; }
.threat-roi-card.software .roi-card-type { color: #c084fc; }

.roi-exposure-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-xs);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.roi-exposure-badge.critical { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.roi-exposure-badge.high { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }
.roi-exposure-badge.medium { background: rgba(56, 189, 248, 0.2); border: 1px solid rgba(56, 189, 248, 0.4); color: #38bdf8; }

.roi-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--report-text);
    margin: 0;
}
.roi-card-metric {
    font-size: 0.72rem;
    color: var(--report-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.roi-card-metric strong {
    color: var(--report-text);
    font-weight: 700;
}
.roi-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.roi-tech-chip {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
    color: var(--on-surface-secondary);
}
.roi-tech-chip.more {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.2);
}

/* Interactive Timeline Changelog */
.timeline-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.timeline-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--report-text-muted);
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}
.timeline-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--report-text);
}
.timeline-filter-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.activity-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}
.activity-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}
.timeline-node {
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.timeline-node.status { border-color: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.timeline-node.new { border-color: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
.timeline-node.hunt { border-color: #c084fc; box-shadow: 0 0 8px rgba(192, 132, 252, 0.4); }

.timeline-event {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.timeline-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.timeline-event.hidden {
    display: none !important;
}

/* Redesigned Activity Feed */
.activity-timeline {
    border-left: none !important;
    padding-left: 0 !important;
}
.activity-timeline::before {
    display: none !important;
}
.timeline-node {
    display: none !important;
}
.timeline-event {
    padding-left: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0 !important;
}
.activity-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--report-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: var(--transition) !important;
}
.activity-card:hover {
    border-color: rgba(124, 58, 237, 0.25) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}
.activity-card.status-card {
    border-left: 4px solid #fbbf24 !important;
}
.activity-card.new-card {
    border-left: 4px solid #34d399 !important;
}
.activity-card.new-card.sub-card {
    border-left: 4px solid #38bdf8 !important;
}

/* Redesigned Detection Results */
.detection-result-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--report-border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    transition: var(--transition) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.detection-result-card:hover {
    border-color: rgba(124, 58, 237, 0.25) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}
.detection-result-card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--report-border) !important;
    padding: 0.6rem 1rem !important;
}
.detection-result-card-body {
    padding: 1.1rem !important;
}

/* Direct inline author field styling */
.report-author-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}
.report-author-input:focus {
    border-bottom: 1px dashed #38bdf8 !important;
}

/* ============================================
   Key Metrics Grid
   ============================================ */

.key-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.key-metric-card {
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.key-metric-card:hover {
    border-color: var(--report-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.key-metric-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.key-metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--report-text);
    margin-bottom: 0.15rem;
}

.key-metric-detail {
    font-size: 0.7rem;
    color: var(--report-text-muted);
}

/* ============================================
   Team Assignments Section
   ============================================ */

.team-assignments-wrapper {
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.team-assignments-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--report-border);
}

.team-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-select-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--report-text);
    white-space: nowrap;
}

.team-select {
    flex: 1;
    max-width: 350px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background: var(--report-bg-tertiary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    color: var(--report-text);
    cursor: pointer;
}

.team-select option {
    background: var(--report-bg-secondary);
    color: var(--report-text);
}

.team-select:focus {
    outline: none;
    border-color: var(--report-accent);
}

.team-assignments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-assignments-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--report-text-muted);
}

.team-assignments-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.team-assignment-card {
    background: var(--report-bg-tertiary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
}

.team-assignment-card:hover {
    border-color: var(--report-accent);
}

.team-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.team-assignment-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--report-text);
}

.team-assignment-title i {
    font-size: 1rem;
}

.team-remove-btn {
    background: none;
    border: none;
    color: var(--report-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.team-remove-btn:hover {
    color: var(--report-danger);
    background: rgba(239, 68, 68, 0.1);
}

.team-assignment-focus {
    font-size: 0.8rem;
    color: var(--report-text-muted);
    margin-bottom: 0.5rem;
}

.team-assignment-focus strong,
.team-assignment-priority strong,
.team-assignment-actions strong {
    color: var(--report-text);
}

.team-assignment-focus label,
.team-assignment-priority label,
.team-assignment-actions label {
    color: var(--report-text);
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.team-assignment-focus input,
.team-assignment-priority input,
.team-assignment-actions textarea {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    color: var(--report-text);
    font-size: 0.78rem;
}

.team-assignment-focus input:focus,
.team-assignment-priority input:focus,
.team-assignment-actions textarea:focus {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--report-accent);
    box-shadow: none;
    color: var(--report-text);
}

.team-assignment-priority {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--report-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 0.5rem;
}

.team-assignment-actions {
    font-size: 0.75rem;
    color: var(--report-text-muted);
}

.team-rec-hint {
    color: var(--report-text-muted);
    font-size: 0.66rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.team-assignment-actions ul {
    margin: 0;
    padding-left: 1.25rem;
}

.team-assignment-actions li {
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

/* ============================================
   Sentinel Candidate Review Section
   ============================================ */

.sentinel-review-section {
    background: var(--report-bg-tertiary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.sentinel-review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.sentinel-review-header i {
    font-size: 1.1rem;
}

.sentinel-review-desc {
    font-size: 0.75rem;
    color: var(--report-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sentinel-candidates-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sentinel-candidate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.1);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sentinel-candidate-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.sentinel-candidate-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--report-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentinel-candidate-tech {
    font-size: 0.65rem;
    color: var(--report-text-muted);
    font-family: var(--font-mono);
}

.sentinel-candidate-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sentinel-candidate-month {
    font-size: 0.65rem;
    color: var(--report-text-muted);
}

.sentinel-review-actions {
    font-size: 0.75rem;
    color: var(--report-text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.sentinel-review-actions strong {
    color: var(--report-text);
    display: block;
    margin-bottom: 0.25rem;
}

.sentinel-review-actions ul {
    margin: 0;
    padding-left: 1.25rem;
}

.sentinel-review-actions li {
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

/* ============================================
   Risk Heat Map
   ============================================ */

.risk-heatmap-container {
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.risk-heatmap-grid {
    display: grid;
    grid-template-columns: 120px repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.risk-heatmap-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.risk-heatmap-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--report-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-heatmap-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--report-text);
    justify-content: flex-start;
    padding-left: 0.5rem;
}

.risk-heatmap-quadrant {
    min-height: 80px;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid;
}

.risk-heatmap-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--report-text);
}

.risk-heatmap-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.risk-heatmap-group {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: var(--report-text);
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.risk-heatmap-empty {
    font-size: 1rem;
    color: var(--report-text-muted);
    opacity: 0.5;
}

.risk-heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--report-border);
}

.risk-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--report-text-muted);
}

.risk-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   Sigma References in Report View
   ============================================ */

.sigma-references-section {
    background: var(--report-bg-tertiary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.sigma-ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sigma-ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.5rem;
    background: var(--report-bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--report-border);
}

.sigma-ref-title {
    font-size: 0.75rem;
    color: var(--report-text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.sigma-ref-link {
    font-size: 0.7rem;
    color: var(--report-accent);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sigma-ref-link:hover {
    text-decoration: underline;
}

/* ============================================
   New Threat Hunt Queries Section
   ============================================ */

.new-queries-section {
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.query-lang-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.query-lang-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.new-queries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.new-query-card {
    background: var(--report-bg-tertiary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    transition: var(--transition);
}

.new-query-card:hover {
    border-color: var(--report-accent);
    transform: translateY(-1px);
}

.new-query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.new-query-header-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.report-sentinel-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
}

.new-query-lang {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid;
    letter-spacing: 0.05em;
}

.new-query-date {
    font-size: 0.65rem;
    color: var(--report-text-muted);
}

.new-query-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--report-text);
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.new-query-desc {
    font-size: 0.72rem;
    color: var(--report-text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.new-query-techs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.new-query-tech-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.new-query-tech-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--report-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
}

.new-query-tech-badge {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
}

.new-query-tech-badge.sub {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
}

.report-basis-note {
    align-items: flex-start;
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    color: var(--report-text-muted);
    display: flex;
    gap: 0.5rem;
    line-height: 1.45;
    margin: 1rem 1.5rem;
    padding: 0.8rem 1rem;
}

.report-basis-note strong {
    color: var(--report-text);
    flex: 0 0 auto;
}

.top-actions-section {
    margin: 1rem 0;
}

.top-actions-grid {
    display: grid;
    gap: 0.75rem;
}

.top-action-card {
    align-items: flex-start;
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto 1fr;
    padding: 0.85rem 1rem;
}

.top-action-index {
    align-items: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: var(--radius-sm);
    color: #38bdf8;
    display: inline-flex;
    font-weight: 800;
    height: 1.65rem;
    justify-content: center;
    width: 1.65rem;
}

.top-action-priority {
    color: var(--report-text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.top-action-card strong {
    color: var(--report-text);
    display: block;
    margin-top: 0.15rem;
}

.top-action-card p {
    color: var(--report-text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0.25rem 0 0;
}

@media (max-width: 720px) {
    .report-basis-note {
        flex-direction: column;
        margin: 1rem;
    }
}

.report-version-appendix {
    background: var(--report-bg-secondary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.report-version-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.report-version-summary-grid > div {
    background: var(--report-bg-tertiary);
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
}

.report-version-summary-grid span {
    display: block;
    color: var(--report-text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-version-summary-grid strong {
    display: block;
    color: var(--report-text-strong);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.report-version-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.report-version-counts span {
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    color: var(--report-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.report-version-impact-list {
    border: 1px solid var(--report-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.report-version-impact-row {
    align-items: center;
    border-bottom: 1px solid var(--report-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
}

.report-version-impact-row:last-child {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .report-version-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-version-impact-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}



