/**
* Template Name: Kelly
* Template URL: https://bootstrapmade.com/kelly-free-bootstrap-cv-resume-html-template/
* Updated: Mar 17 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root,
[data-bs-theme="light"] {
    --app-font-sans: "Plus Jakarta Sans", sans-serif;
    --app-font-mono: "DM Mono", monospace;
    --app-success: #34b7a7;
    --app-success-hover: #2fa394;
    --app-success-active: #278d81;
    --app-success-rgb: 52, 183, 167;
    --app-success-text-emphasis: #1f6f66;
    --app-success-bg-subtle: #dcf5f2;
    --app-success-border-subtle: #a7e3db;

    --bs-success: var(--app-success);
    --bs-success-rgb: var(--app-success-rgb);
    --bs-success-text-emphasis: var(--app-success-text-emphasis);
    --bs-success-bg-subtle: var(--app-success-bg-subtle);
    --bs-success-border-subtle: var(--app-success-border-subtle);
    --bs-form-valid-color: var(--app-success);
    --bs-form-valid-border-color: var(--app-success);

    /* Dark UI */
    --app-color-dark: #20242d;
    --app-color-dark-hover: #141922;

    /* Text */
    --app-color-body-text: #444444;
    --app-color-text-secondary: #5f6f81;
    --app-color-text-muted: #8a95a3;
    --app-color-heading: #22252c;

    /* Surfaces & borders */
    --app-color-bg: #FAF9F5;
    --app-color-surface: #ffffff;
    --app-color-surface-subtle: #f7f9fb;
    --app-color-border: rgba(34, 34, 34, 0.08);
    --app-color-border-input: #dbe2ed;

    --app-max-width: 1500px;
}

.card {
    border-color: var(--app-color-border);
}

@font-face {
    font-family: 'Fraunces Editorial';
    src: url("../fonts/fraunces-editorial-latin.5d2835174326.woff2") format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.btn-success {
    --bs-btn-bg: var(--app-success);
    --bs-btn-border-color: var(--app-success);
    --bs-btn-hover-bg: var(--app-success-hover);
    --bs-btn-hover-border-color: var(--app-success-hover);
    --bs-btn-focus-shadow-rgb: var(--app-success-rgb);
    --bs-btn-active-bg: var(--app-success-active);
    --bs-btn-active-border-color: var(--app-success-active);
    --bs-btn-disabled-bg: var(--app-success);
    --bs-btn-disabled-border-color: var(--app-success);
}

.btn-outline-success {
    --bs-btn-color: var(--app-success);
    --bs-btn-border-color: var(--app-success);
    --bs-btn-hover-bg: var(--app-success);
    --bs-btn-hover-border-color: var(--app-success);
    --bs-btn-focus-shadow-rgb: var(--app-success-rgb);
    --bs-btn-active-bg: var(--app-success-hover);
    --bs-btn-active-border-color: var(--app-success-hover);
    --bs-btn-disabled-color: var(--app-success);
    --bs-btn-disabled-border-color: var(--app-success);
}

/* ── Global button radius token ── */
.btn {
    --bs-btn-border-radius: 10px;
}

/* ── Canonical app buttons ── */
.app-btn-primary,
.app-btn-secondary,
.app-btn-dark {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 0.94rem;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 54px;
    padding: 0.85rem 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.app-btn-primary {
    background: var(--app-success);
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--app-color-surface);
    min-width: 220px;
}

.app-btn-primary:hover,
.app-btn-primary:focus-visible {
    background: var(--app-success-hover);
    color: var(--app-color-surface);
}

.app-btn-secondary {
    background: var(--app-color-surface);
    border: 1px solid var(--app-color-border-input);
    box-shadow: none;
    color: var(--app-color-dark);
    min-width: 220px;
}

.app-btn-secondary:hover,
.app-btn-secondary:focus-visible {
    background: var(--app-color-surface-subtle);
    color: var(--app-color-dark);
}

.app-btn-dark {
    background: var(--app-color-dark);
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--app-color-surface);
    padding: 0.85rem 1.4rem;
    width: 100%;
}

.app-btn-dark:hover,
.app-btn-dark:focus-visible {
    background: var(--app-color-dark-hover);
    color: var(--app-color-surface);
}

html {
    min-height: 100%;
}

body {
    background-color: var(--app-color-bg);
    font-family: var(--app-font-sans);
    font-weight: 400;
    color: var(--app-color-body-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-variant-numeric: lining-nums tabular-nums;
}

.app-flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.app-flash-message {
    position: relative;
    text-align: center;
    border-radius: 16px;
    border-width: 1px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    padding: 1rem 3.5rem 1rem 1.25rem;
    line-height: 1.45;
    font-weight: 500;
}

.app-flash-message .btn-close {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    opacity: 0.38;
    transform: translateY(-50%) scale(0.9);
}

.app-flash-message .btn-close:hover,
.app-flash-message .btn-close:focus {
    opacity: 0.6;
    box-shadow: none;
}

.sortable-results-header {
    white-space: nowrap;
    text-align: left;
}

.sortable-results-header-numeric,
.sortable-results-cell-numeric {
    text-align: right;
}

.sortable-results-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font: inherit;
    font-weight: inherit;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
}

.sortable-results-header-numeric .sortable-results-button {
    justify-content: flex-end;
}

.sortable-results-header-centered,
.sortable-results-cell-centered {
    text-align: center;
}

.sortable-results-header-centered .sortable-results-button {
    justify-content: center;
}

.sortable-results-button:hover {
    color: var(--app-success);
}

.sortable-results-indicator::before {
    content: "⇅";
    font-size: 0.85em;
    opacity: 0.45;
}

.sortable-results-header[data-sort-direction="asc"] .sortable-results-indicator::before {
    content: "↑";
    opacity: 1;
}

.sortable-results-header[data-sort-direction="desc"] .sortable-results-indicator::before {
    content: "↓";
    opacity: 1;
}

.sortable-results-summary-row th,
.sortable-results-summary-row td {
    font-weight: 700 !important;
}

.js-sortable-results td.value-positive,
.js-sortable-results th.value-positive {
    color: #198754 !important;
}

.js-sortable-results td.value-negative,
.js-sortable-results th.value-negative {
    color: #dc3545 !important;
}

.results-mini-nav-wrap {
    width: 100%;
    background: var(--app-color-bg);
}

.results-toolbar-action {
    display: flex;
    justify-content: center;
}


.results-mini-nav {
    width: 100%;
    background: var(--app-color-bg);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    padding-top: 2px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}


.results-mini-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    min-height: unset;
    padding: 0;
    width: 100%;
}

.results-mini-nav-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.75rem;
    min-width: 0;
}

.results-mini-nav-note {
    margin-left: auto;
    color: #6c757d;
    font-family: var(--app-font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.results-mini-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-family: var(--app-font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 0.1rem 13px;
    transition: color 0.18s ease;
}

.results-mini-nav-link-utility {
    color: #6c757d;
    font-weight: 600;
    padding-right: 1.5rem;
    white-space: nowrap;
}

.results-mini-nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.results-mini-nav-link-icon i {
    transition: transform 0.2s ease;
}

.results-mini-nav-link-utility:hover,
.results-mini-nav-link-utility:focus {
    color: #212529;
}

.results-mini-nav-link-utility:hover .results-mini-nav-link-icon,
.results-mini-nav-link-utility:focus .results-mini-nav-link-icon,
.results-mini-nav-link-utility:focus-visible .results-mini-nav-link-icon {
    background: rgba(52, 183, 167, 0.1);
    color: #212529;
}

.results-mini-nav-link-utility:hover .results-mini-nav-link-icon i,
.results-mini-nav-link-utility:focus .results-mini-nav-link-icon i,
.results-mini-nav-link-utility:focus-visible .results-mini-nav-link-icon i {
    transform: rotate(110deg);
}

.results-mini-nav-link-utility::before {
    display: none;
}

.results-mini-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--app-success);
    opacity: 0;
    transform: scaleX(0.7);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.results-mini-nav-link:hover,
.results-mini-nav-link:focus {
    color: #212529;
}

.results-mini-nav-link.is-active {
    color: #212529;
    font-weight: 700;
}

.results-mini-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

@media (max-width: 767px) {
    .results-mini-nav-link-utility {
        margin-right: 0.15rem;
        padding-right: 1rem;
    }

    .results-mini-nav-link-utility::before {
        height: 22px;
        right: -0.05rem;
    }
}

.results-process-again-button {
    min-width: 480px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
}

.results-copy-toast {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 1080;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    background: rgba(34, 34, 34, 0.92);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.results-copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.results-copy-toast.is-error {
    background: rgba(185, 48, 68, 0.95);
}

.value-positive {
    color: #198754;
}

.value-negative {
    color: #dc3545;
}

.report-actions-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-export-form {
    margin: 0;
}

.results-export-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    background: #fff;
    font-family: var(--app-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-success);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.results-export-button:hover,
.results-export-button:focus-visible {
    background: #f0fdf4;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
    color: var(--app-success-hover, var(--app-success));
}

.results-export-button i {
    font-size: 0.88rem;
}

.instructions-hero {
    max-width: 980px;
    margin: 0 auto 2rem;
    text-align: center;
}

.instructions-page {
    height: auto;
    max-height: none;
    overflow: visible !important;
}

.about > .container > .instructions-page,
.about > .container > .instructions-page > .container {
    height: auto;
    max-height: none;
    overflow: visible !important;
}

.instructions-lead {
    color: #5f6f81;
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 860px;
}

.instructions-quickstart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start;
}

.instruction-card,
.toc-card {
    background: transparent;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 0;
    box-shadow: none;
    padding: 1.15rem 1.2rem;
}

.instruction-card h4,
.toc-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #22252c;
    margin-bottom: 0.75rem;
}

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

