#syntheses {
    color: var(--tertiary-color);
    overflow-x: hidden;
    overflow-y: auto;
    height: calc(var(--main-section-height) - var(--footer-height));
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
}

#syntheses section.content-header > h1,
#syntheses section.content-header h1 > small {
    color: var(--tertiary-color);
}

#syntheses section.content-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 154px;
}

#syntheses #syntheses-content {
    min-height: calc(100vh - 180px);
    padding-top: 0;
}

#syntheses .syntheses-wrap {
    padding: 14px;
}

#syntheses .syntheses-surface {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(30, 41, 59, 0.2);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.9));
    backdrop-filter: blur(4px);
}

#syntheses .synth-panel {
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
}

#syntheses .synth-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

#syntheses .synth-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#syntheses .synth-panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

#syntheses .synth-panel-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

#syntheses .synth-dev-note {
    margin: -2px 0 10px 0;
    color: #64748b;
    font-size: 11px;
    opacity: 0.9;
}

#syntheses .syntheses-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

#syntheses .synth-card {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

#syntheses .synth-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

#syntheses .synth-card:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

#syntheses .synth-card.is-active {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15);
}

#syntheses .synth-card h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

#syntheses .synth-card p {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

#syntheses .synth-card--critical {
    border-color: #ef4444;
    background: #fef2f2;
}

#syntheses .synth-card--high {
    border-color: #f97316;
    background: #fff7ed;
}

#syntheses .synth-card--warning {
    border-color: #eab308;
    background: #fefce8;
}

#syntheses .synth-card--neutral {
    border-color: #cbd5e1;
    background: #f8fafc;
}

#syntheses .synth-card-help {
    margin: -2px 0 10px 0;
    color: #64748b;
    font-size: 11px;
}

#syntheses .syntheses-refresh-btn {
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 6px 10px;
    min-height: 34px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

#syntheses .syntheses-refresh-btn:hover {
    background: #f1f5f9;
}

#syntheses .synth-export-dropdown {
    position: relative;
    display: inline-flex;
}

#syntheses .synth-export-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    z-index: 20;
}

#syntheses .synth-export-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #0f172a;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
}

#syntheses .synth-export-item:hover {
    background: #f1f5f9;
}

#syntheses .syntheses-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

#syntheses .syntheses-summary-table {
    width: 100%;
}

#syntheses .syntheses-summary-table .tabulator {
    border: 0;
    background: #ffffff;
    font-size: 13px;
    max-height: 62vh;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-col {
    background: #f8fafc;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-col.tabulator-sortable:hover {
    background: #f1f5f9;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-header-filter input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    background: #ffffff;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-cell {
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 3px 6px;
    line-height: 1.2;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-row.synth-summary-row {
    cursor: pointer;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-row.synth-summary-row:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: -2px;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-tableholder {
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
}

#syntheses .syntheses-summary-table .tabulator .tabulator-footer {
    border-top: 1px solid #dbe3ec;
    background: #f8fafc;
}

#syntheses .syntheses-table-wrap::before,
#syntheses .syntheses-table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .15s ease;
}

#syntheses .syntheses-table-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0));
}

#syntheses .syntheses-table-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0));
}

#syntheses .syntheses-table-wrap.has-horizontal-overflow.can-scroll-left::before {
    opacity: 1;
}

#syntheses .syntheses-table-wrap.has-horizontal-overflow.can-scroll-right::after {
    opacity: 1;
}

#syntheses .syntheses-detailed-inline-wrap {
    margin: 0;
}

#syntheses .synth-panel-head--inline {
    margin-bottom: 12px;
}

#syntheses .syntheses-detailed-inline-host {
    min-height: 320px;
}

#syntheses .synth-alert-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
}

#syntheses .synth-alert-pill.synth-alert-pill-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#syntheses .synth-alert-pill.synth-alert-pill-icon-only {
    justify-content: center;
    min-width: 26px;
    padding: 4px 7px;
}

#syntheses .synth-alert-icon {
    width: 13px;
    height: 13px;
    display: inline-block;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--synth-icon);
    mask-image: var(--synth-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

#syntheses .synth-alert-pill.alert-critical {
    background: #fee2e2;
    color: #b91c1c;
}

#syntheses .synth-alert-pill.alert-high {
    background: #ffedd5;
    color: #c2410c;
}

#syntheses .synth-alert-pill.alert-medium {
    background: #fef9c3;
    color: #a16207;
}

#syntheses .synth-alert-pill.alert-low {
    background: #dcfce7;
    color: #166534;
}

#syntheses .synth-alert-pill.alert-none {
    background: #f1f5f9;
    color: #475569;
}

#syntheses .synth-alert-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#syntheses .synth-alert-level-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

#syntheses .synth-profile-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    width: 100%;
    padding: 1px 0;
}

#syntheses .synth-profile-meters {
    display: grid;
    gap: 2px;
    width: 100%;
    min-width: 0;
}

#syntheses .synth-profile-meter {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
    box-sizing: border-box;
}

#syntheses .synth-profile-meter::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--meter, 0%);
    border-radius: inherit;
}

#syntheses .synth-profile-meter-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    padding: 0 5px;
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.55);
    box-sizing: border-box;
}

#syntheses .synth-profile-meter--risk::before {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

#syntheses .synth-profile-meter--alea::before {
    background: linear-gradient(90deg, #f59e0b, #dc2626);
}

#syntheses .synth-profile-labels {
    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    line-height: 1;
    color: #475569;
    white-space: nowrap;
    min-height: 0;
    margin-top: -1px;
    min-width: 0;
}