.instruction-steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: #444b55;
}

.instruction-steps li i {
    color: var(--app-success);
    margin-top: 0.15rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start;
}

.toc-card a {
    text-decoration: none;
}

.video-guides-section {
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
}

.video-guides-header {
    border-bottom: 0;
    padding: 0;
    background: var(--app-color-bg);
    margin-top: -0.75rem;
}

.video-guides-header h2 {
    color: #22252c;
    margin-bottom: 0;
}

.video-guides-header p {
    color: #5f6f81;
    margin: 0 0 0.35rem;
}

.video-guides-header.section-title p {
    margin-bottom: 0;
}

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

.video-thumb {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
    color: #22252c;
    min-width: 0;
}

.video-thumb:hover {
    text-decoration: none;
    color: #22252c;
}

.video-thumb-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.video-thumb-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.18s ease;
}

.video-thumb:hover .video-thumb-img img {
    opacity: 0.88;
}

.video-thumb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.2rem;
}

.video-thumb-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22252c;
}

.note-box {
    border-left: 4px solid var(--app-success);
    background: #fafcfc;
    border-radius: 0;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.warning-box {
    border-left: 4px solid #dc3545;
    background: #fdf7f7;
    border-radius: 0;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    color: #7a1f2a;
}

.video-link-card {
    background: transparent;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    padding: 1.1rem 1.1rem 1.25rem;
    margin-top: 1rem;
    text-align: left;
}

.video-link-card h5 {
    color: #22252c;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-link-card p {
    color: #5f6f81;
    margin-bottom: 0.9rem;
}

.video-preview {
    position: relative;
    display: block;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid rgba(34, 34, 34, 0.08);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.video-preview:hover,
.video-preview:focus {
    text-decoration: none;
    border-color: rgba(34, 34, 34, 0.18);
    box-shadow: 0 6px 18px rgba(20, 23, 29, 0.08);
}

.video-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.video-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 23, 29, 0.08), rgba(20, 23, 29, 0.35));
}

.video-preview-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(20, 23, 29, 0.22);
}

.video-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: #22252c;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.video-link-btn:hover {
    color: #fff;
    background: #14171d;
}

#how_to_prepare_ib_reports_text_version,
#how_to_fillin_pitax {
    overflow-x: hidden;
}

.instructions-screenshot,
.text-start.mb-3 {
    max-width: 100%;
    overflow: hidden;
}

.img_fit_to_size {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .report-actions-inline {
        flex-direction: column;
    }

    .instructions-quickstart,
    .toc-grid,
    .video-guides-grid {
        grid-template-columns: 1fr;
    }

    .video-guides-header {
        border-bottom: 0;
    }

}

.results-chart-section {
    background: var(--app-color-bg) !important;
}

.results-chart-section + .results-chart-section {
    padding-top: 0.5rem;
}

.results-content-tabs {
    margin-top: 2.25rem;
}

.results-execution-time {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.72rem;
    color: #c0c0c0;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.results-section-header {
    background: var(--app-success) !important;
    color: #fff !important;
    border-color: var(--app-success) !important;
    padding: 0.75rem 1.25rem;
}

.results-section-header .btn-link {
    color: #fff !important;
}

.results-tabs-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: var(--app-color-bg);
    margin-bottom: 1.4rem;
}

.results-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-family: var(--app-font-sans);
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.results-tab-button:hover,
.results-tab-button:focus {
    color: #1f2937;
}

.results-tab-button.is-active,
.results-tab-button.active {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.results-tab-panel.is-active {
    display: block;
    animation: resultsTabFadeIn 0.2s ease;
}

.results-tab-panel[hidden] {
    display: none !important;
}

.results-table-nav {
    position: sticky;
    top: 80px;
    z-index: 10;
    margin: 0 0 1.5rem;
    background: var(--app-color-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    overflow-x: auto;
    scrollbar-width: none;
}

.results-table-nav::-webkit-scrollbar {
    display: none;
}

.results-table-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    min-width: 100%;
    width: max-content;
}

.results-table-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-family: var(--app-font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: color 0.18s ease;
}

.results-table-nav-link::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--app-success);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.results-table-nav-link:hover,
.results-table-nav-link:focus {
    color: #1f2937;
}

.results-table-nav-link:hover::after {
    opacity: 0.4;
    transform: scaleX(1);
}

.results-table-nav-link.is-active {
    color: #1f2937;
}

.results-table-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.results-table-section,
.results-chart-section {
    scroll-margin-top: 132px;
    padding-top: 1.5rem;
    min-height: 65vh;
}

.results-table-section-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.85rem;
}

.results-table-section .table-responsive {
    background: var(--app-color-surface);
    border: 1px solid #e4e4e7;
    border-radius: 1rem;
    overflow: hidden;
}

.results-table-section .table {
    margin-bottom: 0;
    border-color: #e4e4e7;
}

.results-table-section .table thead th {
    background: transparent;
    border-bottom: 1px solid #e4e4e7 !important;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    white-space: nowrap;
    vertical-align: middle;
}

.results-table-section .table tbody tr {
    border-top: 1px solid #e4e4e7;
}

.results-table-section .table tbody tr:first-child {
    border-top: none;
}

.results-table-section .table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border: none;
}

.results-table-anchor {
    scroll-margin-top: 132px;
}

@keyframes resultsTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-chart-card {
    height: 100%;
    border-radius: 14px;
    background: var(--app-color-bg);
    padding: 1.25rem 1.25rem 1rem;
}

.results-chart-card-header {
    position: relative;
    text-align: center;
    padding-right: 2.75rem;
}

.results-chart-title-row {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.results-chart-heading-text {
    color: #1f2937;
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: normal;
    line-height: 1.15;
    margin-bottom: 0;
}

.results-chart-title-separator {
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.15;
}

.results-chart-total-text {
    color: inherit;
}

.results-chart-total-text.is-positive {
    color: #198754;
}

.results-chart-total-text.is-negative {
    color: #dc3545;
}

.results-chart-total-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.results-chart-total-badge.is-positive {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

.results-chart-total-badge.is-negative {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.results-chart-expand-button {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.results-chart-expand-button:hover {
    background: rgba(52, 183, 167, 0.16);
    color: #1f2937;
    transform: translateY(-1px);
}

.results-chart-expand-button:focus-visible {
    outline: 2px solid rgba(52, 183, 167, 0.45);
    outline-offset: 2px;
}

.results-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.results-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #334155;
    font-weight: 600;
}

.results-chart-legend-swatch {
    display: inline-block;
    flex-shrink: 0;
}

.results-chart-legend-swatch.is-square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--legend-color);
}

.results-chart-legend-swatch.is-dashed {
    width: 22px;
    height: 0;
    border-top: 2px dashed var(--legend-color);
}

.results-chart-card-body {
    position: relative;
    min-height: 320px;
    margin-top: 1rem;
}

.results-chart-card-body canvas {
    width: 100% !important;
    height: 100% !important;
}

.results-bubble-with-panel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.results-bubble-canvas-wrap {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
}

.results-top-trades-panel {
    flex: 0 0 clamp(210px, 18%, 280px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.15rem 0;
    align-self: stretch;
    justify-content: center;
    text-align: left;
}

.results-top-trades-section {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    align-items: stretch;
}

.results-top-trades-section + .results-top-trades-section {
    margin-top: 0.7rem;
}

.results-top-trades-section-title {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0 0.35rem 0.12rem;
    text-align: left;
}

.results-top-trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.22rem 0.35rem;
    border-radius: 5px;
    cursor: pointer;
    gap: 0.35rem;
    transition: background 0.1s;
}

.results-top-trade-row:hover,
.results-top-trade-row.is-hovered {
    background: rgba(148, 163, 184, 0.13);
}

.results-top-trade-label {
    font-size: 0.72rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.results-top-trade-pnl {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.results-top-trade-pnl.is-positive { color: #198754; }
.results-top-trade-pnl.is-negative { color: #dc3545; }

@media (max-width: 767px) {
    .results-bubble-with-panel {
        flex-direction: column;
    }
    .results-bubble-canvas-wrap,
    .results-top-trades-panel {
        flex: none;
        width: 100%;
    }
}

.results-chart-slider-section {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.results-chart-slider-section-secondary {
    margin-top: 0.4rem;
}

.results-chart-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-chart-slider-presets {
    display: flex;
    gap: 0.35rem;
}

.results-chart-slider-preset {
    padding: 0.2rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.results-chart-slider-preset:hover {
    background: #f1f5f9;
    color: #334155;
}

.results-chart-slider-preset.active {
    background: #334155;
    color: #ffffff;
    border-color: #334155;
}

.results-chart-slider-range-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.results-chart-slider-caption {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.results-chart-slider-track {
    position: relative;
    height: 2rem;
    display: flex;
    align-items: center;
}

.results-chart-slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.results-chart-slider-input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.results-chart-slider-input.js-slider-max::-webkit-slider-runnable-track {
    background: transparent;
}

.results-chart-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #334155;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -6px;
}

.results-chart-slider-input::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.results-chart-slider-input.js-slider-max::-moz-range-track {
    background: transparent;
}

.results-chart-slider-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #334155;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
}

.results-chart-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.results-chart-modal[hidden] {
    display: none;
}

.results-chart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
}

.results-chart-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1400px);
    max-height: calc(100vh - 3rem);
    overflow: auto;
}

.results-chart-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.results-chart-modal-content > .results-chart-card {
    min-height: min(88vh, 980px);
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.results-chart-modal-content > .results-chart-card .results-chart-expand-button {
    display: none;
}

.results-chart-modal-content > .results-chart-card .results-chart-card-body {
    min-height: min(72vh, 780px);
}

.results-chart-modal-content > .results-chart-card .results-heatmap-wrap {
    overflow: auto;
}

body.results-chart-modal-open {
    overflow: hidden;
}

.results-heatmap-scale {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.results-heatmap-scale-label {
    color: #8a8f98;
    font-size: 0.95rem;
    font-weight: 600;
}

.results-heatmap-scale-swatches {
    display: inline-flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.results-heatmap-scale-swatch {
    display: inline-block;
    width: 62px;
    height: 20px;
}

.results-heatmap-scale-swatch.is-loss-strong {
    background: rgba(220, 53, 69, 0.82);
}

.results-heatmap-scale-swatch.is-loss-medium {
    background: rgba(220, 53, 69, 0.68);
}

.results-heatmap-scale-swatch.is-loss-soft {
    background: rgba(220, 53, 69, 0.32);
}

.results-heatmap-scale-swatch.is-gain-soft {
    background: rgba(25, 135, 84, 0.2);
}

.results-heatmap-scale-swatch.is-gain-medium {
    background: rgba(25, 135, 84, 0.52);
}

.results-heatmap-scale-swatch.is-gain-strong {
    background: rgba(25, 135, 84, 0.82);
}

.results-heatmap-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    padding-bottom: 0.1rem;
}

.results-heatmap-grid {
    display: grid;
    gap: 0.45rem 0.5rem;
    min-width: max-content;
    align-items: center;
}

.results-heatmap-corner,
.results-heatmap-month {
    color: #8a8f98;
    font-size: 0.95rem;
    font-weight: 700;
}

.results-heatmap-corner,
.results-heatmap-row-label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--app-color-bg);
    box-shadow: 8px 0 12px -12px rgba(15, 23, 42, 0.24);
}

.results-heatmap-row-label {
    color: #3f3f46;
    font-size: 0.88rem;
    font-weight: 700;
}

.results-heatmap-row-label.is-total {
    color: #7a7a7a;
    letter-spacing: 0.04em;
}

.results-heatmap-cell {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    min-height: 42px;
    padding: 0.4rem 0.35rem;
    text-align: center;
}

.results-heatmap-cell.is-total {
    min-height: 42px;
}

.results-heatmap-month.is-total-col,
.results-heatmap-cell.is-total-col {
    position: sticky;
    right: 0;
    z-index: 2;
    background: var(--app-color-bg);
    box-shadow: -8px 0 12px -12px rgba(15, 23, 42, 0.24);
}

.results-heatmap-month.is-total-col {
    z-index: 3;
}

.results-heatmap-cell.is-empty {
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.results-heatmap-month.is-hidden-month,
.results-heatmap-cell.is-hidden-month {
    display: none !important;
}

.copyable-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.copyable-number-button {
    min-width: auto;
    padding: 0.15rem 0.4rem;
    line-height: 1.2;
    border: 0;
    color: #7c8b88;
    background: transparent;
}

.copyable-number-button:hover,
.copyable-number-button:focus {
    color: var(--app-success);
    background: transparent;
    box-shadow: none;
}

.copyable-number-button.is-copied {
    color: var(--app-success);
}

.copyable-number-button.is-error {
    color: #dc3545;
}

.copyable-number-button i {
    font-size: 0.95rem;
}

.copyable-number-value {
    color: inherit;
}

.results-overview {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.results-overview-title {
    margin: 0;
    color: #18181b;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    border-left: 3px solid var(--app-success);
    padding-left: 0.65rem;
}

.results-overview-status {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.95rem;
    border-radius: 1rem;
}

.results-overview-status-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.1rem;
}

.results-overview-status-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.12);
    color: currentColor;
    font-size: 1rem;
}

.results-overview-status-heading {
    color: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.results-overview-status-heading .value-negative,
.results-overview-pitax-value.value-negative,
.results-overview-summary-value.value-negative {
    color: #dc3545;
}

.results-overview-status-heading .value-positive,
.results-overview-pitax-value.value-positive,
.results-overview-summary-value.value-positive {
    color: #198754;
}

.results-overview-status-separator,
.results-overview-status-inline-detail {
    color: inherit;
}

.results-overview-status-detail {
    color: #6b7280;
    font-size: 0.92rem;
    margin-top: 0.1rem;
    min-height: 1.3rem;
}

.results-overview-status-detail.is-empty {
    visibility: hidden;
}

.results-overview-section-title {
    margin: 0 0 0.35rem;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 700;
}

.results-overview-pitax-card {
    border-radius: 1rem;
    overflow: hidden;
    border-color: rgba(148, 163, 184, 0.34) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.results-overview-pitax-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
}

.results-overview-pitax-row + .results-overview-pitax-row {
    border-top: 0;
}

.results-overview-pitax-row-break {
    border-top: 2px solid rgba(15, 23, 42, 0.16) !important;
    margin-top: 0.15rem;
    background: rgba(15, 23, 42, 0.025);
}

.results-overview-status.alert-danger .results-overview-status-icon {
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
}

.results-overview-status.alert-success .results-overview-status-icon {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.results-overview-pitax-label {
    color: #18181b;
    font-size: 0.875rem;
    font-weight: 600;
}

.results-overview-pitax-label-english {
    font-size: 0.875rem;
    font-weight: 400;
    color: #18181b;
}

.results-overview-pitax-label-polish {
    font-size: 0.78rem;
    font-weight: 400;
    color: #a1a1aa;
    font-style: italic;
    margin-top: 0.15rem;
}

.results-overview-pitax-value {
    color: #18181b;
}

.results-overview-pitax-value .copyable-number {
    gap: 0.55rem;
}

.results-overview-pitax-value .value-positive,
.results-overview-pitax-value .value-negative,
.results-overview-pitax-value .copyable-number-value {
    color: #18181b;
}

.results-overview-pitax-value.value-negative {
    color: #dc3545;
}

.results-overview-pitax-value .copyable-number-value {
    font-size: 0.875rem;
    font-weight: 500;
}

.results-overview-pitax-label-strong,
.results-overview-pitax-value-strong {
    font-size: 0.875rem;
    font-weight: 700;
}

.results-overview-pitax-label-muted {
    font-size: 0.875rem;
    font-weight: 400;
    color: #71717a;
}

.results-overview-pitax-label-loss-note {
    max-width: 42rem;
}

.results-overview-pitax-label-muted + .results-overview-pitax-value {
    font-size: 0.875rem;
    font-weight: 700;
}

.results-overview-pitax-value-strong,
.results-overview-pitax-value-strong .copyable-number-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.results-overview-pitax-country-table {
    padding: 0;
}

.results-overview-pitax-card-trades .results-overview-pitax-country-table {
    padding-top: 0.85rem;
}

.results-overview-pitax-country-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1.15fr) minmax(0, 0.925fr) minmax(0, 0.925fr);
    gap: 1rem;
    align-items: center;
    padding: 0.55rem 1rem;
}

.results-overview-pitax-country-row.is-header {
    padding-top: 0;
    padding-bottom: 0.7rem;
    border-bottom: 0;
}

.results-overview-pitax-country-row.is-total {
    border-top: 1px solid #F1F5F9;
    margin-top: 0.15rem;
    padding-top: 0.7rem;
}

.results-overview-pitax-country-cell.is-country {
    font-size: 0.875rem;
    font-weight: 400;
    color: #18181b;
}

.results-overview-pitax-country-cell.is-value {
    text-align: right;
    color: #18181b;
    font-weight: 400;
}

.results-overview-pitax-country-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #18181b;
}

.results-overview-pitax-label-polish-inline {
    color: #a1a1aa;
    font-style: italic;
    font-weight: 400;
}

.results-overview-pitax-card .copyable-number {
    gap: 0;
    flex-wrap: nowrap;
}

.results-overview-pitax-card .copyable-number-button {
    display: none;
}

.results-overview-pitax-card .copyable-number-value.is-inline-copy-target {
    cursor: pointer;
    position: relative;
    display: inline-block;
    padding: 0.02rem 0.35rem;
    border-radius: 0.45rem;
    transition: color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.results-overview-pitax-card .copyable-number-value.is-inline-copy-target:hover,
.results-overview-pitax-card .copyable-number-value.is-inline-copy-target:focus {
    color: #334155;
    background: rgba(15, 23, 42, 0.06);
    outline: none;
}

.results-overview-pitax-card .copyable-number-value.is-inline-copy-target.is-copied {
    color: var(--app-success);
    background: rgba(52, 183, 167, 0.1);
}

.results-overview-pitax-card .copyable-number-value.is-inline-copy-target.is-copy-error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

.results-overview-pitax-country-cell.is-value .copyable-number {
    justify-content: flex-end;
    width: 100%;
}

.results-overview-pitax-country-cell.is-value .copyable-number-value {
    color: #18181b;
    font-size: 0.875rem;
    font-weight: 500;
}

.results-overview-pitax-country-row.is-total .results-overview-pitax-country-cell {
    font-size: 1.05rem;
    font-weight: 700;
}

.results-overview-pitax-country-row.is-total .results-overview-pitax-country-cell .copyable-number-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.results-overview-country-rows {
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.25s ease;
}

.results-overview-country-rows.is-collapsed {
    max-height: 0;
}

.results-overview-country-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--app-success);
    vertical-align: middle;
    line-height: 1;
    margin-left: 0.4rem;
}