#syntheses .synth-profile-labels span,
#syntheses .synth-profile-labels strong {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#syntheses .synth-profile-labels strong {
    color: #0f172a;
    font-weight: 700;
}


#syntheses .syntheses-empty {
    padding: 12px;
    color: #64748b;
    font-size: 13px;
}

.synth-custom-tooltip {
    position: fixed;
    z-index: 14000;
    width: max-content;
    max-width: min(92vw, 760px);
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #e2e8f0;
    padding: 7px;
    font-size: 11px;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.24);
    display: none;
}

.synth-custom-tooltip-row {
    display: grid;
    grid-template-columns: minmax(76px, auto) 1fr;
    gap: 5px;
    align-items: start;
    margin-top: 3px;
}

.synth-custom-tooltip-row:first-child {
    margin-top: 0;
}

.synth-custom-tooltip-row--lead {
    grid-template-columns: 1fr;
}

.synth-custom-tooltip-row--plain {
    display: block;
}

.synth-custom-tooltip-label {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-top: 2px;
}

.synth-custom-tooltip-value {
    display: block;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.36);
    color: #f8fafc;
    padding: 3px 6px;
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    white-space: pre-wrap;
}

.synth-custom-tooltip-value-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.synth-custom-tooltip-subvalue {
    display: block;
    max-width: 220px;
    font-size: 9px;
    line-height: 1.25;
    color: rgba(226, 232, 240, 0.82);
    text-align: right;
}

.synth-tooltip-calc-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 5px;
    margin-top: 1px;
}

.synth-tooltip-calc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 70px;
    max-width: 84px;
}

.synth-tooltip-calc-item--label-top {
    justify-content: flex-start;
}

.synth-tooltip-calc-delta {
    display: block;
    min-width: 24px;
    font-size: 10px;
    line-height: 1;
    color: #f8fafc;
    text-align: center;
}

.synth-tooltip-calc-delta--empty {
    visibility: hidden;
}

.synth-tooltip-calc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.36);
    color: #f8fafc;
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.synth-tooltip-calc-label {
    display: block;
    max-width: 84px;
    font-size: 8.5px;
    line-height: 1.15;
    color: rgba(226, 232, 240, 0.88);
    text-align: center;
}

.synth-tooltip-calc-label--top {
    order: -1;
    margin-bottom: 1px;
}

.synth-tooltip-calc-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1;
    padding-top: 16px;
}

.synth-tooltip-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.35;
    color: #fff;
    vertical-align: middle;
}

.synth-tooltip-pill--danger {
    background: #ef4444;
}

.synth-tooltip-pill--warn {
    background: #f97316;
}

.synth-tooltip-pill--soft {
    background: #eab308;
    color: #111827;
}

.synth-tooltip-pill--good {
    background: #16a34a;
}

.synth-tooltip-pill--muted {
    background: #475569;
}

.synth-row-context-menu {
    position: fixed;
    z-index: 13500;
    min-width: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    padding: 6px;
}

.synth-row-context-action {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    color: #0f172a;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.synth-row-context-action i {
    width: 16px;
    text-align: center;
    color: #334155;
}

.synth-row-context-action:hover {
    background: #f1f5f9;
}

.synth-row-context-action.is-disabled,
.synth-row-context-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: transparent;
}

.synth-row-context-action.is-disabled:hover,
.synth-row-context-action:disabled:hover {
    background: transparent;
}

.synth-timeline-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.synth-timeline-dialog {
    width: min(1240px, 96vw);
    max-height: 88vh;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.synth-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #dbe3ec;
    background: #ffffff;
}

.synth-timeline-head h3 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

.synth-timeline-head p {
    margin: 2px 0 0 0;
    color: #64748b;
    font-size: 12px;
}

.synth-timeline-head-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.synth-timeline-close {
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.synth-timeline-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 0;
    flex: 1;
}

.synth-timeline-aside {
    border-right: 1px solid #dbe3ec;
    background: #ffffff;
    padding: 12px;
    overflow-y: auto;
}

.synth-timeline-aside-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.synth-timeline-aside-head h4 {
    margin: 0;
    font-size: 13px;
    color: #334155;
}

.synth-timeline-date-actions {
    display: flex;
    gap: 6px;
}

.synth-small-btn {
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #0f172a;
    border-radius: 7px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
}

.synth-small-btn:hover {
    background: #f1f5f9;
}

.synth-timeline-date-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.synth-timeline-date-item {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 8px;
}

.synth-timeline-date-item small {
    color: #64748b;
}

.synth-timeline-main {
    padding: 12px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.synth-timeline-status {
    font-size: 12px;
    color: #64748b;
}

.synth-timeline-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: #334155;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #ffffff;
    padding: 8px 10px;
}

.synth-timeline-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.synth-mini-chart-card {
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
}

.synth-mini-chart-card h5 {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #334155;
}

.synth-mini-chart-card p {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #0f172a;
    font-weight: 600;
}

.synth-mini-chart-svg {
    width: 100%;
    height: 108px;
}

.synth-mini-chart-svg svg {
    width: 100%;
    height: 100%;
}

.synth-timeline-table-wrap {
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    overflow: auto;
    background: #ffffff;
}

.synth-timeline-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.synth-timeline-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.synth-timeline-table td {
    font-size: 12px;
    color: #0f172a;
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.synth-timeline-empty {
    font-size: 12px;
    color: #64748b;
    padding: 10px;
}

@media (max-width: 1100px) {
    #syntheses .synth-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .synth-timeline-body {
        grid-template-columns: 1fr;
    }

    .synth-timeline-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .synth-timeline-aside {
        border-right: none;
        border-bottom: 1px solid #dbe3ec;
        max-height: 200px;
    }
}