.results-overview-country-toggle:hover {
    color: var(--app-success-hover);
}

.results-overview-country-chevron {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
}

.results-overview-country-toggle[aria-expanded="false"] .results-overview-country-chevron {
    transform: rotate(-90deg);
}

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

.results-overview-stats-grid-secondary {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.35rem;
}

.results-overview-stat-tile {
    border-radius: 1rem;
    padding: 0.7rem 0.85rem 0.75rem;
    background: var(--app-color-bg);
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

.results-overview-stat-tile.is-positive {
    background: #f0fdf9;
    border-color: rgba(52, 183, 167, 0.3) !important;
}

.results-overview-stat-tile.is-negative {
    background: #fff5f5;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

.results-overview-stat-tile-primary {
    grid-column: span 1;
    padding: 0.85rem 0.95rem 0.85rem;
}

.results-overview-stat-tile-wide {
    grid-column: span 2;
    padding: 0.8rem 1rem 0.85rem;
}

.results-overview-stat-tile-holding {
    width: auto;
    justify-self: stretch;
}

.results-overview-stat-label {
    color: #52525b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.results-overview-stat-value {
    color: #18181b;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.15rem;
}

.results-overview-stat-value-primary {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.15rem;
}

.results-overview-stat-inline-subvalue {
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1;
}

.results-overview-stat-subvalue {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.24rem;
}

.results-overview-stat-value-primary.value-positive,
.results-overview-stat-subvalue.value-positive {
    color: #198754;
}

.results-overview-stat-value-primary.value-negative,
.results-overview-stat-subvalue.value-negative {
    color: #dc3545;
}

.results-overview-stat-note-stack {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    margin-top: 0.15rem;
}

.results-overview-stat-note-stack .results-overview-stat-note {
    margin-top: 0;
}

.results-overview-stat-summary-line {
    font-size: 0.92rem;
    line-height: 1.35;
}

.results-overview-stat-summary-label {
    color: #18181b;
    font-weight: 600;
}

.results-overview-stat-summary-text {
    color: #71717a;
    font-weight: 400;
}

.results-overview-stat-value-compact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 400;
}

.results-overview-stat-pair {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.results-overview-stat-mini-label {
    color: #71717a;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.results-overview-stat-pair-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    line-height: 1.05;
    font-weight: 700;
}

.results-overview-stat-pair-symbol {
    color: #18181b;
    font-weight: 700;
}

.results-overview-stat-holding-table {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-top: 0.25rem;
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.results-overview-stat-holding-row {
    display: grid;
    grid-template-columns: minmax(4.75rem, 1fr) minmax(2.5rem, auto) minmax(4.25rem, auto) minmax(4.5rem, auto);
    align-items: baseline;
    column-gap: 0.55rem;
}

.results-overview-stat-drivers {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.results-overview-stat-drivers-section {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.results-overview-stat-drivers-section-spaced {
    margin-top: 0.8rem;
}

.results-overview-stat-drivers-heading {
    color: #18181b;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
}

.results-overview-stat-driver-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.results-overview-stat-driver-main {
    min-width: 0;
    flex: 1 1 auto;
    color: #71717a;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
}

.results-overview-stat-driver-symbol {
    color: #18181b;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.results-overview-stat-driver-label {
    color: #18181b;
    font-weight: 600;
}

.results-overview-stat-driver-text {
    color: #71717a;
    font-weight: 400;
}

.results-overview-stat-driver-value {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
}

.results-overview-stat-driver-meta {
    color: #71717a;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.3;
}

.results-overview-stat-trade-spacer {
    height: 0;
}

.results-overview-stat-holding-row.is-header {
    margin-bottom: 0.1rem;
}

.results-overview-stat-holding-row.is-total {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.15rem;
    padding-top: 0.35rem;
}

.results-overview-stat-holding-cell {
    font-size: 0.92rem;
    line-height: 1.2;
}

.results-overview-stat-holding-cell.is-label {
    color: #18181b;
    font-weight: 500;
}

.results-overview-stat-holding-cell.is-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.results-overview-stat-holding-cell.is-header-cell {
    color: #71717a;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.results-overview-stat-holding-cell.is-header-cell.is-label {
    text-align: left;
}

.results-overview-stat-holding-cell.is-muted {
    color: #71717a;
}

.results-win-rate-bar {
    display: flex;
    height: 5px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.18);
    overflow: hidden;
    margin-top: 0.45rem;
    margin-bottom: 0.1rem;
}

.results-win-rate-bar-fill {
    display: block;
    height: 100%;
    background: var(--app-success);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.results-profit-factor-bar {
    display: flex;
    height: 5px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.18);
    overflow: hidden;
    margin-top: 0.45rem;
    margin-bottom: 0.1rem;
}

.results-profit-factor-bar-fill {
    display: block;
    height: 100%;
    background: var(--app-success);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.results-overview-stat-holding-row.is-total .results-overview-stat-holding-cell {
    font-weight: 700;
}

.results-overview-stat-note {
    color: #71717a;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.results-overview-footer-note {
    color: #71717a;
    font-size: 0.9rem;
    text-align: center;
}

a {
    color: var(--app-success);
    text-decoration: none;
}

a:hover {
    color: var(--app-success-hover);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-font-sans);
    line-height: 1.2;
    color: #222222;
}

h1 {
    font-size: clamp(2.2rem, 1.95rem + 1.2vw, 2.85rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.9rem, 1.72rem + 0.8vw, 2.35rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.6rem, 1.48rem + 0.55vw, 1.95rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.3rem, 1.22rem + 0.35vw, 1.55rem);
    font-weight: 700;
}

h5 {
    font-size: clamp(1.08rem, 1.04rem + 0.15vw, 1.2rem);
    font-weight: 700;
}

h6 {
    font-size: 1rem;
    font-weight: 700;
}

#main {
    margin-top: 80px;
    flex: 1 0 auto;
}

.about {
    padding-top: 2rem;
}

@media (max-width: 992px) {
    #main {
        margin-top: 58px;
    }

    .results-mini-nav-wrap {
        top: 64px;
    }

    .results-table-nav {
        top: 58px;
    }

    #results-filing-details,
    #results-report-actions,
    #results-content-tabs,
    #results-detail-tables,
    #results-insights-charts {
        scroll-margin-top: 136px;
    }

    .results-mini-nav-inner {
        justify-content: space-between;
        gap: 1rem;
        overflow-x: auto;
        padding: 0;
    }

    .results-mini-nav-primary {
        justify-content: flex-start;
        gap: 1.5rem;
        flex: 0 0 auto;
    }

    .results-mini-nav-link {
        white-space: nowrap;
    }

    .results-mini-nav-link-utility {
        padding-right: 1rem;
    }

    .results-mini-nav-note {
        margin-left: 0;
        font-size: 0.92rem;
        flex: 0 0 auto;
    }

    .results-tabs-bar {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .results-tab-button {
        justify-content: center;
        flex: 1 1 0;
    }

    .results-table-nav {
        margin-top: -0.3rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .results-table-nav-inner {
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        padding-bottom: 0.45rem;
    }

    .results-table-nav-link {
        font-size: 0.8rem;
        padding-left: 0.68rem;
        padding-right: 0.68rem;
    }

    .results-table-anchor {
        scroll-margin-top: 146px;
    }

    .results-copy-toast {
        top: 72px;
        right: 16px;
        left: 16px;
    }

    .results-chart-card-body {
        min-height: 280px;
    }

    .results-chart-modal {
        padding: 1rem;
    }

    .results-chart-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 2rem);
    }

    .results-chart-modal-content > .results-chart-card {
        min-height: auto;
        padding: 1.1rem 1rem 1rem;
    }

    .results-chart-modal-content > .results-chart-card .results-chart-card-body {
        min-height: min(58vh, 520px);
    }

    .results-overview-title {
        font-size: 1.1rem;
    }

    .results-overview-status {
        padding: 0.7rem 0.8rem;
    }

    .results-overview-pitax-row {
        grid-template-columns: 1fr;
        padding: 0.8rem 0.9rem;
    }

    .results-overview-stats-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid var(--app-success);
    border-top-color: var(--app-success-bg-subtle);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--app-success);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: var(--app-success-hover);
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    background: var(--app-color-bg);
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transition: box-shadow 0.25s ease;
    z-index: 997;
    padding: 13px 0;
}

#header.scrolled {
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08);
}

#header .logo {
    font-size: 26px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-transform: none;
}

#header .logo a {
    font-family: 'Fraunces Editorial', serif;
    font-style: italic;
    font-weight: 600;
    font-synthesis: style weight;
    display: inline-flex;
    align-items: baseline;
    color: #14110d;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

#header .logo .logo-pit {
    color: #14110d;
    border-bottom: 2px solid #34b7a7;
    padding-bottom: 1px;
}

#header .logo img {
    max-height: 40px;
}

#header .container-fluid {
    margin-inline: auto;
    max-width: var(--app-max-width);
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--app-max-width);
    }
}

/*--------------------------------------------------------------
# Header Social Links
--------------------------------------------------------------*/
.header-social-links {
    padding-right: 15px;
}

.header-social-links a {
    color: #6f6f6f;
    padding-left: 9px;
    padding-right: 9px;
    display: inline-block;
    line-height: 0px;
    transition: 0.3s;
    font-size: 16px;
}

.header-social-links a:hover {
    color: var(--app-success);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
    padding: 0;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

@media (min-width: 992px) {
    .guest-header-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 2rem;
    }

    .guest-header-brand {
        justify-self: start;
    }

    .guest-header-center-nav {
        justify-self: center;
    }

    .guest-header-center-nav li:first-child {
        padding-left: 0;
    }

    .guest-header-auth-nav {
        justify-self: end;
    }

    .guest-header-auth-nav ul {
        justify-content: flex-end;
    }

    .guest-header-auth-nav li:first-child {
        padding-left: 0;
    }
}

@media (max-width: 991px) {
    .guest-header-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.navbar li {
    position: relative;
    padding: 6px 0 6px 14px;
}

.navbar a,
.navbar a:visited,
.navbar a:focus,
.navbar a:active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--app-font-sans);
    font-size: 15px;
    font-weight: 600;
    color: #5f6d7e;
    white-space: nowrap;
    transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    position: relative;
}

.navbar > ul > li > a,
.navbar > ul > li > a:visited,
.navbar > ul > li > a:focus,
.navbar > ul > li > a:active {
    color: #697586 !important;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.navbar a i,
.navbar a:visited i,
.navbar a:focus i,
.navbar a:active i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    color: inherit !important;
}

.navbar-dropdown-user > a,
.navbar-dropdown-user > a:visited,
.navbar-dropdown-user > a:focus,
.navbar-dropdown-user > a:active {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.navbar-dropdown-user > a .fa-user,
.navbar-dropdown-user > a:visited .fa-user,
.navbar-dropdown-user > a:focus .fa-user,
.navbar-dropdown-user > a:active .fa-user {
    font-size: 1rem;
    line-height: 1;
    margin-left: 0;
    color: #5e6b80 !important;
}

.navbar-dropdown-user > a .toggle-dropdown,
.navbar-dropdown-user > a:visited .toggle-dropdown,
.navbar-dropdown-user > a:focus .toggle-dropdown,
.navbar-dropdown-user > a:active .toggle-dropdown {
    font-size: 0.95rem;
    margin-left: 0;
    line-height: 1;
}

.navbar .navbar-link-emphasis,
.navbar .navbar-link-emphasis:visited,
.navbar .navbar-link-emphasis:focus,
.navbar .navbar-link-emphasis:active {
    color: #20242d !important;
    font-weight: 600;
}

.navbar > ul > li > a:before {
    display: none;
}

.navbar a:hover:before,
.navbar li:hover > a:before,
.navbar .active:before {
    display: none;
}

.navbar > ul > li > a:hover,
.navbar > ul > li > a.active,
.navbar > ul > li > a.active:focus,
.navbar > ul > li:hover > a {
    color: #18212f;
    background: transparent;
}

.navbar > ul > li.dropdown:hover > a,
.navbar > ul > li.dropdown > a.active {
    border-bottom-color: var(--app-success);
}

.navbar .nav-cta-link,
.navbar .nav-cta-link:focus {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #697586 !important;
    font-weight: 700;
    padding: 0.65rem 1rem;
    box-shadow: none;
    transition: color 0.22s ease, transform 0.22s ease;
}

.navbar .nav-cta-link:hover,
.navbar li:hover > .nav-cta-link {
    background: transparent;
    color: #18212f !important;
    box-shadow: none;
    transform: none;
}

.navbar > ul > li > .nav-cta-link:before {
    display: none;
}

.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    margin: 0;
    padding: 10px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transition: 0.3s;
    border-radius: 10px;
    border: 1px solid #D0CFC9;
    backdrop-filter: none;
}

.navbar .dropdown > .navbar-dropdown-menu {
    min-width: 220px;
    left: 0;
    right: auto;
    transform: none;
}

.navbar .dropdown.navbar-dropdown-align-end > .navbar-dropdown-menu {
    left: auto;
    right: 0;
}

.navbar .dropdown ul li {
    padding: 0;
}

.navbar .dropdown ul a {
    padding: 11px 14px;
    font-size: 14px;
    text-transform: none;
    font-weight: 600;
    color: #1f2430;
    border-radius: 0;
}

.navbar .dropdown ul a i {
    font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
    color: #34b7a7;
    background: transparent;
}

.navbar .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}

@media (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
        left: -90%;
    }

    .navbar .dropdown .dropdown:hover > ul {
        left: -100%;
    }
}

.navbar-dropdown-shell .dropdown-divider {
    margin: 0.45rem 0;
    opacity: 0.12;
}

.navbar-logout-form {
    margin: 0;
}

.navbar .dropdown ul a,
.navbar-logout-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    text-transform: none;
}

.navbar-logout-button {
    border: 0;
    text-align: left;
    color: #1f2430;
    background: transparent;
}

.navbar-logout-button:hover,
.navbar-logout-button:focus {
    color: #34b7a7;
    background: transparent;
    box-shadow: none;
}


/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
    color: #222222;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
    color: #fff;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navbar ul {
        display: none !important;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(9, 9, 9, 0.9);
    transition: 0.3s;
    z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

.navbar-mobile ul {
    display: block !important;
    position: absolute;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
}

.navbar-mobile li {
    padding: 0;
}

.navbar-mobile a,
.navbar-mobile a:focus {
    font-size: 15px;
    padding: 12px 20px;
    padding-right: 15px;
    color: #222222;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
    color: var(--app-success);
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
    margin: 15px;
}

.navbar-mobile .dropdown ul {
    position: static;
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    box-sizing: border-box;
    overflow-x: hidden;
}

.navbar-mobile .dropdown > .navbar-dropdown-menu {
    min-width: 0;
    left: auto;
    right: auto;
}

.navbar-mobile .dropdown ul li {
    min-width: 0;
}

.navbar-mobile .dropdown ul a,
.navbar-mobile .navbar-logout-button {
    padding: 10px 20px;
    white-space: normal;
}

.navbar-mobile .dropdown ul a i {
    font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
    color: var(--app-success);
}

.navbar-mobile .dropdown > .dropdown-active {
    display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    width: 100%;
    height: 100vh;
    background: url("../img/hero-bg.3972b31188a8.jpg") top right;
    background-size: cover;
}

#hero .container {
    padding-top: 70px;
    position: relative;
}

@media (max-width: 992px) {
    #hero .container {
        padding-top: 58px;
    }
}

#hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    color: #222222;
}

#hero h2 {
    color: #6f6f6f;
    margin: 10px 0 0 0;
    font-size: 22px;
}

#hero .btn-about {
    font-family: var(--app-font-sans);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 40px;
    border-radius: 10px;
    transition: 0.5s;
    margin-top: 30px;
    color: #fff;
    background: var(--app-success);
}

#hero .btn-about:hover {
    background: var(--app-success-hover);
}

@media (min-width: 1024px) {
    #hero {
        background-attachment: fixed;
    }
}

@media (max-width: 992px) {
    #hero:before {
        content: "";
        background: rgba(255, 255, 255, 0.8);
        position: absolute;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
    }

    #hero h1 {
        font-size: 28px;
        line-height: 36px;
    }

    #hero h2 {
        font-size: 18px;
        line-height: 24px;
    }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    padding: 60px 0; /*- 60px default padding from top -*/
}

.section-bg {
    background-color: #e7f8f6;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--app-success);
    bottom: 0;
    left: calc(50% - 25px);
}

.section-title p {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Cta
--------------------------------------------------------------*/
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/hero-bg.3972b31188a8.jpg") fixed center center;
    background-size: cover;
    padding: 80px 0;
}

.cta h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.cta p {
    color: #fff;
}

.cta .cta-btn {
    font-family: var(--app-font-sans);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 2px;
    transition: 0.5s;
    margin: 10px;
    border: 2px solid #fff;
    color: #fff;
}

.cta .cta-btn:hover {
    background: var(--app-success);
    border: 2px solid var(--app-success);
}

@media (max-width: 1024px) {
    .cta {
        background-attachment: scroll;
    }
}

@media (min-width: 769px) {
    .cta .cta-btn-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
    font-weight: 700;
    font-size: 26px;
    color: #555555;
}

.about .content ul {
    list-style: none;
    padding: 0;
}

.about .content ul li {
    padding-bottom: 10px;
}

.about .content ul i {
    font-size: 20px;
    padding-right: 2px;
    color: var(--app-success);
}

.about .content p:last-child {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
    height: 60px;
    display: block;
    background: none;
    border-radius: 0;
}

.skills .progress .skill {
    padding: 10px 0;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    display: block;
    font-weight: 600;
    font-family: var(--app-font-sans);
    color: #222222;
}

.skills .progress .skill .val {
    float: right;
    font-style: normal;
}

.skills .progress-bar-wrap {
    background: #f3f3f3;
}

.skills .progress-bar {
    width: 1px;
    height: 10px;
    transition: 0.9s;
    background-color: var(--app-success);
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .counters span {
    font-size: 48px;
    display: block;
    color: var(--app-success);
}

.facts .counters p {
    padding: 0;
    margin: 0 0 20px 0;
    font-family: var(--app-font-sans);
    font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .section-header {
    margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
    overflow: hidden;
}

.testimonials .testimonial-item {
    text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
    width: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin: 0 auto;
}

.testimonials .testimonial-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    color: #111;
}

.testimonials .testimonial-item h4 {
    font-size: 14px;
    color: #999;
    margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
    color: #c8efea;
    font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
    display: inline-block;
    left: -5px;
    position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
    display: inline-block;
    right: -5px;
    position: relative;
    top: 10px;
}

.testimonials .testimonial-item p {
    font-style: italic;
    margin: 0 auto 15px auto;
}

@media (min-width: 992px) {
    .testimonials .testimonial-item p {
        width: 80%;
    }
}

.testimonials .swiper-pagination {
    margin-top: 20px;
    position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 1;
    border: 1px solid var(--app-success);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--app-success);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
    font-size: 26px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #222222;
}

.resume .resume-item {
    padding: 0 0 20px 20px;
    margin-top: -2px;
    border-left: 2px solid var(--app-success);
    position: relative;
}

.resume .resume-item h4 {
    line-height: 18px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--app-font-sans);
    color: #1d685f;
    margin-bottom: 10px;
}

.resume .resume-item h5 {
    font-size: 16px;
    background: #effbf9;
    padding: 5px 15px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--app-success);
}

.resume .resume-item ul {
    padding-left: 20px;
}

.resume .resume-item ul li {
    padding-bottom: 10px;
}

.resume .resume-item:last-child {
    padding-bottom: 0;
}

.resume .resume-item::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50px;
    left: -9px;
    top: 0;
    background: #fff;
    border: 2px solid var(--app-success);
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
    text-align: center;
    padding: 70px 20px 80px 20px;
    transition: all ease-in-out 0.3s;
    background: #fff;
    box-shadow: 0px 0 35px 0 rgba(0, 0, 0, 0.08);
}

.services .icon-box .icon {
    margin: 0 auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: ease-in-out 0.3s;
    position: relative;
}

.services .icon-box .icon i {
    font-size: 36px;
    transition: 0.5s;
    position: relative;
}

.services .icon-box .icon svg {
    position: absolute;
    top: 0;
    left: 0;
}

.services .icon-box .icon svg path {
    transition: 0.5s;
    fill: #f5f5f5;
}

.services .icon-box h4 {
    font-weight: 600;
    margin: 10px 0 15px 0;
    font-size: 22px;
}

.services .icon-box h4 a {
    color: #222222;
    transition: ease-in-out 0.3s;
}

.services .icon-box p {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.services .iconbox-blue i {
    color: #47aeff;
}

.services .iconbox-blue:hover .icon i {
    color: #fff;
}

.services .iconbox-blue:hover .icon path {
    fill: #47aeff;
}

.services .iconbox-orange i {
    color: #ffa76e;
}

.services .iconbox-orange:hover .icon i {
    color: #fff;
}

.services .iconbox-orange:hover .icon path {
    fill: #ffa76e;
}

.services .iconbox-pink i {
    color: #e80368;
}

.services .iconbox-pink:hover .icon i {
    color: #fff;
}

.services .iconbox-pink:hover .icon path {
    fill: #e80368;
}

.services .iconbox-yellow i {
    color: #ffbb2c;
}

.services .iconbox-yellow:hover .icon i {
    color: #fff;
}

.services .iconbox-yellow:hover .icon path {
    fill: #ffbb2c;
}

.services .iconbox-red i {
    color: #ff5828;
}

.services .iconbox-red:hover .icon i {
    color: #fff;
}

.services .iconbox-red:hover .icon path {
    fill: #ff5828;
}

.services .iconbox-teal i {
    color: #11dbcf;
}

.services .iconbox-teal:hover .icon i {
    color: #fff;
}

.services .iconbox-teal:hover .icon path {
    fill: #11dbcf;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
    margin-bottom: 30px;
}

.portfolio #portfolio-flters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
}

.portfolio #portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 8px 16px 10px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    color: #444444;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
    border-radius: 50px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    color: #fff;
    background: var(--app-success);
}

.portfolio #portfolio-flters li:last-child {
    margin-right: 0;
}

.portfolio .portfolio-wrap {
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(34, 34, 34, 0.6);
}

.portfolio .portfolio-wrap::before {
    content: "";
    background: rgba(34, 34, 34, 0.6);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: all ease-in-out 0.3s;
    z-index: 2;
    opacity: 0;
}

.portfolio .portfolio-wrap img {
    transition: all ease-in-out 0.3s;
}

.portfolio .portfolio-wrap .portfolio-info {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    transition: all ease-in-out 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    font-style: italic;
}

.portfolio .portfolio-wrap .portfolio-links {
    text-align: center;
    z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
    color: #fff;
    margin: 0 5px 0 0;
    font-size: 28px;
    display: inline-block;
    transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
    color: #78d9cd;
}

.portfolio .portfolio-wrap:hover::before {
    opacity: 1;
}

.portfolio .portfolio-wrap:hover img {
    transform: scale(1.2);
}

.portfolio .portfolio-wrap:hover .portfolio-info {
    opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
    padding-top: 0;
}

.portfolio-details .portfolio-details-slider img {
    width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
    margin-top: 20px;
    position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 1;
    border: 1px solid var(--app-success);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--app-success);
}

.portfolio-details .portfolio-info {
    padding: 30px;
    box-shadow: 0px 0 30px rgba(34, 34, 34, 0.08);
}

.portfolio-details .portfolio-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
    list-style: none;
    padding: 0;
    font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
    margin-top: 10px;
}

.portfolio-details .portfolio-description {
    padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
    padding: 0;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
    width: 100%;
    background: #fff;
}

.contact .info i {
    font-size: 20px;
    color: var(--app-success);
    float: left;
    width: 44px;
    height: 44px;
    background: #effbf9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.contact .info h4 {
    padding: 0 0 0 60px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222222;
}

.contact .info p {
    padding: 0 0 0 60px;
    margin-bottom: 0;
    font-size: 14px;
    color: #555555;
}

.contact .info .email,
.contact .info .phone {
    margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
    background: var(--app-success);
    color: #fff;
}

.contact .php-email-form {
    width: 100%;
    background: #fff;
}

.contact .php-email-form .form-group {
    padding-bottom: 8px;
}

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    border-color: var(--app-success);
}

.contact .php-email-form input {
    height: 44px;
}

.contact .php-email-form textarea {
    padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
    background: var(--app-success);
    border: 0;
    padding: 10px 30px 12px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 10px;
}

.contact .php-email-form button[type=submit]:hover {
    background: var(--app-success-hover);
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background: #20242d;
    padding: 22px 0 18px;
    color: #c9d1d9;
    font-size: 14px;
    font-family: var(--app-font-sans);
    margin-top: auto;
    border-top: none;
}

#footer .footer-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#footer .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#footer .footer-brand h3,
#footer .footer-brand h6 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f2f5;
}

#footer .footer-brand p {
    margin: 0;
    max-width: 330px;
    color: #8b95a4;
    line-height: 1.55;
}

#footer .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 640px;
}

#footer .footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#footer .footer-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6478;
}

#footer .footer-link-group a {
    color: #8b95a4;
    font-weight: 600;
    line-height: 1.4;
}

#footer .footer-link-group a:hover {
    color: #e2e8f0;
}

#footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer .footer-copy {
    color: #5a6478;
}

#footer .credits {
    font-size: 13px;
    color: #5a6478;
}

#footer .credits a {
    color: #6b7a90;
}

@media (max-width: 991px) {
    #footer .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    #footer .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }

    #footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    #footer .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/*--------------------------------------------------------------
# NEW ADDED BY ANDRII
--------------------------------------------------------------*/


.form_upload {
    margin: auto;
    width: 100%;
}

.ibkr-upload-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ibkr-upload-card.is-dragover {
    transform: translateY(-1px);
}

.ibkr-upload-panel {
    border: 1px solid var(--app-color-border);
    border-radius: 16px;
    background: var(--app-color-surface);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    padding: 1.75rem 2rem;
}

.ibkr-upload-input {
    display: none;
}

.ibkr-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 185px;
    padding: 2rem 1.75rem;
    border: 1.5px dashed var(--app-color-border-input);
    border-radius: 16px;
    background: var(--app-color-surface-subtle);
    color: #5a6664;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ibkr-upload-dropzone:hover,
.ibkr-upload-dropzone:focus {
    border-color: var(--app-success);
    border-style: solid;
    background: rgba(52, 183, 167, 0.04);
    box-shadow: 0 10px 24px rgba(52, 183, 167, 0.10);
    transform: translateY(-1px);
}

.ibkr-upload-card.is-dragover .ibkr-upload-dropzone {
    border-color: var(--app-success);
    border-style: solid;
    background: rgba(52, 183, 167, 0.06);
    box-shadow: 0 10px 24px rgba(52, 183, 167, 0.14);
}

.ibkr-upload-dropzone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid var(--app-success-border-subtle);
    background: var(--app-success-bg-subtle);
    color: var(--app-success);
    font-size: 1.5rem;
    box-shadow: none;
}

.ibkr-upload-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--app-color-heading);
    line-height: 1.2;
    max-width: 680px;
    margin-inline: auto;
}

.ibkr-upload-subtitle {
    font-size: clamp(0.98rem, 1.25vw, 1.08rem);
    color: #a7b1bf;
    line-height: 1.4;
}

.ibkr-upload-browse-link {
    color: #58c6bc;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.ibkr-upload-warning {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    color: #842029;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.9rem;
    padding: 0.65rem 0.9rem;
    text-align: left;
}

.ibkr-upload-divider {
    height: 1px;
    background: #e5ebf2;
    margin: 1.2rem 0 1.15rem;
}

.ibkr-upload-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0;
    border-radius: 10px;
    padding: 0.95rem 1.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: none;
}

.ibkr-upload-submit:disabled {
    background: transparent;
    border-color: var(--app-success);
    color: var(--app-success);
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.ibkr-upload-submit.btn-success {
    background: var(--app-success);
    border-color: var(--app-success);
    color: #ffffff;
    opacity: 1;
    box-shadow: none;
}

.ibkr-upload-submit.btn-success:hover,
.ibkr-upload-submit.btn-success:focus-visible {
    background: var(--app-success-hover);
    border-color: var(--app-success-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(52, 183, 167, 0.30);
}

.ibkr-upload-submit-warning,
.ibkr-upload-submit-warning.btn-success {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.ibkr-upload-submit-warning:hover,
.ibkr-upload-submit-warning:focus,
.ibkr-upload-submit-warning.btn-success:hover,
.ibkr-upload-submit-warning.btn-success:focus {
    background: #ffca2c;
    border-color: #ffc720;
    color: #212529;
}

.ibkr-upload-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.ibkr-upload-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.95rem;
    border: 1px solid #dbe4ec;
    border-radius: 999px;
    color: #596273 !important;
    font-size: 0.92rem;
    font-weight: 600;
}

.ibkr-upload-file-icon {
    color: #9aa6b2;
    font-size: 0.98rem;
}

.ibkr-upload-file-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ibkr-upload-file-remove {
    border: 0;
    background: transparent;
    color: #b5beca;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}

.ibkr-upload-file-remove:hover,
.ibkr-upload-file-remove:focus {
    color: #7f8b99;
}

.ibkr-upload-info-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    margin-top: 1.5rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid #f2d8aa;
    border-radius: 10px;
    background: #fffdf9;
    color: #c59948;
    font-size: 0.97rem;
    line-height: 1.55;
}

.ibkr-upload-info-callout a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.ibkr-upload-info-icon {
    color: #e1ad57;
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 0.08rem;
}

.ibkr-upload-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
}

.ibkr-upload-footer-note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #a6b1c1;
    font-size: 0.95rem;
    font-weight: 600;
}

.ibkr-upload-supported-wrap {
    display: inline-flex;
    justify-content: flex-end;
}

.ibkr-upload-supported-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    color: #20242d;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0;
}

.ibkr-upload-supported-body {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 0.65rem;
    padding-top: 0.95rem;
    color: #7b8798;
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .form_upload {
        width: 100%;
    }

    .ibkr-upload-panel {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .ibkr-upload-dropzone {
        min-height: 170px;
        padding: 1.4rem 1rem;
    }

    .ibkr-upload-dropzone-badge {
        width: 78px;
        height: 78px;
        font-size: 1.7rem;
    }

    .ibkr-upload-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ibkr-upload-supported-wrap {
        justify-content: flex-start;
    }
}


td {
 white-space: nowrap;
}


.table {
    margin-left: auto;
    margin-right: auto;
    /*font-size: 0.7rem;*/
    font-size: 0.9rem;
    /*font-size: 16px;*/
    /*padding: 0;*/
}

table, tr, th, td {
    /*padding: 0;*/
    margin: 0;
    white-space: nowrap; /* in case you have long content */
    padding-right: 5px;
    padding-left: 5px;
}

.table > :not(caption) > * > * {
    /*padding: 0;*/
    padding-right: 5px;
    padding-left: 5px;
}

.collapsible-table-card .table > :not(caption) > * > * {
    border-bottom-color: rgba(15, 23, 42, 0.04);
}

.collapsible-table-card .table > tbody > tr:last-child > * {
    font-weight: 700;
}

.results-share-cell {
    display: inline-grid;
    grid-template-columns: 4.2rem minmax(82px, 150px);
    align-items: center;
    gap: 0.55rem;
    min-width: 138px;
}

.results-share-cell__value {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
}

.results-share-cell__track {
    display: block;
    width: 100%;
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.results-share-cell__bar {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
}

.results-share-cell.is-positive .results-share-cell__value {
    color: #198754;
}

.results-share-cell.is-positive .results-share-cell__bar {
    background: linear-gradient(90deg, rgba(25, 135, 84, 0.72), rgba(45, 181, 151, 0.92));
}

.results-share-cell.is-negative .results-share-cell__value {
    color: #dc3545;
}

.results-share-cell.is-negative .results-share-cell__bar {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.64), rgba(220, 53, 69, 0.9));
}

.holding-period-bucket-table > thead > tr > th:nth-child(3),
.holding-period-bucket-table > tbody > tr > td:nth-child(3) {
    text-align: right;
}

/* Chart card subtitle (used by vintage cohort) */
.results-chart-subtitle {
    font-size: 0.82rem;
    color: var(--app-color-text-muted);
    margin: 0.25rem 0 0;
    font-weight: 400;
}

/* Left-aligned header variant for table-style chart cards */
.results-chart-card-header--left {
    text-align: left;
    padding-right: 2.75rem;
}

.results-chart-card-header--left .results-chart-title-row {
    justify-content: flex-start;
}

/* Vintage cohort table */
.results-vintage-wrap { overflow-x: auto; }

.results-vintage-table {
    width: 100%;
    border-collapse: collapse;
}

.results-vintage-th {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--app-color-text-muted);
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--app-color-border);
}

.results-vintage-th--year { width: 80px; }

.results-vintage-row { border-bottom: 1px solid var(--app-color-border); }
.results-vintage-row:last-child { border-bottom: none; }

.results-vintage-empty-row td {
    padding: 1rem 0.75rem;
    color: var(--app-color-text-muted);
    text-align: center;
}

.results-vintage-year {
    padding: 0.75rem;
    vertical-align: middle;
}

.results-vintage-year-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-color-heading);
    line-height: 1.2;
}

.results-vintage-year-caption {
    font-size: 0.75rem;
    color: var(--app-color-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.results-vintage-row td { padding: 0.75rem; vertical-align: middle; }

.results-vintage-totals-row {
    border-top: 2px solid var(--app-color-border);
}

.results-vintage-totals-row td { padding: 0.75rem; vertical-align: middle; }

.results-vintage-totals-value {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--app-color-body-text);
}

.results-vintage-bar-container {
    position: relative;
    height: 22px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.results-vintage-bar-container--bidir { overflow: visible; }

.results-vintage-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.results-vintage-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.results-vintage-bar--neutral  { background: #d3d1c7; left: 0; }
.results-vintage-bar--positive { background: #97c459; left: 50%; border-radius: 0 4px 4px 0; }
.results-vintage-bar--negative { background: #e24b4a; right: 50%; border-radius: 4px 0 0 4px; }

.results-vintage-bar-label {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--app-color-body-text);
    z-index: 2;
}

.results-vintage-bar-label--positive { color: #198754; }
.results-vintage-bar-label--negative { color: #dc3545; }

.results-vintage-caption {
    font-size: 0.78rem;
    color: var(--app-color-text-muted);
    margin-top: 0.25rem;
}

.results-vintage-winrate-track {
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
    max-width: 200px;
}

.results-vintage-winrate-fill {
    height: 100%;
    background: #97c459;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.results-vintage-winrate-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--app-color-body-text);
    margin-top: 0.25rem;
    display: block;
}


.holding-period-bucket-table > thead > tr > th:nth-child(3) .sortable-results-button {
    justify-content: flex-end;
}

/* ── FX Impact Summary Bar ───────────────────────────────────────── */
.fx-impact-body { padding: 18px 22px 14px; }

.fx-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fx-summary__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
}

.fx-summary__legend-item {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.fx-summary__legend-item:hover,
.fx-summary__legend-item:focus-visible {
    color: var(--text-primary);
}

.fx-summary__legend-item:focus-visible {
    outline: 2px solid rgba(91, 124, 250, 0.35);
    outline-offset: 3px;
    border-radius: 4px;
}

.fx-summary__legend-item.is-muted {
    color: var(--text-tertiary);
    text-decoration-line: line-through;
    opacity: 0.58;
}

.fx-summary__legend-swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

.fx-summary__legend-swatch--stk { background: #5B7CFA; }
.fx-summary__legend-swatch--opt { background: #0F9F8F; }
.fx-summary__legend-swatch--other { background: #8B5CF6; }
.fx-summary__legend-swatch--fx { background: #C07A16; }

.fx-summary-slider {
    width: 100%;
    margin: 0;
}

.fx-summary-slider__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.fx-summary-slider__caption,
.fx-summary-slider__range {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.fx-summary-slider__range {
    font-variant-numeric: tabular-nums;
}

.fx-summary-slider__track {
    position: relative;
    height: 24px;
}

.fx-summary-slider__track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(91, 124, 250, 0.16), rgba(15, 159, 143, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.fx-summary-slider__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.fx-summary-slider__input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border: 0;
}

.fx-summary-slider__input::-webkit-slider-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #334155;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.24);
    appearance: none;
    -webkit-appearance: none;
}

.fx-summary-slider__input::-moz-range-track {
    height: 6px;
    background: transparent;
    border: 0;
}

.fx-summary-slider__input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #334155;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.24);
}

.fx-summary-bar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 74px;
    padding-top: 24px;
}

.fx-summary-bar__center-line {
    position: absolute;
    left: 50%;
    top: 16px;
    bottom: 4px;
    width: 1px;
    background: rgba(31, 41, 55, 0.28);
    transform: translateX(-0.5px);
    z-index: 3;
}

.fx-summary-bar__axis-label {
    position: absolute;
    top: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fx-summary-bar__axis-label--loss { right: calc(50% + 10px); }
.fx-summary-bar__axis-label--gain { left: calc(50% + 10px); }

.fx-summary-bar__side {
    display: flex;
    align-items: stretch;
    height: 34px;
    min-width: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(148, 163, 184, 0.12) 0,
            rgba(148, 163, 184, 0.12) 6px,
            rgba(248, 250, 252, 0.72) 6px,
            rgba(248, 250, 252, 0.72) 12px
        );
    border: 1px solid rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.fx-summary-bar__side--loss {
    flex-direction: row-reverse;
    border-radius: 7px 0 0 7px;
    border-right: 0;
}

.fx-summary-bar__side--gain {
    border-radius: 0 7px 7px 0;
    border-left: 0;
}

.fx-summary-segment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3px;
    height: 34px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    overflow: hidden;
    outline: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.fx-summary-segment:hover,
.fx-summary-segment:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    z-index: 4;
}

.fx-summary-segment:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.fx-summary-segment__label {
    padding: 0 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.fx-summary-segment--loss .fx-summary-segment__label {
    direction: ltr;
}

.fx-summary-segment--stk.fx-summary-segment--gain { background: #5B7CFA; }
.fx-summary-segment--stk.fx-summary-segment--loss { background: #C34558; }
.fx-summary-segment--opt.fx-summary-segment--gain { background: #0F9F8F; }
.fx-summary-segment--opt.fx-summary-segment--loss { background: #D85545; }
.fx-summary-segment--other.fx-summary-segment--gain { background: #8B5CF6; }
.fx-summary-segment--other.fx-summary-segment--loss { background: #A34B8D; }
.fx-summary-segment--fx.fx-summary-segment--gain { background: #3B7A18; }
.fx-summary-segment--fx.fx-summary-segment--loss { background: #C07A16; }

.fx-summary__totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.fx-summary__meta {
    margin-bottom: 3px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.fx-summary__num {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.fx-summary__num.negative { color: #A32D2D; }
.fx-summary__num.positive { color: #3B6D11; }
.fx-summary__num--neutral { color: var(--text-primary); }
.fx-summary__num--total { font-size: 15px; }

.fx-seg-tip {
    position: fixed;
    z-index: 9999;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 190px;
    max-width: 260px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none;
}
.fx-seg-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}
.fx-seg-tip__label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 3px;
}
.fx-seg-tip__value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}
.fx-seg-tip__value.positive { color: #97C459; }
.fx-seg-tip__value.negative { color: #E24B4A; }
.fx-seg-tip__value.negative-fx { color: #D4890A; }
.fx-seg-tip__sub {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

.heatmap-cell-tip {
    position: fixed;
    z-index: 9999;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 200px;
    max-width: 300px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: none;
    font-size: 12px;
    line-height: 1.4;
}
.heatmap-cell-tip__header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 3px;
}
.heatmap-cell-tip__total {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}
.heatmap-cell-tip__total.positive { color: #97C459; }
.heatmap-cell-tip__total.negative { color: #E24B4A; }
.heatmap-cell-tip__divider {
    border-top: 1px solid #374151;
    margin: 7px 0;
}
.heatmap-cell-tip__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 0;
}
.heatmap-cell-tip__row--other {
    margin-top: 3px;
    color: #9ca3af;
}
.heatmap-cell-tip__sym {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}
.heatmap-cell-tip__val {
    white-space: nowrap;
    font-weight: 600;
}
.heatmap-cell-tip__val.positive { color: #97C459; }
.heatmap-cell-tip__val.negative { color: #E24B4A; }


@media (max-width: 640px) {
    .fx-impact-body { padding: 16px 14px 12px; }
    .fx-summary__legend { justify-content: flex-start; }
    .fx-summary-slider__topline { align-items: flex-start; flex-direction: column; gap: 4px; }
    .fx-summary-bar { min-height: 86px; }
    .fx-summary-segment__label { display: none; }
    .fx-summary__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
