
        :root {
            --nav-height: 110px; /* adjust if needed */
        
            --nt-positive: #16A34A;       /* green */
            --nt-negative: #DC2626;       /* red */
            --nt-neutral: #64748B;        /* slate gray */
            --nt-dark: #0F172A;
            --nt-blue: #2563EB;
            --nt-purple: #9333EA;
            --nt-selected-row: #EAF6FF;
            --nt-row-hover: #F8FAFC;
            --nt-border: #E2E8F0;
        }
        * {
            box-sizing: border-box;
        }
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            font-size: 18px;
        }

        /* Navbar container */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #1a7d9c;
            padding: 10px 30px;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--nav-height);
            z-index: 1000;
        }

        /* Logo styling */
        .navbar .logo img {
            height: 100px;
        }

        /* Links container */
        .navbar .nav-links {
            display: flex;
        }

        /* Links styling */
        .navbar .nav-links a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            margin-left: 5px;
            font-size: 16px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        /* Hover effect */
        .navbar .nav-links a:hover {
            background-color: #575757;
        }
        

        .user-menu {
            position: relative;
            cursor: pointer;
        }

        /* User pill */
        .user-pill {
            background: white;
            color: #1a7d9c;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }
        
        .user-pill:hover {
            background: #f0f0f0;
        }
        
        /* Arrow */
        .user-pill .arrow {
            font-size: 10px;
        }
        
        /* Dropdown */
        .dropdown {
            position: absolute;
            right: 0;
            top: 120%;
            background: white;
            border-radius: 8px;
            min-width: 190px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            overflow: hidden;
        }
        
        /* Dropdown item */
        .dropdown div {
            padding: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .dropdown div:hover {
            background: #f2f2f2;
        }

        /* Main content pushed down below navbar */
        main {
            padding-top: calc(var(--nav-height) + 20px);
            padding-left: 30px; /* added left padding */
        }
        
        /* Make the form layout two rows: title row and inputs row */
        #backtest-form {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        /* First row (title) */
        .trade-form h3 {
            margin: 0;
            text-align: center;
        }
        
        /* Second row (all inputs in one line) */
        .form-row {
            display: flex;
            flex-wrap: wrap; /* Wrap on smaller screens */
            gap: 10px;
            justify-content: center;
        }
        
        /* Make labels and inputs stay together */
        .form-group {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        
        /* Reduce input width so they fit in one line */
        .form-group input,
        .form-group select {
            width: 145px;
        }
        
        #backtest-form label {
            margin: 0 5px 0 0; /* small space after label */
        }

        #backtest-form input,
        #backtest-form select,
        #backtest-form button {
            margin: 0 10px 0 0;
        }
        
        #backtest-form button {
            white-space: nowrap; /* prevents breaking button text */
        }
        
        /* Make form labels bigger */
        label {
            font-size: 15px;
        }
        
        /* Make inputs bigger (both text & number/date selectors) */
        input, select, textarea, button {
            font-size: 15px;   /* text inside box */
            padding: 8px 10px; /* a bit more padding for comfort */
        }
        
        /* Make placeholder text bigger */
        input::placeholder, textarea::placeholder {
            font-size: 15px;
        }

        /* Optional: make the "Run Backtest" button match */
        button {
            font-size: 15px;
            padding: 10px 15px;
            cursor: pointer;
        }

        /* Results section */
        .results-section {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            margin: 20px auto;
            width: 90%;
            max-width: 1200px;
            border: 1px solid #e0e0e0;
        }
        #results p {
            color: #000000;
            font-size: 20px;
            line-height: 1.6;
        }

        /* Smooth fade transition */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
        }
    
        .modal-content {
            background-color: #fefefe;
            margin: auto;
            padding: 20px;
            border: 1px solid #888;
            width: 300px;
            border-radius: 8px;
            text-align: center;
        }

        .close-btn {
            float: right;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
        }

        /* Auth area container */
        .auth-area {
            display: flex;
            align-items: center;
        }
        
        /* Login button */
        #login-btn {
            background: white;
            color: #1a7d9c;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: bold;
            font-size: 14px;
            transition: all 0.3s ease;
            border: 2px solid white;
        }
        
        /* Hover effect */
        #login-btn:hover {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        #signupBtn, #signinBtn {
            margin-top: 15px;
        }

        #forgot-password {
            font-size: 12px;
            color: #777;
            text-align: center;
        }

        #forgot-password:hover {
            text-decoration: underline;
            color: #000;
        }

        /* Footer styling */
        .footer {
            text-align: center;
            padding: 15px;
            font-size: 14px;
            background-color: #f2f2f2;
            position: fixed;
            bottom: 0;
            width: 100%;
        }
        
        .footer a {
            color: black;
            text-decoration: none;
        }
        .footer a:hover {
            text-decoration: underline;
        }

        /* ===============================
           Optional centered main title only
        ================================ */
        
        .nt-page-header-center {
            text-align: center;
        }
        
        .nt-page-header-center .nt-page-title {
            text-align: center;
        }

        /* ===============================
           Models section layout
        ================================ */
        
        .nt-models-section {
            max-width: 1180px;
            margin: 0 auto;
            padding: 36px 24px 60px 24px;
        }
        
        .nt-models-header {
            margin-bottom: 18px;
        }
        
        .nt-models-kicker {
            font-size: 12px;
            font-weight: 850;
            color: var(--nt-blue);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 6px;
        }
        
        .nt-models-title {
            margin: 0;
            font-size: 30px;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-models-subtitle {
            max-width: 760px;
            margin: 8px 0 0 0;
            font-size: 15px;
            line-height: 1.6;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        .nt-model-tabs {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin: 18px 0 22px 0;
        }
        
        .nt-model-tab {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 9px 14px;
            border-radius: 999px;
            border: 1px solid var(--nt-border);
            background: #ffffff;
            color: var(--nt-dark);
            text-decoration: none;
            font-size: 13px;
            font-weight: 850;
            transition: all 0.15s ease;
        }
        
        .nt-model-tab:hover {
            background: #F1F5F9;
            border-color: #CBD5E1;
        }
        
        .nt-model-tab.active {
            background: var(--nt-dark);
            border-color: var(--nt-dark);
            color: #ffffff;
        }
        
        .nt-models-container {
            display: flex;
            flex-direction: column;
            gap: 22px;
        }
        
        .nt-model-panel {
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
            padding: 22px;
            scroll-margin-top: calc(var(--nav-height) + 20px);
        }
        
        .nt-model-panel-header {
            margin-bottom: 18px;
        }
        
        .nt-model-panel-title {
            margin: 0;
            font-size: 22px;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-model-panel-description {
            margin: 8px 0 0 0;
            font-size: 14px;
            line-height: 1.6;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        @media (max-width: 700px) {
            .nt-models-section {
                padding: 28px 14px 50px 14px;
            }
        
            .nt-models-title {
                font-size: 24px;
            }
        
            .nt-model-panel {
                padding: 16px;
            }
        }

        /* ===============================
           Consistent section title alignment
        ================================ */
        
        .nt-page-header {
            width: 100%;
            margin: 0 0 18px 0;
            text-align: left;
        }
        
        .nt-page-title {
            margin: 0;
            font-size: 22px;
            font-weight: 850;
            color: var(--nt-dark);
            text-align: left;
        }
        
        /* Override older centered form-title rules */
        .nt-backtest-section .nt-backtest-header {
            justify-content: flex-start;
            text-align: left;
            width: 100%;
        }
        
        .nt-backtest-section .nt-backtest-title {
            text-align: left !important;
        }
        
        .nt-backtest-section .trade-form h3 {
            text-align: left !important;
        }
        
        .nt-backtest-section #backtest-form {
            align-items: stretch !important;
        }
        
        .nt-backtest-section .form-row {
            justify-content: stretch !important;
        }

        /* ===============================
           Current view / active filters row
        ================================ */

        .nt-active-filter-row {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            flex-wrap: wrap;
            margin: 10px 0 12px 0;
            padding: 9px 12px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
        }
        
        .nt-active-filter-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .nt-active-filter-label {
            font-size: 12px;
            font-weight: 850;
            color: var(--nt-dark);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
    
        .nt-active-filter-chips {
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
        }
        
        .nt-active-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 9px;
            border-radius: 999px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 750;
        }

        .nt-active-chip.chip-assumption {
            color: var(--nt-dark);
            background: rgba(37, 99, 235, 0.06);
            border-color: rgba(37, 99, 235, 0.16);
        }
        
        .nt-active-chip.chip-buy {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.08);
            border-color: rgba(22, 163, 74, 0.20);
        }
        
        .nt-active-chip.chip-sell {
            color: var(--nt-negative);
            background: rgba(220, 38, 38, 0.08);
            border-color: rgba(220, 38, 38, 0.20);
        }
        
        .nt-active-chip.chip-hold {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.08);
            border-color: rgba(100, 116, 139, 0.20);
        }
        
        .nt-active-clear-btn {
            border: none;
            background: transparent;
            color: var(--nt-blue);
            font-size: 12px;
            font-weight: 850;
            cursor: pointer;
            padding: 6px 8px;
            border-radius: 999px;
            transition: all 0.15s ease;
        }
        
        .nt-active-clear-btn:hover {
            background: rgba(37, 99, 235, 0.08);
        }
        
        @media (max-width: 700px) {
            .nt-active-filter-row {
                align-items: flex-start;
            }
        
            .nt-active-clear-btn {
                width: 100%;
                text-align: left;
            }
        }

        /* ===============================
           Backtest results cards
        ================================ */
        
        .nt-backtest-results {
            margin-top: 18px;
        }
        
        .nt-backtest-results-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }
        
        .nt-backtest-results-title {
            margin: 0;
            font-size: 18px;
            font-weight: 850;
            color: var(--nt-dark);
        }
        
        .nt-backtest-results-subtitle {
            margin: 4px 0 0 0;
            font-size: 13px;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-result-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 10px;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }
        
        .nt-result-pill strong {
            color: var(--nt-dark);
        }
        
        .nt-backtest-results-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 16px;
        }
        
        .nt-result-card {
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
        }
        
        .nt-result-label {
            font-size: 12px;
            font-weight: 800;
            color: var(--nt-neutral);
            margin-bottom: 7px;
        }
        
        .nt-result-value {
            font-size: 24px;
            font-weight: 850;
            color: var(--nt-dark);
            line-height: 1.1;
        }
        
        .nt-result-sub {
            margin-top: 6px;
            font-size: 12px;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-backtest-chart-card {
            margin-top: 14px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            padding: 14px;
        }
        
        .nt-backtest-chart-title {
            font-size: 14px;
            font-weight: 850;
            color: var(--nt-dark);
            margin-bottom: 10px;
        }
        
        .nt-backtest-chart-shell {
            height: 430px;
            width: 100%;
            position: relative;
        }
        
        @media (max-width: 900px) {
            .nt-backtest-results-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 600px) {
            .nt-backtest-results-header {
                flex-direction: column;
            }
        
            .nt-backtest-results-grid {
                grid-template-columns: 1fr;
            }
        
            .nt-backtest-chart-shell {
                height: 320px;
            }
        }

        /* ===============================
           Return horizon segmented buttons
        ================================ */
        
        .nt-period-control {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .nt-period-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--nt-dark);
            white-space: nowrap;
        }
        
        .nt-period-pills {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            background: #F1F5F9;
            border: 1px solid var(--nt-border);
            border-radius: 999px;
        }
        
        .period-pill {
            border: none;
            background: transparent;
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 800;
            padding: 7px 11px;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .period-pill:hover {
            background: #E2E8F0;
            color: var(--nt-dark);
        }
        
        .period-pill.active {
            background: var(--nt-blue);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
        }

        /* ===============================
           NeuralTrend color system
           Step 1: table + signal colors
        ================================ */
        
        /* Signal badges */
        .signal-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 68px;
            padding: 3px 9px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.2px;
            white-space: nowrap;
        }
        
        .signal-buy {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.10);
            border: 1px solid rgba(22, 163, 74, 0.22);
        }
        
        .signal-sell {
            color: var(--nt-negative);
            background: rgba(220, 38, 38, 0.10);
            border: 1px solid rgba(220, 38, 38, 0.22);
        }
        
        .signal-hold {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.10);
            border: 1px solid rgba(100, 116, 139, 0.18);
        }
        
        /* Return values */
        .return-value {
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }
        
        .return-positive {
            color: var(--nt-positive);
        }
        
        .return-negative {
            color: var(--nt-negative);
        }
        
        .return-neutral {
            color: var(--nt-neutral);
        }
        
        /* Signal board rows */
        .signal-row {
            transition: background 0.15s ease;
        }
        
        .signal-row:hover {
            background: var(--nt-row-hover);
        }
        
        .signal-row.selected {
            background: var(--nt-selected-row);
        }
        
        .signal-ticker {
            font-weight: 700;
            color: var(--nt-dark);
        }
        
        .signal-cell-right {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        
        .signal-cell-left {
            text-align: left;
        }

        /* ===============================
           Asset type segmented buttons
        ================================ */
        
        .nt-asset-control {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .nt-asset-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--nt-dark);
            white-space: nowrap;
        }
        
        .nt-asset-pills {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            background: #F1F5F9;
            border: 1px solid var(--nt-border);
            border-radius: 999px;
        }
        
        .asset-pill {
            border: none;
            background: transparent;
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 800;
            padding: 7px 12px;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .asset-pill:hover {
            background: #E2E8F0;
            color: var(--nt-dark);
        }
        
        .asset-pill.active {
            background: var(--nt-dark);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
        }

        /* ===============================
           Signal table header filters
        ================================ */
        
        .nt-signal-table-card {
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
            background: #ffffff;
        }
        
        .nt-signal-header {
            display: grid;
            grid-template-columns: 160px 100px 100px 100px 100px 140px 160px 120px;
            align-items: center;
            gap: 0;
            padding: 11px 12px;
            border-bottom: 1px solid var(--nt-border);
            background: #F8FAFC;
            font-size: 13px;
            font-weight: 800;
            color: var(--nt-dark);
            white-space: nowrap;
            box-sizing: border-box;
            width: 100%;
        }
        
        .nt-header-title {
            display: block;
            margin-bottom: 5px;
        }
        
        .nt-header-right {
            text-align: right;
            cursor: pointer;
            user-select: none;
        }
        
        .nt-header-right:hover {
            color: var(--nt-blue);
        }
        
        .nt-sort-indicator {
            display: inline-block;
            margin-top: 5px;
            min-width: 18px;
            font-size: 11px;
            font-weight: 700;
            color: var(--nt-neutral);
        }
        
        .nt-signal-filter-select {
            width: 86px;
            padding: 4px 7px;
            border-radius: 999px;
            border: 1px solid var(--nt-border);
            background: #ffffff;
            color: var(--nt-neutral);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            outline: none;
        }
        
        .nt-signal-filter-select:hover {
            border-color: var(--nt-blue);
            color: var(--nt-dark);
        }
        
        .nt-signal-filter-select:focus {
            border-color: var(--nt-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        
        .nt-filter-active {
            border-color: var(--nt-blue) !important;
            color: var(--nt-blue) !important;
            background: rgba(37, 99, 235, 0.07) !important;
        }

        /* ===============================
           Performance assumptions bar
        ================================ */
        
        .nt-assumptions-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            margin: 14px 0 14px 0;
            padding: 12px 14px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            color: var(--nt-dark);
        }
        
        .nt-assumptions-left {
            display: flex;
            align-items: center;
            gap: 9px;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 600;
        }
        
        .nt-assumption-icon {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.10);
            color: var(--nt-blue);
            font-weight: 900;
        }
        
        .nt-assumption-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 9px;
            border-radius: 999px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 700;
        }
        
        .nt-assumption-pill strong {
            color: var(--nt-dark);
        }
        
        .nt-assumptions-note {
            font-size: 12px;
            color: var(--nt-neutral);
            font-weight: 600;
        }

        /* ===============================
           Modern signal controls card
        ================================ */
        
        .nt-controls-card {
            margin-bottom: 14px;
            padding: 16px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
        }
        
        .nt-controls-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }
        
        .nt-section-eyebrow {
            font-size: 12px;
            font-weight: 800;
            color: var(--nt-blue);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 4px;
        }
        
        .nt-controls-title {
            margin: 0;
            font-size: 18px;
            font-weight: 800;
            color: var(--nt-dark);
        }
        
        .nt-controls-subtitle {
            margin: 4px 0 0 0;
            font-size: 13px;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        .nt-controls-grid {
            display: grid;
            grid-template-columns: minmax(260px, 1.15fr) auto auto;
            gap: 14px;
            align-items: end;
        }
        
        .nt-control-group {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        
        .nt-control-label {
            font-size: 12px;
            font-weight: 800;
            color: var(--nt-dark);
        }
        
        .nt-search-shell {
            position: relative;
            width: 100%;
        }
        
        .nt-search-icon {
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
            color: var(--nt-neutral);
            pointer-events: none;
        }
        
        .nt-search-input {
            width: 100%;
            height: 42px;
            padding: 9px 12px 9px 38px;
            border-radius: 999px;
            border: 1px solid var(--nt-border);
            background: #F8FAFC;
            color: var(--nt-dark);
            font-size: 14px;
            font-weight: 600;
            outline: none;
            transition: all 0.15s ease;
        }
        
        .nt-search-input::placeholder {
            color: #94A3B8;
            font-weight: 500;
        }
        
        .nt-search-input:hover {
            background: #ffffff;
            border-color: #CBD5E1;
        }
        
        .nt-search-input:focus {
            background: #ffffff;
            border-color: var(--nt-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        
        .nt-reset-btn {
            border: 1px solid var(--nt-border);
            background: #ffffff;
            color: var(--nt-dark);
            border-radius: 999px;
            padding: 9px 14px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        
        .nt-reset-btn:hover {
            background: #F1F5F9;
            border-color: #CBD5E1;
        }
        
        @media (max-width: 1050px) {
            .nt-controls-grid {
                grid-template-columns: 1fr;
                align-items: stretch;
            }
        
            .nt-period-control,
            .nt-asset-control {
                align-items: flex-start;
            }
        }
        
        @media (max-width: 600px) {
            .nt-controls-top {
                flex-direction: column;
            }
        
            .nt-reset-btn {
                width: 100%;
            }
        }

        /* ===============================
           Equity preview chart card
        ================================ */
        
        .nt-preview-wrapper {
            width: 100%;
            display: flex;
            justify-content: center;
            margin-top: 18px;
        }
        
        .nt-preview-card {
            width: 1100px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
            padding: 18px;
        }
        
        .nt-preview-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 12px;
        }
        
        .nt-preview-title {
            margin: 0;
            font-size: 20px;
            font-weight: 850;
            color: var(--nt-dark);
        }
        
        .nt-preview-subtitle {
            margin: 5px 0 0 0;
            font-size: 13px;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-preview-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .nt-preview-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 9px;
            border-radius: 999px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 700;
        }
        
        .nt-preview-chip strong {
            color: var(--nt-dark);
        }
        
        .nt-preview-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        
        .nt-scale-btn {
            border: 1px solid var(--nt-border);
            background: #ffffff;
            color: var(--nt-dark);
            border-radius: 999px;
            padding: 9px 13px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-scale-btn:hover {
            background: #F1F5F9;
            border-color: #CBD5E1;
        }
        
        .nt-preview-chart {
            height: 380px;
            width: 100%;
            position: relative;
            border-radius: 14px;
            border: 1px solid var(--nt-border);
            background: #ffffff;
            padding: 10px;
        }
        
        @media (max-width: 1150px) {
            .nt-preview-card {
                width: 100%;
            }
        }
        
        @media (max-width: 700px) {
            .nt-preview-header {
                flex-direction: column;
            }
        
            .nt-preview-actions {
                width: 100%;
            }
        
            .nt-scale-btn {
                width: 100%;
            }
        
            .nt-preview-chart {
                height: 320px;
            }
        }

        /* ===============================
           Selected asset performance cards
        ================================ */
        
        .nt-performance-panel {
            width: 100%;
            margin: 0 0 18px 0;
        }
        
        .nt-selected-meta {
            font-size: 14px;
            font-weight: 600;
            color: var(--nt-dark);
            margin-bottom: 12px;
        }
        
        .nt-selected-meta span {
            color: var(--nt-blue);
            font-weight: 800;
        }
        
        .nt-metric-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }
        
        .nt-metric-card {
            display: flex;
            align-items: center;
            gap: 14px;
            min-height: 92px;
            padding: 18px 20px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
        }
        
        .nt-card-icon {
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 800;
        }
        
        .nt-icon-blue {
            color: var(--nt-blue);
            background: rgba(37, 99, 235, 0.10);
        }
        
        .nt-icon-purple {
            color: var(--nt-purple);
            background: rgba(147, 51, 234, 0.10);
        }
        
        .nt-icon-green {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.10);
        }
        
        .nt-icon-neutral {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.12);
        }
        
        .nt-metric-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--nt-dark);
            margin-bottom: 5px;
        }
        
        .nt-metric-value {
            font-size: 26px;
            font-weight: 800;
            line-height: 1.1;
        }
        
        .nt-metric-sub {
            margin-top: 6px;
            font-size: 12px;
            color: var(--nt-neutral);
        }
        
        .nt-signal-value .signal-badge {
            min-width: 92px;
            padding: 6px 12px;
            font-size: 15px;
        }
        
        /* Responsive behavior */
        @media (max-width: 1000px) {
            .nt-metric-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 600px) {
            .nt-metric-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Backtest simulation card
        ================================ */
        
        .nt-backtest-section {
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
            padding: 20px;
        }
        
        .nt-backtest-section #backtest-form {
            align-items: stretch;
            width: 100%;
        }
        
        .nt-backtest-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }
        
        .nt-backtest-title {
            margin: 0;
            font-size: 20px;
            font-weight: 850;
            color: var(--nt-dark);
        }
        
        .nt-backtest-subtitle {
            margin: 5px 0 0 0;
            font-size: 13px;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-backtest-section .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
            gap: 14px;
            align-items: end;
            justify-content: stretch;
        }
        
        .nt-backtest-section .form-group {
            display: flex;
            flex-direction: column;
            gap: 7px;
            align-items: stretch;
        }
        
        .nt-backtest-section label {
            font-size: 12px;
            font-weight: 800;
            color: var(--nt-dark);
        }
        
        .nt-backtest-section input,
        .nt-backtest-section select {
            width: 100%;
            height: 42px;
            border-radius: 12px;
            border: 1px solid var(--nt-border);
            background: #F8FAFC;
            color: var(--nt-dark);
            font-size: 14px;
            font-weight: 600;
            padding: 8px 10px;
            outline: none;
            transition: all 0.15s ease;
        }
        
        .nt-backtest-section input:hover,
        .nt-backtest-section select:hover {
            background: #ffffff;
            border-color: #CBD5E1;
        }
        
        .nt-backtest-section input:focus,
        .nt-backtest-section select:focus {
            background: #ffffff;
            border-color: var(--nt-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        
        .nt-run-backtest-btn {
            width: 100%;
            height: 42px;
            border: none;
            border-radius: 12px;
            background: var(--nt-blue);
            color: #ffffff;
            font-size: 14px;
            font-weight: 850;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-run-backtest-btn:hover {
            background: #1D4ED8;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
        }
        
        .nt-backtest-note {
            margin-top: 12px;
            font-size: 12px;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-backtest-section #results:not(:empty) {
            margin-top: 18px;
            padding: 16px;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            background: #F8FAFC;
        }

        .nt-backtest-chart-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 10px;
        }
        
        .nt-backtest-chart-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        @media (max-width: 650px) {
            .nt-backtest-chart-header {
                flex-direction: column;
                align-items: flex-start;
            }
        
            .nt-backtest-chart-actions {
                width: 100%;
            }
        
            .nt-backtest-chart-actions .nt-scale-btn {
                width: 100%;
            }
        }

        /* ===============================
           Model tabs: show one model at a time
        ================================ */
        
        .nt-model-tabs {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 18px 0 22px 0;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 4px;
        }
        
        .nt-model-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 9px 14px;
            border-radius: 999px;
            border: 1px solid var(--nt-border);
            background: #ffffff;
            color: var(--nt-dark);
            text-decoration: none;
            font-size: 13px;
            font-weight: 850;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
            flex: 0 0 auto;
        }
        
        .nt-model-tab:hover {
            background: #F1F5F9;
            border-color: #CBD5E1;
        }
        
        .nt-model-tab.active {
            background: var(--nt-dark);
            border-color: var(--nt-dark);
            color: #ffffff;
        }
        
        /* Hide inactive model panels */
        .nt-model-panel {
            display: none;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
            padding: 22px;
            overflow: hidden;
        }
        
        .nt-model-panel.nt-model-panel-active {
            display: block;
        }

        /* ===============================
           Prevent content overflow in model cards
        ================================ */
        
        .nt-model-panel,
        .nt-model-panel *,
        .nt-controls-card,
        .nt-metric-card,
        .nt-preview-card,
        .nt-backtest-section,
        .nt-signal-table-card {
            min-width: 0;
            box-sizing: border-box;
        }
        
        .nt-model-panel p,
        .nt-model-panel-description,
        .nt-controls-subtitle,
        .nt-preview-subtitle,
        .nt-backtest-subtitle,
        .nt-backtest-note {
            overflow-wrap: break-word;
            word-break: normal;
        }
        
        .nt-model-panel .results-section {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            box-sizing: border-box;
        }
        
        #equity-preview-container,
        .nt-preview-card {
            width: 100% !important;
            max-width: 100% !important;
        }
        
        #equity-preview-chart,
        .nt-preview-chart,
        .nt-backtest-chart-shell {
            width: 100% !important;
            max-width: 100% !important;
        }
        
        .nt-metric-grid {
            width: 100%;
        }
        
        .nt-controls-grid {
            width: 100%;
        }
        
        .nt-signal-table-card {
            width: 100%;
        }
        
        /* Keep large dashboard pieces from breaking the model card */
        @media (max-width: 1200px) {
            .nt-metric-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 700px) {
            .nt-metric-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Typography hierarchy cleanup
           Keeps page cleaner and less crowded
        ================================ */
        
        /* Global page tuning */
        body {
            font-size: 16px;
            color: var(--nt-dark);
        }
        
        /* Main page content */
        main {
            padding-top: calc(var(--nav-height) + 32px);
            padding-left: 30px;
            padding-right: 30px;
        }
        
        /* Top site title: NeuralTrend */
        main > h1 {
            margin: 0 0 12px 0;
            font-size: 30px;
            line-height: 1.15;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        main > p {
            max-width: 960px;
            margin: 0 0 34px 0;
            font-size: 15px;
            line-height: 1.6;
            color: var(--nt-dark);
            font-weight: 500;
        }
        
        /* Models section should not compete with main NeuralTrend title */
        .nt-models-section {
            padding-top: 16px;
        }
        
        .nt-models-header {
            margin-bottom: 16px;
        }
        
        .nt-models-kicker,
        .nt-section-eyebrow {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: 0.055em;
            text-transform: uppercase;
            color: var(--nt-blue);
        }
        
        .nt-models-title {
            margin: 0;
            font-size: 24px;
            line-height: 1.2;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-models-subtitle {
            max-width: 720px;
            margin: 7px 0 0 0;
            font-size: 14px;
            line-height: 1.55;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        /* Model card title */
        .nt-model-panel-title {
            margin: 0;
            font-size: 21px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-model-panel-description {
            margin: 7px 0 0 0;
            font-size: 13px;
            line-height: 1.55;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        /* Dashboard main title inside EpochSignaler card */
        .nt-page-title {
            margin: 0;
            font-size: 21px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        /* Selected asset meta line */
        .nt-selected-meta {
            font-size: 13px;
            font-weight: 700;
            color: var(--nt-dark);
            margin-bottom: 11px;
        }
        
        /* Metric cards */
        .nt-metric-label {
            font-size: 12px;
            line-height: 1.25;
            font-weight: 800;
            color: var(--nt-dark);
            margin-bottom: 5px;
        }
        
        .nt-metric-value {
            font-size: 23px;
            line-height: 1.1;
            font-weight: 900;
        }
        
        .nt-metric-sub {
            margin-top: 5px;
            font-size: 11px;
            line-height: 1.35;
            color: var(--nt-neutral);
        }
        
        /* Signal board control title */
        .nt-controls-title {
            margin: 0;
            font-size: 16px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-controls-subtitle {
            margin: 4px 0 0 0;
            font-size: 12px;
            line-height: 1.45;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        /* Equity preview */
        .nt-preview-title {
            margin: 0;
            font-size: 18px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-preview-subtitle {
            margin: 5px 0 0 0;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        /* Backtest */
        .nt-backtest-title {
            margin: 0;
            font-size: 18px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-backtest-subtitle {
            margin: 5px 0 0 0;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        /* Backtest results */
        .nt-backtest-results-title {
            margin: 0;
            font-size: 17px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-backtest-results-subtitle {
            margin: 4px 0 0 0;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        /* Table text should remain compact */
        .nt-signal-header {
            font-size: 12px;
        }
        
        .signal-row {
            font-size: 13px;
        }
        
        .signal-badge {
            font-size: 11px;
        }
        
        /* Keep forms compact */
        .nt-control-label,
        .nt-backtest-section label {
            font-size: 11px;
            font-weight: 850;
        }
        
        /* Responsive */
        @media (max-width: 700px) {
            main > h1 {
                font-size: 26px;
            }
        
            .nt-models-title {
                font-size: 21px;
            }
        
            .nt-page-title {
                font-size: 19px;
            }
        
            .nt-metric-value {
                font-size: 21px;
            }
        }

        /* ===============================
           Page width and alignment cleanup
        ================================ */
        
        .nt-page-container {
            width: min(1450px, calc(100vw - 72px));
            margin: 0 auto;
        }
        
        /* Remove old inconsistent left spacing from main */
        main {
            padding-top: calc(var(--nav-height) + 32px);
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        
        /* Top intro section */
        .nt-site-intro {
            margin-bottom: 28px;
        }
        
        .nt-site-title {
            margin: 0 0 10px 0;
            font-size: 30px;
            line-height: 1.15;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-site-subtitle {
            max-width: 980px;
            margin: 0;
            font-size: 15px;
            line-height: 1.6;
            color: var(--nt-dark);
            font-weight: 500;
        }
        
        /* Make models section use the same page width */
        .nt-models-section {
            width: 100%;
            max-width: none !important;
            margin: 0 !important;
            padding: 16px 0 60px 0 !important;
        }
        
        /* Make model cards use available width cleanly */
        .nt-models-container {
            width: 100%;
        }
        
        .nt-model-panel {
            width: 100%;
        }
        
        /* Large dashboard pieces should fill the card */
        .results-section {
            width: 100% !important;
            max-width: 100% !important;
        }
        
        /* On smaller screens, keep breathing room */
        @media (max-width: 700px) {
            .nt-page-container {
                width: min(100%, calc(100vw - 28px));
            }
        
            .nt-site-title {
                font-size: 26px;
            }
        }

        /* ===============================
           Vertical model selector
        ================================ */
        
        .nt-model-layout {
            display: grid;
            grid-template-columns: 240px minmax(0, 1fr);
            gap: 22px;
            align-items: start;
        }
        
        .nt-model-sidebar {
            position: sticky;
            top: calc(var(--nav-height) + 24px);
            align-self: start;
        }
        
        .nt-model-sidebar-card {
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
            padding: 14px;
        }
        
        .nt-model-sidebar-title {
            margin: 0 0 12px 0;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--nt-blue);
        }
        
        .nt-model-tabs {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 0;
            overflow: visible;
            padding: 0;
        }
        
        .nt-model-tab {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            text-align: left;
            gap: 4px;
            padding: 14px 14px;
            border-radius: 14px;
            border: 1px solid var(--nt-border);
            background: #ffffff;
            color: var(--nt-dark);
            font-size: 14px;
            font-weight: 850;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: normal;
            flex: initial;
        }
        
        .nt-model-tab:hover {
            background: #F8FAFC;
            border-color: #CBD5E1;
            transform: translateY(-1px);
        }
        
        .nt-model-tab.active {
            background: var(--nt-dark);
            border-color: var(--nt-dark);
            color: #ffffff;
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
        }
        
        .nt-model-tab-name {
            font-size: 14px;
            line-height: 1.25;
            font-weight: 900;
        }
        
        .nt-model-tab-desc {
            font-size: 12px;
            line-height: 1.35;
            font-weight: 600;
            opacity: 0.78;
        }
        
        .nt-model-content {
            min-width: 0;
        }
        
        .nt-model-panel {
            display: none;
        }
        
        .nt-model-panel.nt-model-panel-active {
            display: block;
        }
        
        /* Optional: slightly stronger model panel look */
        .nt-model-panel {
            background: #ffffff;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
            padding: 22px;
            overflow: hidden;
        }
        
        /* Responsive fallback */
        @media (max-width: 980px) {
            .nt-model-layout {
                grid-template-columns: 1fr;
            }
        
            .nt-model-sidebar {
                position: static;
            }
        
            .nt-model-sidebar-card {
                padding: 12px;
            }
        
            .nt-model-tabs {
                flex-direction: row;
                flex-wrap: wrap;
            }
        
            .nt-model-tab {
                width: auto;
                min-width: 180px;
                flex: 1 1 220px;
            }
        }
        
        @media (max-width: 640px) {
            .nt-model-tab {
                min-width: 100%;
            }
        }

        /* ===============================
           Model summary cards
        ================================ */
        
        .nt-model-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            margin: 16px 0 20px 0;
        }
        
        .nt-model-summary-icon {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.10);
            color: var(--nt-blue);
            font-size: 16px;
            font-weight: 900;
        }
        
        .nt-model-summary-label {
            font-size: 11px;
            line-height: 1.25;
            font-weight: 850;
            color: var(--nt-neutral);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 4px;
        }
        
        .nt-model-summary-value {
            font-size: 13px;
            line-height: 1.35;
            font-weight: 850;
            color: var(--nt-dark);
        }
        
        @media (max-width: 1050px) {
            .nt-model-summary-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 600px) {
            .nt-model-summary-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           EpochSignaler dashboard width cleanup
        ================================ */
        
        :root {
            --nt-signal-columns:
                minmax(130px, 1.15fr)
                repeat(4, minmax(95px, 0.85fr))
                minmax(135px, 1fr)
                minmax(150px, 1.05fr)
                minmax(145px, 1fr);
        }
        
        /* The EpochSignaler content should use the full model panel width */
        #epochsignaler-section {
            overflow: visible;
        }
        
        /* Remove old card-in-card squeeze from the main signal dashboard section */
        #epochsignaler-section .results-section.nt-epoch-dashboard {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
        }
        
        /* Full-width shell for signal overview */
        .nt-signal-board-shell {
            width: 100%;
            max-width: 100%;
            margin: 0;
        }

        .nt-signal-board-shell {
            scroll-margin-top: calc(var(--nav-height) + 22px);
        }
        
        /* Inner signal board card */
        .nt-signal-board-inner {
            width: 100%;
            max-width: 100%;
        }
        
        /* Keep table aligned and scroll only if screen is too narrow */
        .nt-signal-table-card {
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
        }
        
        /* Header and rows must use the same column system */
        .nt-signal-header {
            grid-template-columns: var(--nt-signal-columns) !important;
            min-width: 980px;
        }
        
        #signal-board .signal-row {
            grid-template-columns: var(--nt-signal-columns) !important;
            min-width: 980px;
        }
        
        /* Body area keeps vertical scrolling */
        #signal-board {
            max-height: 280px;
            overflow-y: auto;
            overflow-x: visible;
        }
        
        /* Make dashboard cards use full width */
        #selected-performance-panel,
        .nt-controls-card,
        .nt-active-filter-row,
        .nt-preview-wrapper,
        .nt-backtest-section {
            width: 100%;
            max-width: 100%;
        }
        
        /* Remove unnecessary centering from old wrappers if still present */
        #epochsignaler-section [style*="justify-content: center"] {
            justify-content: stretch !important;
        }
        
        /* Equity preview should fill available width */
        #equity-preview-container,
        .nt-preview-card {
            width: 100% !important;
            max-width: 100% !important;
        }
        
        /* Backtest card should align with rest of dashboard */
        #epochsignaler-section .nt-backtest-section {
            margin-top: 18px;
        }
        
        /* On very wide screens, keep model layout balanced */
        @media (min-width: 1550px) {
            .nt-page-container {
                width: min(1540px, calc(100vw - 80px));
            }
        }
        
        /* On medium screens, let the model dashboard breathe */
        @media (max-width: 1200px) {
            .nt-model-layout {
                grid-template-columns: 220px minmax(0, 1fr);
                gap: 18px;
            }
        }
        
        @media (max-width: 980px) {
            .nt-model-layout {
                grid-template-columns: 1fr;
            }
        
            .nt-signal-header,
            #signal-board .signal-row {
                min-width: 920px;
            }
        }

        /* ===============================
           Navbar + top intro refinement
        ================================ */
        
        /* Reduce old oversized navbar */
        :root {
            --nav-height: 82px;
        }
        
        .navbar {
            height: var(--nav-height) !important;
            padding: 8px 28px !important;
            background: #0F172A !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
        }
        
        .navbar .logo img {
            height: 62px !important;
            width: auto;
            object-fit: contain;
        }
        
        .navbar .nav-links {
            align-items: center;
            gap: 4px;
        }
        
        .navbar .nav-links a {
            color: rgba(255, 255, 255, 0.86) !important;
            font-size: 14px !important;
            font-weight: 750;
            padding: 8px 11px !important;
            border-radius: 999px !important;
            transition: all 0.15s ease;
        }
        
        .navbar .nav-links a:hover {
            background: rgba(255, 255, 255, 0.10) !important;
            color: #ffffff !important;
        }
        
        #login-btn,
        .user-pill {
            background: #ffffff !important;
            color: #0F172A !important;
            border: 1px solid rgba(255, 255, 255, 0.35) !important;
            border-radius: 999px !important;
            font-size: 13px !important;
            font-weight: 850 !important;
            padding: 8px 14px !important;
        }
        
        #login-btn:hover,
        .user-pill:hover {
            background: #F1F5F9 !important;
            color: #0F172A !important;
        }
        
        /* Give content better breathing room below the fixed nav */
        main {
            padding-top: calc(var(--nav-height) + 24px) !important;
        }
        
        /* Compact premium intro card */
        .nt-site-intro {
            position: relative;
            overflow: hidden;
            margin-bottom: 26px;
            padding: 26px 28px;
            border-radius: 22px;
            background:
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.24), transparent 34%),
                linear-gradient(135deg, #0F172A 0%, #172554 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
        }
        
        .nt-site-intro-content {
            max-width: 900px;
            position: relative;
            z-index: 1;
        }
        
        .nt-site-kicker {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-bottom: 10px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.10);
            color: rgba(255, 255, 255, 0.78);
            font-size: 11px;
            font-weight: 850;
            letter-spacing: 0.055em;
            text-transform: uppercase;
        }
        
        .nt-site-title {
            margin: 0;
            color: #ffffff;
            font-size: 32px;
            line-height: 1.12;
            font-weight: 950;
        }
        
        .nt-site-subtitle {
            max-width: 760px;
            margin: 10px 0 0 0;
            color: rgba(255, 255, 255, 0.78);
            font-size: 15px;
            line-height: 1.6;
            font-weight: 600;
        }
        
        .nt-site-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 18px;
        }
        
        .nt-hero-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            padding: 9px 14px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 850;
            text-decoration: none;
            transition: all 0.15s ease;
        }
        
        .nt-hero-btn-primary {
            background: #ffffff;
            color: #0F172A;
        }
        
        .nt-hero-btn-primary:hover {
            background: #E2E8F0;
        }
        
        .nt-hero-btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.18);
        }
        
        .nt-hero-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.14);
        }
        
        .nt-site-disclaimer {
            margin-top: 12px;
            color: rgba(255, 255, 255, 0.58);
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
        }
        
        /* Responsive navbar */
        @media (max-width: 900px) {
            :root {
                --nav-height: 76px;
            }
        
            .navbar {
                padding: 8px 16px !important;
            }
        
            .navbar .logo img {
                height: 54px !important;
            }
        
            .navbar .nav-links {
                gap: 2px;
            }
        
            .navbar .nav-links a {
                font-size: 12px !important;
                padding: 7px 8px !important;
            }
        }
        
        @media (max-width: 700px) {
            .navbar {
                overflow-x: auto;
                justify-content: flex-start !important;
                gap: 14px;
            }
        
            .navbar .nav-links {
                flex: 0 0 auto;
            }
        
            .auth-area {
                flex: 0 0 auto;
                margin-left: auto;
            }
        
            .nt-site-intro {
                padding: 22px 18px;
                border-radius: 18px;
            }
        
            .nt-site-title {
                font-size: 26px;
            }
        
            .nt-site-subtitle {
                font-size: 14px;
            }
        }

        /* ===============================
           Contact / Follow section with form
        ================================ */
        
        .nt-contact-section {
            margin: 34px 0 54px 0;
        }
        
        .nt-contact-card {
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
            gap: 24px;
            align-items: stretch;
            padding: 26px;
            border-radius: 22px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
        }
        
        .nt-contact-kicker {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: 0.055em;
            text-transform: uppercase;
            color: var(--nt-blue);
            margin-bottom: 8px;
        }
        
        .nt-contact-title {
            margin: 0;
            font-size: 22px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-contact-subtitle {
            margin: 8px 0 0 0;
            font-size: 14px;
            line-height: 1.6;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        .nt-social-links {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 18px;
        }
        
        .nt-social-link {
            display: flex;
            align-items: center;
            gap: 9px;
            min-height: 42px;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid var(--nt-border);
            background: #F8FAFC;
            color: var(--nt-dark);
            text-decoration: none;
            font-size: 13px;
            font-weight: 850;
            transition: all 0.15s ease;
        }
        
        .nt-social-link:hover {
            background: #EFF6FF;
            border-color: rgba(37, 99, 235, 0.28);
            color: var(--nt-blue);
            transform: translateY(-1px);
        }
        
        .nt-social-icon {
            width: 26px;
            height: 26px;
            flex: 0 0 26px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.10);
            color: var(--nt-blue);
            font-size: 11px;
            font-weight: 900;
        }
        
        .nt-contact-note {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid var(--nt-border);
            font-size: 12px;
            line-height: 1.55;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        /* Contact form box */
        .nt-contact-form-box {
            padding: 20px;
            border-radius: 18px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
        }
        
        .nt-contact-form-title {
            margin: 0 0 4px 0;
            font-size: 17px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-contact-form-subtitle {
            margin: 0 0 16px 0;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-contact-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .nt-contact-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .nt-contact-field label {
            font-size: 11px;
            font-weight: 850;
            color: var(--nt-dark);
            text-transform: uppercase;
            letter-spacing: 0.035em;
        }
        
        .nt-contact-field input,
        .nt-contact-field textarea {
            width: 100%;
            border: 1px solid var(--nt-border);
            border-radius: 12px;
            background: #ffffff;
            color: var(--nt-dark);
            font-size: 13px;
            font-weight: 600;
            padding: 11px 12px;
            outline: none;
            box-sizing: border-box;
        }
        
        .nt-contact-field textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .nt-contact-field input:focus,
        .nt-contact-field textarea:focus {
            border-color: rgba(37, 99, 235, 0.55);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
        }
        
        .nt-contact-submit {
            margin-top: 4px;
            border: none;
            border-radius: 999px;
            background: var(--nt-dark);
            color: #ffffff;
            font-size: 13px;
            font-weight: 900;
            padding: 11px 16px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-contact-submit:hover {
            transform: translateY(-1px);
            background: #020617;
        }
        
        .nt-contact-footer-line {
            margin-top: 18px;
            font-size: 12px;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        @media (max-width: 900px) {
            .nt-contact-card {
                grid-template-columns: 1fr;
                padding: 22px;
            }
        }
        
        @media (max-width: 600px) {
            .nt-contact-card {
                padding: 18px;
                border-radius: 18px;
            }
        
            .nt-social-links {
                grid-template-columns: 1fr;
            }
        
            .nt-contact-title {
                font-size: 19px;
            }
        }

        /* ===============================
           Secondary model preview panels
           AltIndexer + EpochForecaster
        ================================ */
        
        .nt-model-preview-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
            gap: 16px;
            align-items: stretch;
            margin-top: 18px;
        }
        
        .nt-model-preview-card,
        .nt-model-status-card {
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            background: #ffffff;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
            padding: 18px;
            min-width: 0;
        }
        
        .nt-model-preview-card {
            background:
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
                #ffffff;
        }
        
        .nt-model-preview-kicker {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 850;
            letter-spacing: 0.055em;
            text-transform: uppercase;
            color: var(--nt-blue);
            margin-bottom: 8px;
        }
        
        .nt-model-preview-title {
            margin: 0;
            font-size: 18px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-model-preview-text {
            margin: 8px 0 0 0;
            font-size: 13px;
            line-height: 1.6;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-model-feature-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-top: 16px;
        }
        
        .nt-model-feature-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 11px 12px;
            border-radius: 14px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
        }
        
        .nt-model-feature-icon {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.10);
            color: var(--nt-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 900;
        }
        
        .nt-model-feature-title {
            font-size: 13px;
            line-height: 1.3;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-model-feature-text {
            margin-top: 3px;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-status-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.08);
            border: 1px solid rgba(37, 99, 235, 0.16);
            color: var(--nt-blue);
            font-size: 12px;
            font-weight: 850;
        }
        
        .nt-status-dot {
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: var(--nt-blue);
        }
        
        .nt-status-title {
            margin: 14px 0 0 0;
            font-size: 16px;
            line-height: 1.3;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-status-text {
            margin: 7px 0 0 0;
            font-size: 12px;
            line-height: 1.55;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-mini-stat-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-top: 16px;
        }
        
        .nt-mini-stat {
            padding: 12px;
            border-radius: 14px;
            background: #F8FAFC;
            border: 1px solid var(--nt-border);
        }
        
        .nt-mini-stat-label {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 850;
            color: var(--nt-neutral);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        
        .nt-mini-stat-value {
            margin-top: 5px;
            font-size: 14px;
            line-height: 1.3;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-model-note {
            margin-top: 14px;
            padding: 12px;
            border-radius: 14px;
            background: rgba(15, 23, 42, 0.035);
            border: 1px solid var(--nt-border);
            font-size: 12px;
            line-height: 1.5;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        @media (max-width: 900px) {
            .nt-model-preview-layout {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Model sidebar status badges
        ================================ */
        
        .nt-model-tab-top {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        
        .nt-model-status-badge {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 3px 7px;
            border-radius: 999px;
            border: 1px solid transparent;
            font-size: 10px;
            line-height: 1.1;
            font-weight: 900;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }
        
        .nt-model-status-badge.badge-live {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.10);
            border-color: rgba(22, 163, 74, 0.20);
        }
        
        .nt-model-status-badge.badge-preview {
            color: var(--nt-blue);
            background: rgba(37, 99, 235, 0.10);
            border-color: rgba(37, 99, 235, 0.20);
        }
        
        .nt-model-status-badge.badge-dev {
            color: #D97706;
            background: rgba(217, 119, 6, 0.10);
            border-color: rgba(217, 119, 6, 0.22);
        }
        
        /* When tab is active, keep badge visible on dark background */
        .nt-model-tab.active .nt-model-status-badge {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(255, 255, 255, 0.24);
        }

        /* Active pointer for main model menu */
        @media (min-width: 981px) {
            .nt-model-tab {
                position: relative;
            }
        
            .nt-model-tab.active::after {
                content: "";
                position: absolute;
                right: -24px;
                top: 50%;
                transform: translateY(-50%);
                width: 0;
                height: 0;
                border-top: 11px solid transparent;
                border-bottom: 11px solid transparent;
                border-left: 12px solid var(--nt-dark);
                z-index: 5;
            }
        }

        /* ===============================
           Live Portfolio Simulation preview
        ================================ */
        
        .nt-live-sim-section {
            margin-top: 20px;
            border-radius: 18px;
            border: 1px solid var(--nt-border);
            background:
                radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 34%),
                #ffffff;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
            padding: 20px;
        }
        
        .nt-live-sim-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }
        
        .nt-live-sim-title-wrap {
            min-width: 0;
        }
        
        .nt-live-sim-title {
            margin: 0;
            font-size: 18px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-subtitle {
            margin: 5px 0 0 0;
            font-size: 12px;
            line-height: 1.5;
            font-weight: 600;
            color: var(--nt-neutral);
            max-width: 760px;
        }
        
        .nt-live-sim-badge {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(22, 163, 74, 0.10);
            border: 1px solid rgba(22, 163, 74, 0.20);
            color: var(--nt-positive);
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
        }
        
        .nt-live-sim-dot {
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: var(--nt-positive);
        }
        
        .nt-live-sim-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
            gap: 16px;
            align-items: stretch;
        }
        
        .nt-live-sim-card {
            border: 1px solid var(--nt-border);
            border-radius: 16px;
            background: #F8FAFC;
            padding: 16px;
            min-width: 0;
        }
        
        .nt-live-sim-card-title {
            margin: 0 0 12px 0;
            font-size: 15px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        
        .nt-live-sim-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .nt-live-sim-field label {
            font-size: 11px;
            font-weight: 850;
            color: var(--nt-dark);
            text-transform: uppercase;
            letter-spacing: 0.035em;
        }
        
        .nt-live-sim-field input,
        .nt-live-sim-field select {
            width: 100%;
            border: 1px solid var(--nt-border);
            border-radius: 12px;
            background: #ffffff;
            color: var(--nt-dark);
            font-size: 13px;
            font-weight: 700;
            padding: 10px 11px;
            outline: none;
            box-sizing: border-box;
        }
        
        .nt-live-sim-field input:disabled,
        .nt-live-sim-field select:disabled {
            opacity: 0.78;
            cursor: not-allowed;
        }
        
        .nt-live-sim-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 14px;
        }
        
        .nt-live-sim-btn {
            border: none;
            border-radius: 999px;
            background: var(--nt-dark);
            color: #ffffff;
            font-size: 13px;
            font-weight: 900;
            padding: 10px 15px;
            cursor: not-allowed;
            opacity: 0.78;
        }
        
        .nt-live-sim-small-note {
            font-size: 12px;
            line-height: 1.45;
            color: var(--nt-neutral);
            font-weight: 600;
        }
          
        @media (max-width: 900px) {
            .nt-live-sim-layout {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 640px) {
            .nt-live-sim-header {
                flex-direction: column;
            }
        
            .nt-live-sim-form-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Live simulation active UI
        ================================ */
        
        .nt-live-sim-btn-active {
            cursor: pointer;
            opacity: 1;
        }
        
        .nt-live-sim-btn-active:hover {
            background: #020617;
            transform: translateY(-1px);
        }
        
        .nt-live-sim-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 14px;
            max-height: 360px;
            overflow-y: auto;
        }
        
        .nt-live-sim-item {
            width: 100%;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            background: #ffffff;
            padding: 12px;
            text-align: left;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-live-sim-item:hover {
            border-color: rgba(37, 99, 235, 0.28);
            background: #EFF6FF;
        }
        
        .nt-live-sim-item.active {
            border-color: rgba(37, 99, 235, 0.45);
            background: rgba(37, 99, 235, 0.07);
        }
        
        .nt-live-sim-item-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
        }
        
        .nt-live-sim-item-name {
            font-size: 13px;
            line-height: 1.3;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-item-meta {
            margin-top: 4px;
            font-size: 12px;
            line-height: 1.45;
            color: var(--nt-neutral);
            font-weight: 650;
        }
        
        .nt-live-sim-item-value {
            margin-top: 7px;
            font-size: 12px;
            font-weight: 850;
        }
        
        .nt-live-sim-delete {
            border: none;
            background: rgba(220, 38, 38, 0.08);
            color: var(--nt-negative);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 850;
            padding: 5px 8px;
            cursor: pointer;
        }
        
        .nt-live-sim-delete:hover {
            background: rgba(220, 38, 38, 0.14);
        }
        
        .nt-live-sim-dashboard {
            margin-top: 18px;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            background: #ffffff;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
            padding: 18px;
        }
        
        .nt-live-sim-dashboard-header {
            margin-bottom: 14px;
        }
        
        .nt-live-sim-dashboard-title {
            margin: 0;
            font-size: 18px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-dashboard-subtitle {
            margin: 5px 0 0 0;
            font-size: 12px;
            line-height: 1.5;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-metric-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .nt-live-sim-metric-card {
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            background: #F8FAFC;
            padding: 14px;
            min-width: 0;
        }
        
        .nt-live-sim-metric-label {
            font-size: 11px;
            font-weight: 850;
            color: var(--nt-neutral);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 6px;
        }
        
        .nt-live-sim-metric-value {
            font-size: 22px;
            line-height: 1.1;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-metric-sub {
            margin-top: 6px;
            font-size: 12px;
            line-height: 1.4;
            font-weight: 650;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-chart-card,
        .nt-live-sim-trades-card {
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            background: #ffffff;
            padding: 14px;
            margin-top: 14px;
        }
        
        .nt-live-sim-chart-title {
            font-size: 14px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
            margin-bottom: 10px;
        }
        
        .nt-live-sim-chart-shell {
            height: 380px;
            width: 100%;
            position: relative;
        }
        
        .nt-live-sim-trades-table {
            max-height: 260px;
            overflow-y: auto;
        }
        
        .nt-live-trade-row {
            display: grid;
            grid-template-columns: 100px 80px repeat(4, minmax(0, 1fr));
            gap: 8px;
            align-items: center;
            padding: 9px 0;
            border-bottom: 1px solid var(--nt-border);
            font-size: 12px;
            font-weight: 650;
            color: var(--nt-dark);
        }
        
        .nt-live-trade-row.header {
            color: var(--nt-neutral);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.035em;
            font-weight: 850;
        }
        
        .nt-live-trade-buy {
            color: var(--nt-positive);
            font-weight: 900;
        }
        
        .nt-live-trade-sell {
            color: var(--nt-negative);
            font-weight: 900;
        }
        
        @media (max-width: 1000px) {
            .nt-live-sim-metric-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        
            .nt-live-trade-row {
                grid-template-columns: 90px 70px repeat(2, minmax(0, 1fr));
                overflow-x: auto;
            }
        }
        
        @media (max-width: 600px) {
            .nt-live-sim-metric-grid {
                grid-template-columns: 1fr;
            }
        
            .nt-live-sim-chart-shell {
                height: 300px;
            }
        }

        /* ===============================
           Live simulation refresh button
        ================================ */
        
        .nt-live-sim-list-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        
        .nt-live-sim-refresh-btn {
            border: 1px solid rgba(37, 99, 235, 0.22);
            background: #ffffff;
            color: var(--nt-blue);
            border-radius: 999px;
            padding: 8px 12px;
            font-size: 12px;
            line-height: 1;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        
        .nt-live-sim-refresh-btn:hover {
            background: var(--nt-blue);
            color: #ffffff;
        }
        
        .nt-live-sim-refresh-btn:disabled {
            cursor: not-allowed;
            opacity: 0.55;
            transform: none;
        }

        /* ===============================
           Live simulation latest signal badge
        ================================ */
        
        .nt-live-sim-signal-row {
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
            margin-top: 7px;
        }
        
        .nt-live-sim-signal-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 999px;
            padding: 5px 9px;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.035em;
        }
        
        .nt-live-sim-signal-badge::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: currentColor;
        }
        
        .nt-live-sim-signal-badge.buy {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.10);
        }
        
        .nt-live-sim-signal-badge.sell {
            color: var(--nt-negative);
            background: rgba(220, 38, 38, 0.10);
        }
        
        .nt-live-sim-signal-badge.hold {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.12);
        }
        
        .nt-live-sim-signal-badge.unknown {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.08);
        }
        
        .nt-live-sim-signal-price {
            font-size: 11px;
            line-height: 1.35;
            font-weight: 750;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-detail-signal-wrap {
            margin-top: 8px;
        }

        /* ===============================
           Live simulation created highlight
        ================================ */
        
        .nt-live-sim-board-row.just-created {
            border-color: rgba(22, 163, 74, 0.65);
            background: rgba(22, 163, 74, 0.08);
            box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
            animation: ntLiveSimCreatedPulse 1.8s ease-out;
        }
        
        @keyframes ntLiveSimCreatedPulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.28);
            }
        
            40% {
                transform: scale(1.015);
                box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.13);
            }
        
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
            }
        }

        /* ===============================
           Live simulation logged-out state
        ================================ */
        
        .nt-live-sim-auth-empty {
            border: 1px dashed rgba(37, 99, 235, 0.35);
            background: rgba(37, 99, 235, 0.045);
            border-radius: 16px;
            padding: 18px;
            margin-top: 14px;
        }
        
        .nt-live-sim-auth-kicker {
            font-size: 11px;
            font-weight: 900;
            color: var(--nt-blue);
            text-transform: uppercase;
            letter-spacing: 0.055em;
            margin-bottom: 6px;
        }
        
        .nt-live-sim-auth-title {
            font-size: 16px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
            margin-bottom: 7px;
        }
        
        .nt-live-sim-auth-text {
            font-size: 13px;
            line-height: 1.55;
            font-weight: 600;
            color: var(--nt-neutral);
            margin-bottom: 12px;
        }
        
        .nt-live-sim-auth-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .nt-live-sim-auth-btn {
            border: none;
            border-radius: 999px;
            background: var(--nt-dark);
            color: #ffffff;
            padding: 9px 13px;
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-live-sim-auth-btn:hover {
            background: var(--nt-blue);
            transform: translateY(-1px);
        }
        
        .nt-live-sim-auth-note {
            font-size: 11px;
            line-height: 1.4;
            font-weight: 700;
            color: var(--nt-neutral);
        }

        /* ===============================
           Live simulation layout rebalance
           Create form narrower, simulations wider
        ================================ */
        
        .nt-live-sim-layout {
            grid-template-columns: minmax(240px, 320px) minmax(600px, 1fr);
            align-items: stretch;
        }
        
        .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
            grid-template-columns: 1fr;
        }
        
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) {
            min-width: 0;
        }
        
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) .nt-live-sim-list {
            max-height: 420px;
        }
        
        @media (max-width: 1050px) {
            .nt-live-sim-layout {
                grid-template-columns: minmax(320px, 430px) minmax(360px, 1fr);
            }
        }
        
        @media (max-width: 850px) {
            .nt-live-sim-layout {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Equal height live simulation cards
        ================================ */
        
        .nt-live-sim-layout {
            align-items: stretch;
        }
        
        /* Make both top cards stretch to the same row height */
        .nt-live-sim-layout > .nt-live-sim-card {
            height: 100%;
        }
        
        /* Keep each card content organized vertically */
        .nt-live-sim-layout > .nt-live-sim-card:first-child,
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) {
            display: flex;
            flex-direction: column;
        }
        
        /* Let the simulations list use available height cleanly */
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) .nt-live-sim-list {
            flex: 1;
        }

        /* ===============================
           Live simulation assumptions
        ================================ */
        
        .nt-live-sim-assumptions {
            margin-top: 14px;
            border: 1px solid var(--nt-border);
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.045);
            overflow: hidden;
        }
        
        .nt-live-sim-assumptions summary {
            list-style: none;
            cursor: pointer;
            padding: 13px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 13px;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-assumptions summary::-webkit-details-marker {
            display: none;
        }
        
        .nt-live-sim-assumptions summary span::before {
            content: "▸";
            display: inline-block;
            margin-right: 7px;
            color: var(--nt-blue);
            transition: transform 0.15s ease;
        }
        
        .nt-live-sim-assumptions[open] summary span::before {
            transform: rotate(90deg);
        }
        
        .nt-live-sim-assumptions summary strong {
            font-size: 12px;
            font-weight: 900;
            color: var(--nt-blue);
            background: rgba(37, 99, 235, 0.08);
            border-radius: 999px;
            padding: 6px 9px;
            white-space: nowrap;
        }
        
        .nt-live-sim-assumption-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            padding: 0 15px 14px 15px;
        }
        
        .nt-live-sim-assumption-item {
            border: 1px solid var(--nt-border);
            border-radius: 13px;
            background: #F8FAFC;
            padding: 11px;
        }
        
        .nt-live-sim-assumption-label {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 900;
            color: var(--nt-dark);
            margin-bottom: 6px;
        }
        
        .nt-live-sim-assumption-text {
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-assumption-warning {
            margin: 0 15px 15px 15px;
            padding: 10px 11px;
            border-radius: 12px;
            background: rgba(245, 158, 11, 0.09);
            color: #92400E;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 750;
        }
        
        @media (max-width: 1000px) {
            .nt-live-sim-assumption-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 600px) {
            .nt-live-sim-assumptions summary {
                align-items: flex-start;
                flex-direction: column;
            }
        
            .nt-live-sim-assumption-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Live simulation asset selector
        ================================ */
        
        .nt-live-sim-asset-picker {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .nt-live-sim-ticker-select {
            width: 100%;
            border: 1px solid var(--nt-border);
            border-radius: 12px;
            background: #ffffff;
            color: var(--nt-dark);
            font-size: 13px;
            font-weight: 750;
            outline: none;
            box-sizing: border-box;
        }
        
        .nt-live-sim-ticker-select {
            padding: 10px 11px;
            cursor: pointer;
        }
        
        .nt-live-sim-field-note {
            margin-top: 6px;
            font-size: 11px;
            line-height: 1.4;
            font-weight: 650;
            color: var(--nt-neutral);
        }

        /* ===============================
           Live simulation status controls
        ================================ */
        
        .nt-live-sim-header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        
        .nt-live-sim-status-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 4px 8px;
            font-size: 10px;
            line-height: 1.2;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.035em;
        }
        
        .nt-live-sim-status-badge.active {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.10);
        }
        
        .nt-live-sim-status-badge.paused {
            color: #92400E;
            background: rgba(245, 158, 11, 0.13);
        }
        
        .nt-live-sim-status-badge.archived {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.12);
        }

        /* ===============================
           Live simulation filter chips
        ================================ */
        
        .nt-live-sim-filter-chips {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: wrap;
        }
        
        .nt-live-sim-filter-chip {
            border: 1px solid rgba(100, 116, 139, 0.20);
            background: #ffffff;
            color: var(--nt-neutral);
            border-radius: 999px;
            padding: 7px 10px;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-live-sim-filter-chip:hover {
            border-color: rgba(37, 99, 235, 0.28);
            color: var(--nt-blue);
            background: rgba(37, 99, 235, 0.06);
        }
        
        .nt-live-sim-filter-chip.selected {
            border-color: rgba(37, 99, 235, 0.40);
            background: var(--nt-blue);
            color: #ffffff;
        }
        
        @media (max-width: 760px) {
            .nt-live-sim-header-actions {
                justify-content: flex-start;
            }
        
            .nt-live-sim-filter-chips {
                justify-content: flex-start;
            }
        }

        /* ===============================
           Live simulation filter counts
        ================================ */
        
        .nt-live-sim-filter-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .nt-live-sim-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 6px;
            border-radius: 999px;
            background: rgba(100, 116, 139, 0.12);
            color: inherit;
            font-size: 10px;
            line-height: 1;
            font-weight: 900;
        }
        
        .nt-live-sim-filter-chip.selected .nt-live-sim-filter-count {
            background: rgba(255, 255, 255, 0.22);
            color: #ffffff;
        }

        /* ===============================
           Compact live simulation top area
        ================================ */
        
        .nt-live-sim-layout > .nt-live-sim-card {
            padding: 14px;
        }
        
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) .nt-live-sim-list {
            max-height: 240px;
            flex: 0 1 auto;
        }
        
        .nt-live-sim-form-grid {
            gap: 10px;
        }
        
        .nt-live-sim-field input,
        .nt-live-sim-field select {
            padding-top: 9px;
            padding-bottom: 9px;
        }

        /* ===============================
           Compact live simulation filters
        ================================ */
        
        .nt-live-sim-header-actions {
            gap: 6px;
        }
        
        .nt-live-sim-filter-chips {
            gap: 5px;
        }
        
        .nt-live-sim-filter-chip {
            padding: 6px 8px;
            font-size: 10.5px;
        }
        
        .nt-live-sim-refresh-btn {
            padding: 7px 10px;
            font-size: 11px;
        }

        /* ===============================
           Selected simulation dashboard polish
        ================================ */
        
        .nt-live-sim-dashboard {
            padding: 16px;
        }
        
        .nt-live-sim-dashboard-header {
            margin-bottom: 12px;
        }
        
        .nt-live-sim-metric-grid-compact {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .nt-live-sim-metric-card {
            padding: 12px;
        }
        
        .nt-live-sim-metric-value {
            font-size: 20px;
        }
        
        .nt-live-sim-analysis-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
            gap: 12px;
            align-items: stretch;
        }
        
        .nt-live-sim-chart-card-main,
        .nt-live-sim-trades-card-side {
            margin-top: 0;
        }
        
        .nt-live-sim-chart-subtitle {
            margin-top: -4px;
            margin-bottom: 10px;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 650;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-chart-shell-compact {
            height: 320px;
        }
        
        .nt-live-sim-trades-card-side {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        
        .nt-live-sim-trades-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .nt-live-sim-trade-count-pill {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.08);
            color: var(--nt-blue);
            padding: 6px 9px;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            white-space: nowrap;
        }
        
        .nt-live-sim-trades-card-side .nt-live-sim-trades-table {
            flex: 1;
            max-height: 320px;
            overflow-y: auto;
        }
        
        .nt-live-sim-trades-card-side .nt-live-trade-row {
            grid-template-columns: 86px 62px repeat(2, minmax(0, 1fr));
        }
        
        .nt-live-sim-trades-card-side .nt-live-trade-row > div:nth-child(5),
        .nt-live-sim-trades-card-side .nt-live-trade-row > div:nth-child(6) {
            display: none;
        }
        
        @media (max-width: 1100px) {
            .nt-live-sim-analysis-grid {
                grid-template-columns: 1fr;
            }
        
            .nt-live-sim-trades-card-side .nt-live-trade-row {
                grid-template-columns: 100px 80px repeat(4, minmax(0, 1fr));
            }
        
            .nt-live-sim-trades-card-side .nt-live-trade-row > div:nth-child(5),
            .nt-live-sim-trades-card-side .nt-live-trade-row > div:nth-child(6) {
                display: block;
            }
        }
        
        @media (max-width: 900px) {
            .nt-live-sim-metric-grid-compact {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        
            .nt-live-sim-chart-shell-compact {
                height: 300px;
            }
        }
        
        @media (max-width: 560px) {
            .nt-live-sim-metric-grid-compact {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Selected simulation: full-width chart + trades below
        ================================ */
        
        /* Put Equity Curve and Recent Trades back into one column */
        .nt-live-sim-analysis-grid {
            grid-template-columns: 1fr;
        }
        
        /* Let the chart take the full dashboard width */
        .nt-live-sim-chart-card-main {
            width: 100%;
        }
        
        /* Make the chart feel like the main visual again */
        .nt-live-sim-chart-shell-compact {
            height: 380px;
        }
        
        /* Put Recent Trades below the chart, full width */
        .nt-live-sim-trades-card-side {
            width: 100%;
        }
        
        /* Restore full trade table columns */
        .nt-live-sim-trades-card-side .nt-live-trade-row {
            grid-template-columns: 100px 80px repeat(4, minmax(0, 1fr));
        }
        
        /* Show all columns again: Cost and Cash After */
        .nt-live-sim-trades-card-side .nt-live-trade-row > div:nth-child(5),
        .nt-live-sim-trades-card-side .nt-live-trade-row > div:nth-child(6) {
            display: block;
        }
        
        /* Keep recent trades compact but readable */
        .nt-live-sim-trades-card-side .nt-live-sim-trades-table {
            max-height: 260px;
            overflow-y: auto;
        }

        /* ===============================
           Selected simulation action toolbar
        ================================ */
        
        .nt-live-sim-selected-actions {
            margin: 10px 0 10px 0;
            padding: 10px;
            border: 1px solid var(--nt-border);
            border-radius: 13px;
            background: #F8FAFC;
        }
        
        .nt-live-sim-selected-actions-empty {
            font-size: 12px;
            line-height: 1.45;
            font-weight: 700;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-selected-actions-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .nt-live-sim-selected-actions-info {
            min-width: 0;
        }
        
        .nt-live-sim-selected-actions-label {
            font-size: 10px;
            line-height: 1.2;
            font-weight: 900;
            color: var(--nt-neutral);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 3px;
        }
        
        .nt-live-sim-selected-actions-name {
            font-size: 12px;
            line-height: 1.35;
            font-weight: 900;
            color: var(--nt-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 360px;
        }
        
        .nt-live-sim-selected-actions-buttons {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        
        .nt-live-sim-selected-action-btn {
            border: none;
            border-radius: 999px;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            padding: 7px 9px;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        
        .nt-live-sim-selected-action-btn.rename {
            background: rgba(37, 99, 235, 0.08);
            color: var(--nt-blue);
        }
        
        .nt-live-sim-selected-action-btn.pause {
            background: rgba(245, 158, 11, 0.12);
            color: #92400E;
        }
        
        .nt-live-sim-selected-action-btn.archive {
            background: rgba(100, 116, 139, 0.12);
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-selected-action-btn.restore {
            background: rgba(22, 163, 74, 0.10);
            color: var(--nt-positive);
        }
        
        .nt-live-sim-selected-action-btn.delete {
            background: rgba(220, 38, 38, 0.09);
            color: var(--nt-negative);
        }
        
        .nt-live-sim-selected-action-btn:hover {
            transform: translateY(-1px);
            filter: brightness(0.98);
        }

        /* ===============================
           Compact live simulation cards
        ================================ */
        
        .nt-live-sim-item-top-compact {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: start;
        }
        
        .nt-live-sim-card-left {
            min-width: 0;
        }
        
        .nt-live-sim-card-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            text-align: right;
            min-width: 145px;
        }
        
        .nt-live-sim-created-date {
            font-size: 11px;
            line-height: 1.35;
            font-weight: 750;
            color: var(--nt-neutral);
            white-space: nowrap;
        }
        
        .nt-live-sim-item .nt-live-sim-alpha-pill {
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* Optional: slightly tighter card padding */
        .nt-live-sim-item {
            padding: 11px;
        }
        
        @media (max-width: 620px) {
            .nt-live-sim-item-top-compact {
                grid-template-columns: 1fr;
            }
        
            .nt-live-sim-card-right {
                align-items: flex-start;
                text-align: left;
                min-width: 0;
            }
        }

        /* ===============================
           Compact selected simulation dashboard
        ================================ */
        
        .nt-live-sim-dashboard {
            margin-top: 12px;
            padding: 14px;
        }
        
        .nt-live-sim-dashboard-header-compact {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
            gap: 14px;
            align-items: start;
            margin-bottom: 10px;
        }
        
        .nt-live-sim-dashboard-title-area {
            min-width: 0;
        }
        
        .nt-live-sim-header-metrics {
            display: grid;
            grid-template-columns: repeat(2, minmax(150px, 1fr));
            gap: 8px;
            align-items: stretch;
        }
        
        .nt-live-sim-mini-metric {
            padding: 9px 10px;
            min-width: 0;
        }
        
        .nt-live-sim-mini-metric .nt-live-sim-metric-label {
            font-size: 10px;
            margin-bottom: 4px;
        }
        
        .nt-live-sim-mini-metric .nt-live-sim-metric-value {
            font-size: 16px;
            line-height: 1.1;
        }
        
        .nt-live-sim-mini-metric .nt-live-sim-metric-sub {
            font-size: 11px;
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* Bring the chart closer to the top */
        .nt-live-sim-analysis-grid {
            margin-top: 0;
            grid-template-columns: 1fr;
        }
        
        .nt-live-sim-chart-card,
        .nt-live-sim-trades-card {
            margin-top: 10px;
        }
        
        .nt-live-sim-chart-card-main {
            margin-top: 0;
        }
        
        /* Slightly shorter chart so list + curve have a better chance to fit on screen */
        .nt-live-sim-chart-shell-compact {
            height: 340px;
        }
        
        @media (max-width: 1050px) {
            .nt-live-sim-dashboard-header-compact {
                grid-template-columns: 1fr;
            }
        
            .nt-live-sim-header-metrics {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 760px) {
            .nt-live-sim-header-metrics {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 520px) {
            .nt-live-sim-header-metrics {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Assumptions inside selected simulation header
        ================================ */
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumptions {
            margin-top: 10px;
            box-shadow: none;
            background: #F8FAFC;
            border-radius: 14px;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumptions summary {
            padding: 10px 12px;
            font-size: 12px;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumptions summary strong {
            font-size: 11px;
            padding: 5px 8px;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumption-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            padding: 0 12px 12px 12px;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumption-item {
            padding: 9px;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumption-label {
            font-size: 10px;
            margin-bottom: 5px;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumption-text {
            font-size: 11px;
            line-height: 1.4;
        }
        
        .nt-live-sim-dashboard-title-area .nt-live-sim-assumption-warning {
            margin: 0 12px 12px 12px;
            padding: 8px 9px;
            font-size: 11px;
        }

        /* ===============================
           Stack live simulation panels vertically
           Create Simulation on top, My Simulations below
        ================================ */
        
        .nt-live-sim-layout {
            grid-template-columns: 1fr !important;
            align-items: start;
        }
        
        /* Remove equal-height behavior from the previous side-by-side layout */
        .nt-live-sim-layout > .nt-live-sim-card {
            height: auto;
        }
        
        /* Make the create form compact now that it has full width */
        .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
            grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
            align-items: end;
        }
        
        /* Make My Simulations use the full width below */
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) {
            width: 100%;
        }
        
        /* Keep the simulation list from becoming too tall */
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) .nt-live-sim-list {
            max-height: 300px;
            flex: 0 1 auto;
        }
        
        /* Let filter chips fit more naturally in one line */
        .nt-live-sim-header-actions {
            width: 100%;
            justify-content: space-between;
        }
        
        /* Mobile/tablet: stack create form fields */
        @media (max-width: 900px) {
            .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 560px) {
            .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Create simulation: clean one-line form
        ================================ */
        
        /* Make create card height natural */
        .nt-live-sim-layout > .nt-live-sim-card:first-child {
            height: auto;
        }
        
        /* Force the 4 create fields into one clean row on desktop */
        .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
            display: grid;
            grid-template-columns: minmax(240px, 1.2fr) minmax(170px, 1fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr) !important;
            gap: 12px;
            align-items: start;
        }
        
        /* Make fields compact and prevent weird overflow */
        .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-field {
            min-width: 0;
        }
        
        .nt-live-sim-layout > .nt-live-sim-card:first-child input,
        .nt-live-sim-layout > .nt-live-sim-card:first-child select {
            min-height: 40px;
        }
        
        /* Keep helper text compact under ticker */
        .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-field-note {
            margin-top: 4px;
            font-size: 10.5px;
            line-height: 1.25;
        }
        
        /* Keep create button/message compact */
        .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-actions {
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        /* Tablet: 2 rows only when screen is not wide enough */
        @media (max-width: 760px) {
            .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }
        }
        
        /* Mobile: 1 column */
        @media (max-width: 520px) {
            .nt-live-sim-layout > .nt-live-sim-card:first-child .nt-live-sim-form-grid {
                grid-template-columns: 1fr !important;
            }
        }

        @media (max-width: 1400px) {
            .nt-market-hero-chart-header {
                grid-template-columns: 1fr auto;
            }
        
            .nt-market-hero-performance-title {
                max-width: 64%;
                padding-left: 120px;
                padding-right: 120px;
                font-size: 12px;
            }
        
            .nt-market-hero-asset-btn,
            .nt-market-hero-more-assets {
                padding-left: 9px;
                padding-right: 9px;
            }
        }
        
        @media (max-width: 1150px) {
            .nt-market-hero-chart-header {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "assets"
                    "periods"
                    "title"
                    "secondary";
                gap: 9px;
            }
        
            .nt-market-hero-assets {
                grid-area: assets;
                width: 100%;
                justify-content: center;
            }
        
            .nt-market-hero-periods {
                grid-area: periods;
                justify-self: center;
            }
        
            .nt-market-hero-performance-title {
                grid-area: title;
                max-width: 100%;
                padding: 0;
                white-space: normal;
            }
        
            .nt-market-hero-more-assets {
                grid-area: secondary;
                justify-self: start;
            }
        
            .nt-market-hero-scale-toggle {
                grid-area: secondary;
                justify-self: end;
            }
        }
        
        @media (max-width: 700px) {
            .nt-market-hero-assets {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                width: 100%;
            }
        
            .nt-market-hero-asset-btn {
                width: 100%;
            }
        
            .nt-market-hero-periods {
                width: 100%;
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                border-radius: 14px;
            }
        
            .nt-market-hero-period {
                width: 100%;
            }
        
            .nt-market-hero-performance-title {
                font-size: 12px;
                line-height: 1.45;
                text-align: center;
            }
        
            .nt-market-hero-more-assets,
            .nt-market-hero-scale-toggle {
                width: auto;
            }
        }
        
        @media (max-width: 450px) {
            .nt-market-hero-chart-header {
                grid-template-areas:
                    "assets"
                    "periods"
                    "title"
                    "more"
                    "scale";
            }
        
            .nt-market-hero-more-assets {
                grid-area: more;
                justify-self: stretch;
                width: 100%;
            }
        
            .nt-market-hero-scale-toggle {
                grid-area: scale;
                justify-self: stretch;
                width: 100%;
            }
        }

        /* ===============================
           My simulations board/table layout
        ================================ */
        
        .nt-live-sim-list {
            display: block;
            gap: 0;
            max-height: none;
            overflow: visible;
        }
        
        .nt-live-sim-board-tools {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin: 10px 0 8px 0;
        }
        
        .nt-live-sim-board-filter {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .nt-live-sim-board-filter label {
            font-size: 10px;
            line-height: 1;
            font-weight: 900;
            color: var(--nt-neutral);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        
        .nt-live-sim-board-filter select {
            border: 1px solid var(--nt-border);
            border-radius: 10px;
            padding: 7px 9px;
            font-size: 12px;
            font-weight: 800;
            background: #FFFFFF;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-board-result-count {
            margin-left: auto;
            font-size: 11px;
            line-height: 1.3;
            font-weight: 800;
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-board-scroll {
            width: 100%;
            max-height: 330px;
            overflow: auto;
            border: 1px solid var(--nt-border);
            border-radius: 16px;
            background: #FFFFFF;
        }
        
        .nt-live-sim-board-table {
            width: 100%;
            min-width: 1180px;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 11.5px;
        }
        
        .nt-live-sim-board-table thead th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #F8FAFC;
            color: var(--nt-neutral);
            font-size: 10px;
            line-height: 1.15;
            font-weight: 950;
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 0.035em;
            padding: 9px 8px;
            border-bottom: 1px solid var(--nt-border);
            white-space: nowrap;
        }
        
        .nt-live-sim-board-table thead th.numeric {
            text-align: right;
        }
        
        .nt-live-sim-board-table thead button {
            border: none;
            background: transparent;
            color: inherit;
            font: inherit;
            padding: 0;
            cursor: pointer;
            text-transform: inherit;
            letter-spacing: inherit;
            white-space: nowrap;
        }
        
        .nt-live-sim-board-table tbody td {
            padding: 9px 8px;
            border-bottom: 1px solid rgba(226, 232, 240, 0.8);
            vertical-align: middle;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-board-table tbody tr {
            cursor: pointer;
            transition: background 0.15s ease;
        }
        
        .nt-live-sim-board-table tbody tr:hover {
            background: rgba(37, 99, 235, 0.04);
        }
        
        .nt-live-sim-board-table tbody tr.active {
            background: rgba(37, 99, 235, 0.08);
            box-shadow: inset 3px 0 0 var(--nt-blue);
        }
        
        .nt-live-sim-board-table td.numeric {
            text-align: right;
        }
        
        .nt-live-sim-board-main-value {
            font-size: 11.5px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
            white-space: nowrap;
        }
        
        .nt-live-sim-board-sub-value {
            margin-top: 2px;
            font-size: 10.5px;
            line-height: 1.25;
            font-weight: 800;
            white-space: nowrap;
        }
        
        .nt-live-sim-board-sub-value.positive,
        .nt-live-sim-board-main-value.positive {
            color: var(--nt-positive);
        }
        
        .nt-live-sim-board-sub-value.negative,
        .nt-live-sim-board-main-value.negative {
            color: var(--nt-negative);
        }
        
        .nt-live-sim-board-sub-value.neutral,
        .nt-live-sim-board-main-value.neutral {
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-board-name {
            max-width: 160px;
            font-size: 11.5px;
            line-height: 1.25;
            font-weight: 950;
            color: var(--nt-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .nt-live-sim-board-status {
            margin-top: 2px;
            font-size: 10px;
            line-height: 1.2;
            font-weight: 800;
            color: var(--nt-neutral);
            text-transform: capitalize;
        }
        
        .nt-live-sim-board-ticker {
            font-size: 11.5px;
            line-height: 1.25;
            font-weight: 950;
            color: var(--nt-blue);
            white-space: nowrap;
        }
        
        .nt-live-sim-board-signal {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 52px;
            border-radius: 999px;
            padding: 5px 8px;
            font-size: 10.5px;
            line-height: 1;
            font-weight: 950;
            white-space: nowrap;
        }
        
        .nt-live-sim-board-signal.buy {
            background: rgba(22, 163, 74, 0.10);
            color: var(--nt-positive);
        }
        
        .nt-live-sim-board-signal.sell {
            background: rgba(220, 38, 38, 0.09);
            color: var(--nt-negative);
        }
        
        .nt-live-sim-board-signal.hold {
            background: rgba(100, 116, 139, 0.11);
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-board-empty {
            padding: 18px;
            text-align: center;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 800;
            color: var(--nt-neutral);
        }
        
        @media (max-width: 900px) {
            .nt-live-sim-board-scroll {
                max-height: 360px;
            }
        
            .nt-live-sim-board-table {
                min-width: 1120px;
            }
        }

        /* ===============================
           Fix My Simulations board height / overlap
        ================================ */
        
        /* Remove old card-list height limits that can clip the new table */
        .nt-live-sim-layout > .nt-live-sim-card:nth-child(2) .nt-live-sim-list,
        .nt-live-sim-list {
            max-height: none !important;
            overflow: visible !important;
        }
        
        /* Give the table its own internal scroll area */
        .nt-live-sim-board-scroll {
            max-height: 380px !important;
            overflow: auto !important;
            margin-bottom: 14px;
        }
        
        /* Push selected simulation/equity curve safely below the board */
        .nt-live-sim-dashboard {
            margin-top: 22px !important;
            clear: both;
            position: relative;
            z-index: 1;
        }

        /* ===============================
           My simulations board: remove horizontal scroll after Close column removal
        ================================ */
        
        .nt-live-sim-board-scroll {
            overflow-x: hidden !important;
        }
        
        .nt-live-sim-board-table {
            min-width: 0 !important;
            width: 100% !important;
            table-layout: fixed;
        }
        
        /* Column widths after removing Close column:
           1 Date, 2 Name, 3 Ticker, 4 Signal, 5 Position,
           6 Cash/Position, 7 Strategy, 8 B&H, 9 Vs B&H */
        .nt-live-sim-board-table th:nth-child(1),
        .nt-live-sim-board-table td:nth-child(1) {
            width: 10%;
        }
        
        .nt-live-sim-board-table th:nth-child(2),
        .nt-live-sim-board-table td:nth-child(2) {
            width: 18%;
        }
        
        .nt-live-sim-board-table th:nth-child(3),
        .nt-live-sim-board-table td:nth-child(3) {
            width: 9%;
        }
        
        .nt-live-sim-board-table th:nth-child(4),
        .nt-live-sim-board-table td:nth-child(4) {
            width: 9%;
        }
        
        .nt-live-sim-board-table th:nth-child(5),
        .nt-live-sim-board-table td:nth-child(5) {
            width: 9%;
        }
        
        .nt-live-sim-board-table th:nth-child(6),
        .nt-live-sim-board-table td:nth-child(6) {
            width: 13%;
        }
        
        .nt-live-sim-board-table th:nth-child(7),
        .nt-live-sim-board-table td:nth-child(7) {
            width: 11%;
        }
        
        .nt-live-sim-board-table th:nth-child(8),
        .nt-live-sim-board-table td:nth-child(8) {
            width: 11%;
        }
        
        .nt-live-sim-board-table th:nth-child(9),
        .nt-live-sim-board-table td:nth-child(9) {
            width: 10%;
        }
        
        /* Prevent long text from forcing horizontal scroll */
        .nt-live-sim-board-table th,
        .nt-live-sim-board-table td {
            overflow: hidden;
        }
        
        .nt-live-sim-board-main-value,
        .nt-live-sim-board-sub-value,
        .nt-live-sim-board-name,
        .nt-live-sim-board-ticker {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ===============================
           My simulations board: header filters + improved widths
        ================================ */
        
        .nt-live-sim-board-tools-asset-only {
            align-items: end;
            justify-content: flex-end;
            margin-top: 8px;
            margin-bottom: 8px;
        }
        
        .nt-live-sim-board-tools-asset-only .nt-live-sim-board-filter {
            min-width: 130px;
        }
        
        .nt-live-sim-board-filter-row th {
            top: 31px;
            padding: 6px 6px 8px 6px !important;
            background: #F8FAFC !important;
            border-bottom: 1px solid var(--nt-border);
        }
        
        .nt-live-sim-board-filter-row select {
            width: 100%;
            max-width: 100%;
            border: 1px solid rgba(203, 213, 225, 0.95);
            border-radius: 9px;
            background: #FFFFFF;
            color: var(--nt-dark);
            font-size: 10px;
            line-height: 1;
            font-weight: 850;
            padding: 5px 6px;
            outline: none;
        }
        
        .nt-live-sim-board-filter-row select:focus,
        .nt-live-sim-board-filter select:focus {
            border-color: rgba(37, 99, 235, 0.55);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
        }
        
        /* Adjusted 9-column layout:
           Date, Simulation, Ticker, Signal, Position,
           Cash/Position, Strategy, B&H, Vs B&H */
        .nt-live-sim-board-table th:nth-child(1),
        .nt-live-sim-board-table td:nth-child(1) {
            width: 9%;
        }
        
        .nt-live-sim-board-table th:nth-child(2),
        .nt-live-sim-board-table td:nth-child(2) {
            width: 14%;
        }
        
        .nt-live-sim-board-table th:nth-child(3),
        .nt-live-sim-board-table td:nth-child(3) {
            width: 8%;
        }
        
        .nt-live-sim-board-table th:nth-child(4),
        .nt-live-sim-board-table td:nth-child(4) {
            width: 11%;
        }
        
        .nt-live-sim-board-table th:nth-child(5),
        .nt-live-sim-board-table td:nth-child(5) {
            width: 9%;
        }
        
        .nt-live-sim-board-table th:nth-child(6),
        .nt-live-sim-board-table td:nth-child(6) {
            width: 12%;
        }
        
        .nt-live-sim-board-table th:nth-child(7),
        .nt-live-sim-board-table td:nth-child(7) {
            width: 13%;
        }
        
        .nt-live-sim-board-table th:nth-child(8),
        .nt-live-sim-board-table td:nth-child(8) {
            width: 12%;
        }
        
        .nt-live-sim-board-table th:nth-child(9),
        .nt-live-sim-board-table td:nth-child(9) {
            width: 12%;
        }
        
        /* More compact headers to avoid last letters disappearing */
        .nt-live-sim-board-table thead th {
            font-size: 9.5px;
            padding-left: 6px;
            padding-right: 6px;
        }
        
        .nt-live-sim-board-table thead button {
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* Make simulation name shorter but show full name on hover through native title tooltip */
        .nt-live-sim-board-name {
            max-width: 120px;
            cursor: default;
        }
        
        .nt-live-sim-board-main-value {
            font-size: 11px;
        }
        
        .nt-live-sim-board-sub-value {
            font-size: 10px;
        }

        /* ===============================
           Simulation name custom hover tooltip
        ================================ */
        
        /* Allow tooltip to appear outside the simulation-name cell */
        .nt-live-sim-board-table th:nth-child(2),
        .nt-live-sim-board-table td:nth-child(2) {
            overflow: visible !important;
        }
        
        .nt-live-sim-name-tooltip-wrap {
            position: relative;
            display: inline-block;
            max-width: 100%;
        }
        
        .nt-live-sim-name-tooltip-wrap .nt-live-sim-board-name {
            cursor: default;
        }
        
        .nt-live-sim-name-tooltip {
            display: none;
            position: absolute;
            left: 0;
            top: calc(100% + 7px);
            z-index: 9999;
            min-width: 180px;
            max-width: 320px;
            padding: 8px 10px;
            border: 1px solid var(--nt-border);
            border-radius: 10px;
            background: #FFFFFF;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
            color: var(--nt-dark);
            font-size: 12px;
            line-height: 1.35;
            font-weight: 800;
            text-align: left;
            white-space: normal;
        }
        
        .nt-live-sim-name-tooltip-wrap:hover .nt-live-sim-name-tooltip {
            display: block;
        }

        /* ===============================
           My Simulations: Signal Overview-style layout
        ================================ */
        
        .nt-live-sim-list-header-signal-style {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 10px;
        }
        
        .nt-live-sim-list-title-area {
            min-width: 0;
        }
        
        .nt-live-sim-board-control-stack {
            margin-left: auto;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            min-width: 410px;
        }
        
        .nt-live-sim-board-top-buttons {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }
        
        .nt-live-sim-reset-view-btn,
        .nt-live-sim-refresh-btn {
            padding: 8px 13px;
            font-size: 12px;
            line-height: 1;
        }
        
        .nt-live-sim-board-control-stack .nt-live-sim-filter-chips {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        .nt-live-sim-board-control-stack .nt-live-sim-filter-chip {
            padding: 6px 8px;
            font-size: 10.5px;
        }
        
        .nt-live-sim-asset-control {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }
        
        .nt-live-sim-asset-control .nt-asset-pills {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .nt-live-sim-asset-control .asset-pill {
            padding: 6px 11px;
            font-size: 11.5px;
        }
        
        /* Mobile */
        @media (max-width: 900px) {
            .nt-live-sim-list-header-signal-style {
                flex-direction: column;
            }
        
            .nt-live-sim-board-control-stack {
                width: 100%;
                min-width: 0;
                align-items: flex-start;
                margin-left: 0;
            }
        
            .nt-live-sim-board-top-buttons,
            .nt-live-sim-board-control-stack .nt-live-sim-filter-chips,
            .nt-live-sim-asset-control {
                justify-content: flex-start;
            }
        }

        /* ===============================
           My Simulations board: closer to Signal Overview board
        ================================ */
        
        .nt-live-sim-board-scroll {
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            background: #FFFFFF;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            max-height: 280px !important;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
        }
        
        .nt-live-sim-board-table {
            width: 100% !important;
            min-width: 0 !important;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 13px;
            color: var(--nt-dark);
        }
        
        .nt-live-sim-board-table thead th {
            position: sticky;
            z-index: 3;
            background: #F8FAFC;
            border-bottom: 1px solid var(--nt-border);
            padding: 10px 8px 6px 8px;
            font-size: 12px;
            line-height: 1.15;
            font-weight: 800;
            color: var(--nt-dark);
            text-transform: none;
            letter-spacing: 0;
            white-space: nowrap;
            vertical-align: bottom;
        }
        
        .nt-live-sim-board-table thead tr:first-child th {
            top: 0;
        }
        
        .nt-live-sim-board-filter-row th {
            top: 38px !important;
            z-index: 4;
            padding: 4px 8px 8px 8px !important;
            background: #F8FAFC !important;
        }
        
        .nt-live-sim-board-table thead button {
            border: none;
            background: transparent;
            color: inherit;
            font: inherit;
            padding: 0;
            cursor: pointer;
            white-space: nowrap;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .nt-live-sim-board-table thead button:hover {
            color: var(--nt-blue);
        }
        
        .nt-live-sim-board-filter-row select {
            width: 100%;
            padding: 4px 7px;
            border-radius: 999px;
            border: 1px solid var(--nt-border);
            background: #FFFFFF;
            color: var(--nt-neutral);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            outline: none;
        }
        
        .nt-live-sim-board-filter-row select:hover {
            border-color: var(--nt-blue);
            color: var(--nt-dark);
        }
        
        .nt-live-sim-board-table tbody tr {
            transition: background 0.15s ease;
            cursor: pointer;
        }
        
        .nt-live-sim-board-table tbody tr:hover {
            background: var(--nt-row-hover);
        }
        
        .nt-live-sim-board-table tbody tr.active {
            background: var(--nt-selected-row);
            box-shadow: inset 3px 0 0 var(--nt-blue);
        }
        
        .nt-live-sim-board-table tbody td {
            padding: 7px 8px;
            border-bottom: 1px solid #EEEEEE;
            vertical-align: middle;
            box-sizing: border-box;
        }
        
        .nt-live-sim-board-table th.numeric,
        .nt-live-sim-board-table td.numeric {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        
        .nt-live-sim-board-main-value {
            font-size: 13px;
            line-height: 1.25;
            font-weight: 700;
            color: var(--nt-dark);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        
        .nt-live-sim-board-sub-value {
            margin-top: 2px;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 700;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }
        
        .nt-live-sim-board-main-value.positive,
        .nt-live-sim-board-sub-value.positive {
            color: var(--nt-positive);
        }
        
        .nt-live-sim-board-main-value.negative,
        .nt-live-sim-board-sub-value.negative {
            color: var(--nt-negative);
        }
        
        .nt-live-sim-board-main-value.neutral,
        .nt-live-sim-board-sub-value.neutral {
            color: var(--nt-neutral);
        }
        
        .nt-live-sim-board-signal {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 66px;
            padding: 3px 9px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            white-space: nowrap;
        }
        
        .nt-live-sim-board-signal.buy {
            color: var(--nt-positive);
            background: rgba(22, 163, 74, 0.10);
            border: 1px solid rgba(22, 163, 74, 0.22);
        }
        
        .nt-live-sim-board-signal.sell {
            color: var(--nt-negative);
            background: rgba(220, 38, 38, 0.10);
            border: 1px solid rgba(220, 38, 38, 0.22);
        }
        
        .nt-live-sim-board-signal.hold {
            color: var(--nt-neutral);
            background: rgba(100, 116, 139, 0.10);
            border: 1px solid rgba(100, 116, 139, 0.18);
        }
        
        .nt-live-sim-board-ticker,
        .nt-live-sim-board-name {
            font-size: 13px;
            line-height: 1.25;
            font-weight: 700;
            color: var(--nt-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .nt-live-sim-board-name {
            max-width: 115px;
        }
        
        .nt-live-sim-board-status {
            margin-top: 2px;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 700;
            color: var(--nt-neutral);
            text-transform: capitalize;
        }
        
        /* 9-column width tuning */
        .nt-live-sim-board-table th:nth-child(1),
        .nt-live-sim-board-table td:nth-child(1) {
            width: 8.5%;
        }
        
        .nt-live-sim-board-table th:nth-child(2),
        .nt-live-sim-board-table td:nth-child(2) {
            width: 13%;
        }
        
        .nt-live-sim-board-table th:nth-child(3),
        .nt-live-sim-board-table td:nth-child(3) {
            width: 8.5%;
        }
        
        .nt-live-sim-board-table th:nth-child(4),
        .nt-live-sim-board-table td:nth-child(4) {
            width: 11%;
        }
        
        .nt-live-sim-board-table th:nth-child(5),
        .nt-live-sim-board-table td:nth-child(5) {
            width: 9%;
        }
        
        .nt-live-sim-board-table th:nth-child(6),
        .nt-live-sim-board-table td:nth-child(6) {
            width: 12%;
        }
        
        .nt-live-sim-board-table th:nth-child(7),
        .nt-live-sim-board-table td:nth-child(7) {
            width: 13.5%;
        }
        
        .nt-live-sim-board-table th:nth-child(8),
        .nt-live-sim-board-table td:nth-child(8) {
            width: 12%;
        }
        
        .nt-live-sim-board-table th:nth-child(9),
        .nt-live-sim-board-table td:nth-child(9) {
            width: 12.5%;
        }

        /* ===============================
           My Simulations: Signal Overview-style controls
        ================================ */
        
        .nt-live-sim-board-header-signal-style {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 12px;
        }
        
        .nt-live-sim-list-title-area {
            min-width: 0;
        }
        
        .nt-live-sim-board-top-buttons {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-shrink: 0;
        }
        
        .nt-live-sim-reset-view-btn,
        .nt-live-sim-refresh-btn {
            padding: 8px 13px;
            font-size: 12px;
            line-height: 1;
        }
        
        /* Reuse Signal Overview control-card feeling */
        .nt-live-sim-controls-card {
            margin-top: 0;
            margin-bottom: 10px;
            padding: 14px;
        }
        
        .nt-live-sim-controls-grid {
            display: grid;
            grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.4fr) minmax(230px, 0.9fr);
            gap: 16px;
            align-items: end;
        }
        
        /* Same label feeling as Signal Overview */
        .nt-live-sim-controls-card .nt-control-label {
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            color: var(--nt-neutral);
            text-transform: none;
            letter-spacing: 0;
            margin-bottom: 7px;
        }
        
        /* Status pills styled like the Signal Overview horizon pills */
        .nt-live-sim-status-pills {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .live-sim-status-pill {
            border: 1px solid var(--nt-border);
            border-radius: 999px;
            background: #FFFFFF;
            color: var(--nt-neutral);
            padding: 7px 11px;
            font-size: 12px;
            line-height: 1;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        
        .live-sim-status-pill:hover {
            border-color: var(--nt-blue);
            color: var(--nt-blue);
        }
        
        .live-sim-status-pill.selected,
        .live-sim-status-pill.active {
            background: var(--nt-blue);
            border-color: var(--nt-blue);
            color: #FFFFFF;
        }
        
        .live-sim-status-pill .nt-live-sim-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            margin-left: 5px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.24);
            font-size: 10px;
            font-weight: 900;
        }
        
        .live-sim-status-pill:not(.selected):not(.active) .nt-live-sim-filter-count {
            background: rgba(100, 116, 139, 0.12);
            color: var(--nt-neutral);
        }
        
        /* Make live simulation asset pills align like Signal Overview */
        .nt-live-sim-controls-card .nt-asset-control {
            display: flex;
            align-items: center;
        }
        
        .nt-live-sim-controls-card .nt-asset-pills {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .nt-live-sim-controls-card .asset-pill {
            padding: 7px 12px;
            font-size: 12px;
            line-height: 1;
        }
        
        /* Mobile */
        @media (max-width: 1100px) {
            .nt-live-sim-controls-grid {
                grid-template-columns: 1fr;
                align-items: stretch;
            }
        }
        
        @media (max-width: 760px) {
            .nt-live-sim-board-header-signal-style {
                flex-direction: column;
            }
        
            .nt-live-sim-board-top-buttons {
                justify-content: flex-start;
            }
        }

        /* ===============================
           Live simulation controls: cleaner Signal Overview-style layout
        ================================ */
        
        .nt-live-sim-controls-card {
            margin-top: 0;
            margin-bottom: 12px;
            padding: 18px 20px 16px 20px;
        }
        
        /* First row: Search | Return horizon | Asset type */
        .nt-live-sim-controls-grid-main {
            display: grid;
            grid-template-columns: minmax(280px, 1.05fr) minmax(430px, 1.35fr) minmax(250px, 0.8fr);
            gap: 22px;
            align-items: end;
        }
        
        /* Second row: Simulation status full width */
        .nt-live-sim-status-row {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid rgba(226, 232, 240, 0.9);
        }
        
        .nt-live-sim-status-row .nt-control-group {
            width: 100%;
        }
        
        /* Labels like Signal Overview: small, sentence case */
        .nt-live-sim-controls-card .nt-control-label {
            display: block;
            margin-bottom: 8px;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            color: var(--nt-neutral);
            text-transform: none !important;
            letter-spacing: 0 !important;
        }
        
        /* Make horizon pills fit better */
        .nt-live-sim-horizon-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .nt-live-sim-horizon-pills .period-pill {
            padding: 7px 10px;
            font-size: 12px;
            line-height: 1;
        }
        
        /* Simulation status can now use full width and stay in one clean row */
        .nt-live-sim-status-pills {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 7px;
        }
        
        .live-sim-status-pill {
            border: 1px solid var(--nt-border);
            border-radius: 999px;
            background: #FFFFFF;
            color: var(--nt-neutral);
            padding: 8px 13px;
            font-size: 12px;
            line-height: 1;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        
        .live-sim-status-pill:hover {
            border-color: var(--nt-blue);
            color: var(--nt-blue);
        }
        
        .live-sim-status-pill.selected,
        .live-sim-status-pill.active {
            background: var(--nt-blue);
            border-color: var(--nt-blue);
            color: #FFFFFF;
        }
        
        .live-sim-status-pill .nt-live-sim-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            margin-left: 6px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.24);
            font-size: 10px;
            font-weight: 900;
        }
        
        .live-sim-status-pill:not(.selected):not(.active) .nt-live-sim-filter-count {
            background: rgba(100, 116, 139, 0.12);
            color: var(--nt-neutral);
        }
        
        /* Asset type aligned like Signal Overview */
        .nt-live-sim-controls-card .nt-asset-control {
            display: flex;
            align-items: center;
        }
        
        .nt-live-sim-controls-card .nt-asset-pills {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .nt-live-sim-controls-card .asset-pill {
            padding: 7px 12px;
            font-size: 12px;
            line-height: 1;
        }
        
        /* Search box height consistent with Signal Overview */
        .nt-live-sim-controls-card .nt-search-shell {
            min-height: 44px;
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .nt-live-sim-controls-grid-main {
                grid-template-columns: 1fr;
                gap: 16px;
                align-items: stretch;
            }
        
            .nt-live-sim-status-row {
                margin-top: 16px;
            }
        }

        /* ===============================
           Live simulation controls: closer to Signal Overview top panel
        ================================ */
        
        /* Make the three controls fill the whole row like Signal Overview */
        .nt-live-sim-controls-grid-main {
            display: grid;
            grid-template-columns: minmax(260px, 1.05fr) minmax(520px, 1.65fr) minmax(250px, 0.85fr) !important;
            gap: 22px;
            align-items: end;
            width: 100%;
        }
        
        /* Make each control group use its full grid column */
        .nt-live-sim-controls-grid-main .nt-control-group {
            width: 100%;
            min-width: 0;
        }
        
        /* Make labels match the Signal Overview label style */
        .nt-live-sim-controls-card .nt-control-label {
            display: block;
            margin-bottom: 8px;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            color: var(--nt-neutral);
            text-transform: none !important;
            letter-spacing: 0 !important;
        }
        
        /* Make search height match pill rows */
        .nt-live-sim-controls-card .nt-search-shell {
            height: 38px !important;
            min-height: 38px !important;
            padding: 0 14px;
            display: flex;
            align-items: center;
        }
        
        .nt-live-sim-controls-card .nt-search-input {
            height: 38px !important;
            line-height: 38px;
            padding-top: 0;
            padding-bottom: 0;
            font-size: 14px;
        }
        
        /* Make horizon bar occupy its full middle column */
        .nt-live-sim-horizon-pills {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: nowrap;
        }
        
        /* Make horizon pills the same visual height as search */
        .nt-live-sim-horizon-pills .period-pill {
            height: 38px;
            min-height: 38px;
            padding: 0 11px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            line-height: 1;
            flex: 1 1 auto;
            white-space: nowrap;
        }
        
        /* Make asset type fill the right column neatly */
        .nt-live-sim-controls-card .nt-asset-control {
            width: 100%;
            display: flex;
            align-items: center;
        }
        
        .nt-live-sim-controls-card .nt-asset-pills {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: nowrap;
        }
        
        /* Make asset pills same height as search and horizon */
        .nt-live-sim-controls-card .asset-pill {
            height: 38px;
            min-height: 38px;
            padding: 0 13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            line-height: 1;
            flex: 1 1 auto;
            white-space: nowrap;
        }
        
        /* Keep the controls card slightly taller and more balanced */
        .nt-live-sim-controls-card {
            padding: 18px 20px 17px 20px;
        }
        
        /* On medium screens, allow horizon and asset pills to wrap only when needed */
        @media (max-width: 1250px) {
            .nt-live-sim-controls-grid-main {
                grid-template-columns: 1fr !important;
                gap: 16px;
                align-items: stretch;
            }
        
            .nt-live-sim-horizon-pills,
            .nt-live-sim-controls-card .nt-asset-pills {
                justify-content: flex-start;
                flex-wrap: wrap;
            }
        
            .nt-live-sim-horizon-pills .period-pill,
            .nt-live-sim-controls-card .asset-pill {
                flex: 0 0 auto;
            }
        }

        /* ===============================
           FIX: Live Simulation controls should match Signal Overview and not overflow
        ================================ */
        
        /* Keep the control card inside its parent */
        .nt-live-sim-controls-card {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            padding: 14px 16px !important;
            overflow: hidden !important;
        }
        
        /* Main row: Search | Return horizon | Asset type */
        .nt-live-sim-controls-grid-main {
            display: grid !important;
            grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.65fr) minmax(0, 0.9fr) !important;
            gap: 16px !important;
            align-items: end !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        /* Each control must stay inside its own column */
        .nt-live-sim-controls-grid-main .nt-control-group {
            min-width: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        /* Labels like Signal Overview */
        .nt-live-sim-controls-card .nt-control-label {
            display: block !important;
            margin-bottom: 7px !important;
            font-size: 12px !important;
            line-height: 1.2 !important;
            font-weight: 800 !important;
            color: var(--nt-neutral) !important;
            text-transform: none !important;
            letter-spacing: 0 !important;
        }
        
        /* Search: same height as pills */
        .nt-live-sim-controls-card .nt-search-shell {
            width: 100% !important;
            max-width: 100% !important;
            height: 38px !important;
            min-height: 38px !important;
            box-sizing: border-box !important;
            padding: 0 12px !important;
            display: flex !important;
            align-items: center !important;
        }
        
        .nt-live-sim-controls-card .nt-search-input {
            height: 36px !important;
            line-height: 36px !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            font-size: 14px !important;
        }
        
        /* Return horizon: contained and compact */
        .nt-live-sim-horizon-pills {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            display: flex !important;
            align-items: center !important;
            gap: 5px !important;
            flex-wrap: nowrap !important;
            overflow: hidden !important;
        }
        
        .nt-live-sim-horizon-pills .period-pill {
            flex: 1 1 0 !important;
            min-width: 0 !important;
            height: 38px !important;
            min-height: 38px !important;
            padding: 0 7px !important;
            font-size: 11.5px !important;
            line-height: 1 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            white-space: nowrap !important;
        }
        
        /* Since Start needs a bit more room but must still fit */
        .nt-live-sim-horizon-pills .period-pill[data-live-sim-horizon="since_start"] {
            flex: 1.55 1 0 !important;
        }
        
        /* Asset type: stop it from exceeding the card */
        .nt-live-sim-controls-card .nt-asset-control {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            display: block !important;
        }
        
        .nt-live-sim-controls-card .nt-asset-pills {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            display: flex !important;
            align-items: center !important;
            gap: 5px !important;
            flex-wrap: nowrap !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }
        
        .nt-live-sim-controls-card .asset-pill {
            flex: 1 1 0 !important;
            min-width: 0 !important;
            height: 38px !important;
            min-height: 38px !important;
            padding: 0 7px !important;
            font-size: 11.5px !important;
            line-height: 1 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            white-space: nowrap !important;
        }
        
        /* Simulation status row: compact, same card, not huge */
        .nt-live-sim-status-row {
            margin-top: 13px !important;
            padding-top: 12px !important;
            border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
        }
        
        .nt-live-sim-status-pills {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            flex-wrap: wrap !important;
        }
        
        .live-sim-status-pill {
            height: 36px !important;
            min-height: 36px !important;
            padding: 0 12px !important;
            font-size: 12px !important;
            line-height: 1 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        /* Responsive: stack only when necessary */
        @media (max-width: 1200px) {
            .nt-live-sim-controls-grid-main {
                grid-template-columns: 1fr !important;
                gap: 14px !important;
            }
        
            .nt-live-sim-horizon-pills,
            .nt-live-sim-controls-card .nt-asset-pills {
                flex-wrap: wrap !important;
                justify-content: flex-start !important;
                overflow: visible !important;
            }
        
            .nt-live-sim-horizon-pills .period-pill,
            .nt-live-sim-controls-card .asset-pill {
                flex: 0 0 auto !important;
                padding: 0 12px !important;
            }
        }

        /* =========================================================
           FINAL FIX: Live Simulation controls EXACTLY like Signal Overview
           Put this at the VERY END of the style block
        ========================================================= */
        
        /* Same card look/size as Signal Overview controls */
        .nt-live-sim-controls-card {
            margin-bottom: 14px !important;
            padding: 16px !important;
            background: #ffffff !important;
            border: 1px solid var(--nt-border) !important;
            border-radius: 16px !important;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
            overflow: visible !important;
        }
        
        /* Same 3-column logic as Signal Overview:
           search expands, horizon and asset type use natural width */
        .nt-live-sim-controls-grid-main {
            display: grid !important;
            grid-template-columns: minmax(260px, 1.15fr) auto auto !important;
            gap: 14px !important;
            align-items: end !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        /* Same control group spacing as Signal Overview */
        .nt-live-sim-controls-grid-main .nt-control-group {
            display: flex !important;
            flex-direction: column !important;
            gap: 7px !important;
            width: auto !important;
            min-width: 0 !important;
        }
        
        /* Labels: same as Signal Overview */
        .nt-live-sim-controls-card .nt-control-label {
            font-size: 12px !important;
            font-weight: 800 !important;
            color: var(--nt-dark) !important;
            text-transform: none !important;
            letter-spacing: 0 !important;
            margin: 0 !important;
        }
        
        /* Search: exactly same as Signal Overview */
        .nt-live-sim-controls-card .nt-search-shell {
            position: relative !important;
            width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            padding: 0 !important;
            display: block !important;
        }
        
        .nt-live-sim-controls-card .nt-search-icon {
            position: absolute !important;
            left: 13px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            font-size: 14px !important;
            color: var(--nt-neutral) !important;
            pointer-events: none !important;
        }
        
        .nt-live-sim-controls-card .nt-search-input {
            width: 100% !important;
            height: 42px !important;
            line-height: normal !important;
            padding: 9px 12px 9px 38px !important;
            border-radius: 999px !important;
            border: 1px solid var(--nt-border) !important;
            background: #F8FAFC !important;
            color: var(--nt-dark) !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            outline: none !important;
        }
        
        /* Return horizon: same segmented-pill container as Signal Overview */
        .nt-live-sim-horizon-pills {
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            padding: 4px !important;
            background: #F1F5F9 !important;
            border: 1px solid var(--nt-border) !important;
            border-radius: 999px !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            flex-wrap: nowrap !important;
            overflow: visible !important;
        }
        
        /* Return horizon buttons: same as Signal Overview */
        .nt-live-sim-horizon-pills .period-pill {
            border: none !important;
            background: transparent !important;
            color: var(--nt-neutral) !important;
            font-size: 12px !important;
            font-weight: 800 !important;
            padding: 7px 11px !important;
            height: auto !important;
            min-height: 0 !important;
            line-height: normal !important;
            border-radius: 999px !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            flex: 0 0 auto !important;
            white-space: nowrap !important;
        }
        
        .nt-live-sim-horizon-pills .period-pill:hover {
            background: #E2E8F0 !important;
            color: var(--nt-dark) !important;
        }
        
        .nt-live-sim-horizon-pills .period-pill.active {
            background: var(--nt-blue) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
        }
        
        /* Asset type: same segmented-pill container as Signal Overview */
        .nt-live-sim-controls-card .nt-asset-control {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            flex-wrap: wrap !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
        }
        
        .nt-live-sim-controls-card .nt-asset-pills {
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            padding: 4px !important;
            background: #F1F5F9 !important;
            border: 1px solid var(--nt-border) !important;
            border-radius: 999px !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            flex-wrap: nowrap !important;
            overflow: visible !important;
        }
        
        /* Asset type buttons: same as Signal Overview */
        .nt-live-sim-controls-card .asset-pill {
            border: none !important;
            background: transparent !important;
            color: var(--nt-neutral) !important;
            font-size: 12px !important;
            font-weight: 800 !important;
            padding: 7px 12px !important;
            height: auto !important;
            min-height: 0 !important;
            line-height: normal !important;
            border-radius: 999px !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            flex: 0 0 auto !important;
            white-space: nowrap !important;
        }
        
        .nt-live-sim-controls-card .asset-pill:hover {
            background: #E2E8F0 !important;
            color: var(--nt-dark) !important;
        }
        
        .nt-live-sim-controls-card .asset-pill.active {
            background: var(--nt-dark) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22) !important;
        }
        
        /* Simulation status row: make it compact, not fat */
        .nt-live-sim-status-row {
            margin-top: 14px !important;
            padding-top: 12px !important;
            border-top: 1px solid var(--nt-border) !important;
        }
        
        .nt-live-sim-status-row .nt-control-group {
            gap: 7px !important;
        }
        
        .nt-live-sim-status-pills {
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            flex-wrap: wrap !important;
        }
        
        /* Status pills: compact, not fat */
        .live-sim-status-pill {
            border: 1px solid var(--nt-border) !important;
            border-radius: 999px !important;
            background: #ffffff !important;
            color: var(--nt-neutral) !important;
            padding: 7px 11px !important;
            height: auto !important;
            min-height: 0 !important;
            font-size: 12px !important;
            line-height: normal !important;
            font-weight: 800 !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            white-space: nowrap !important;
        }
        
        .live-sim-status-pill:hover {
            background: #E2E8F0 !important;
            color: var(--nt-dark) !important;
        }
        
        .live-sim-status-pill.selected,
        .live-sim-status-pill.active {
            background: var(--nt-blue) !important;
            border-color: var(--nt-blue) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
        }
        
        /* Count bubbles inside status pills */
        .live-sim-status-pill .nt-live-sim-filter-count {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 18px !important;
            height: 18px !important;
            margin-left: 5px !important;
            padding: 0 6px !important;
            border-radius: 999px !important;
            background: rgba(100, 116, 139, 0.12) !important;
            color: inherit !important;
            font-size: 10px !important;
            line-height: 1 !important;
            font-weight: 900 !important;
        }
        
        .live-sim-status-pill.selected .nt-live-sim-filter-count,
        .live-sim-status-pill.active .nt-live-sim-filter-count {
            background: rgba(255, 255, 255, 0.22) !important;
            color: #ffffff !important;
        }
        
        /* Responsive behavior exactly like Signal Overview */
        @media (max-width: 1050px) {
            .nt-live-sim-controls-grid-main {
                grid-template-columns: 1fr !important;
                align-items: stretch !important;
            }
        
            .nt-live-sim-horizon-pills,
            .nt-live-sim-controls-card .nt-asset-pills {
                width: fit-content !important;
                max-width: 100% !important;
                flex-wrap: wrap !important;
            }
        }

        /* =========================================================
           FINAL Live Simulation control polish
           - same compact sizing as Signal Overview
           - taller simulation board
           - active Since Start horizon
        ========================================================= */
        
        /* Refresh + Reset View: same height/feel as Signal Overview Reset View */
        .nt-live-sim-board-top-buttons .nt-live-sim-refresh-btn,
        .nt-live-sim-board-top-buttons .nt-live-sim-reset-view-btn {
            min-height: 42px !important;
            padding: 9px 14px !important;
            font-size: 13px !important;
            line-height: 1 !important;
            font-weight: 800 !important;
            border-radius: 999px !important;
        }
        
        /* Keep Refresh blue-outline but same size */
        .nt-live-sim-board-top-buttons .nt-live-sim-refresh-btn {
            border: 1px solid rgba(37, 99, 235, 0.22) !important;
            background: #ffffff !important;
            color: var(--nt-blue) !important;
        }
        
        .nt-live-sim-board-top-buttons .nt-live-sim-refresh-btn:hover {
            background: var(--nt-blue) !important;
            color: #ffffff !important;
        }
        
        /* Reset View same as Signal Overview */
        .nt-live-sim-board-top-buttons .nt-live-sim-reset-view-btn {
            border: 1px solid var(--nt-border) !important;
            background: #ffffff !important;
            color: var(--nt-dark) !important;
        }
        
        .nt-live-sim-board-top-buttons .nt-live-sim-reset-view-btn:hover {
            background: #F1F5F9 !important;
            border-color: #CBD5E1 !important;
        }
        
        /* Make simulation board tall enough for about 5 rows */
        .nt-live-sim-board-scroll {
            max-height: 355px !important;
        }
        
        /* Ensure Since Start / selected horizon is blue by default */
        .nt-live-sim-horizon-pills .period-pill.active {
            background: var(--nt-blue) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
        }
        
        /* Keep non-active horizon buttons gray like Signal Overview */
        .nt-live-sim-horizon-pills .period-pill:not(.active) {
            background: transparent !important;
            color: var(--nt-neutral) !important;
        }
        
        /* Keep asset type active dark like Signal Overview */
        .nt-live-sim-controls-card .asset-pill.active {
            background: var(--nt-dark) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22) !important;
        }

        /* ===============================
           Model summary cards as passive info
           Applies consistently to all model intros
        ================================ */
        
        .nt-model-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
            margin: 16px 0 22px 0;
        }
        
        .nt-model-summary-card {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 13px 14px;
            border: 1px solid rgba(226, 232, 240, 0.9);
            border-left: 4px solid rgba(37, 99, 235, 0.45);
            border-radius: 14px;
            background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
            min-width: 0;
            box-shadow: none;
        }
        
        .nt-model-summary-card:hover {
            transform: none;
            box-shadow: none;
        }
        
        .nt-model-summary-icon {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.08);
            color: var(--nt-blue);
            font-size: 16px;
            font-weight: 900;
        }
        
        .nt-model-summary-label {
            font-size: 10px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-neutral);
            text-transform: uppercase;
            letter-spacing: 0.055em;
            margin-bottom: 4px;
        }
        
        .nt-model-summary-value {
            font-size: 13px;
            line-height: 1.35;
            font-weight: 850;
            color: var(--nt-dark);
        }
        
        @media (max-width: 1050px) {
            .nt-model-summary-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        
        @media (max-width: 600px) {
            .nt-model-summary-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Model intro cards as passive information
           Applies to EpochSignaler, AltIndexer, EpochForecaster
        ================================ */
        
        .nt-model-panel > .nt-model-panel-header:first-child {
            padding: 18px 18px 0 18px;
            border-radius: 18px 18px 0 0;
            background:
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 32%),
                #ffffff;
            border: 1px solid var(--nt-border);
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .nt-model-panel > .nt-model-summary-grid {
            margin: 0 0 22px 0;
            padding: 0 18px 18px 18px;
            border: 1px solid var(--nt-border);
            border-top: none;
            border-radius: 0 0 18px 18px;
            background: #ffffff;
        }
        
        .nt-model-summary-card {
            border-left: 4px solid rgba(37, 99, 235, 0.45);
            background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
            box-shadow: none;
        }
        
        .nt-model-summary-card:hover {
            transform: none;
            box-shadow: none;
        }
        
        /* ===============================
           EpochSignaler horizontal sub-tabs
           Signal Overview | Backtest | Live Simulation
        ================================ */
        
        .nt-epoch-subworkspace {
            width: 100%;
            min-width: 0;
            margin-top: 20px;
        }
        
        .nt-epoch-subnav-card {
            position: relative;
            padding: 16px;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            background: #F8FAFC;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
            margin-bottom: 18px;
        }
        
        .nt-epoch-subnav-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 14px;
        }
        
        .nt-epoch-subnav-kicker {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 900;
            letter-spacing: 0.055em;
            text-transform: uppercase;
            color: var(--nt-blue);
            margin-bottom: 6px;
        }
        
        .nt-epoch-subnav-title {
            margin: 0;
            font-size: 17px;
            line-height: 1.25;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-epoch-subnav-subtitle {
            max-width: 760px;
            margin: 5px 0 0 0;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-epoch-tool-tabs {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        
        .nt-epoch-tool-tab {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 11px;
            min-height: 72px;
            padding: 13px 14px;
            border: 1px solid var(--nt-border);
            border-radius: 14px;
            background: #ffffff;
            color: var(--nt-dark);
            cursor: pointer;
            text-align: left;
            transition: all 0.15s ease;
        }
        
        .nt-epoch-tool-tab:hover {
            background: #F1F5F9;
            border-color: #CBD5E1;
            transform: translateY(-1px);
        }
        
        .nt-epoch-tool-tab.active {
            background: var(--nt-dark);
            border-color: var(--nt-dark);
            color: #ffffff;
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
        }
        
        /* Down arrow from active tab to the content block */
        .nt-epoch-tool-tab.active::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -18px;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 11px solid transparent;
            border-right: 11px solid transparent;
            border-top: 12px solid var(--nt-dark);
            z-index: 5;
        }
        
        .nt-epoch-tool-tab-icon {
            width: 36px;
            height: 36px;
            flex: 0 0 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: rgba(37, 99, 235, 0.10);
            font-size: 16px;
        }
        
        .nt-epoch-tool-tab.active .nt-epoch-tool-tab-icon {
            background: rgba(255, 255, 255, 0.14);
        }
        
        .nt-epoch-tool-tab strong {
            display: block;
            font-size: 13px;
            line-height: 1.25;
            font-weight: 900;
        }
        
        .nt-epoch-tool-tab small {
            display: block;
            margin-top: 3px;
            font-size: 11px;
            line-height: 1.35;
            font-weight: 650;
            color: var(--nt-neutral);
        }
        
        .nt-epoch-tool-tab.active small {
            color: rgba(255, 255, 255, 0.72);
        }
        
        .nt-epoch-tool-content-card {
            width: 100%;
            min-width: 0;
            padding: 18px;
            border: 1px solid var(--nt-border);
            border-radius: 18px;
            background: #ffffff;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
        }
        
        .nt-epoch-tool-panels {
            width: 100%;
            min-width: 0;
        }
        
        .nt-epoch-tool-panel {
            display: none;
            width: 100%;
            min-width: 0;
        }
        
        .nt-epoch-tool-panel.nt-epoch-tool-panel-active {
            display: block;
        }
        
        /* Remove old card-in-card spacing inside the new content panel */
        #epochsignaler-section .nt-epoch-tool-panel > .results-section,
        #epochsignaler-section .nt-epoch-tool-panel > .nt-backtest-section,
        #epochsignaler-section .nt-epoch-tool-panel > .nt-live-sim-section {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
        }
        
        /* Signal overview should feel integrated inside the panel */
        #epochsignaler-section .nt-epoch-tool-panel > .nt-epoch-dashboard {
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
        }
        
        /* Keep Backtest and Live Simulation as internal cards */
        #epochsignaler-section .nt-epoch-tool-panel > .nt-backtest-section,
        #epochsignaler-section .nt-epoch-tool-panel > .nt-live-sim-section {
            border-radius: 16px;
        }
        
        /* Responsive */
        @media (max-width: 900px) {
            .nt-epoch-tool-tabs {
                grid-template-columns: 1fr;
            }
        
            .nt-epoch-tool-tab.active::after {
                display: none;
            }
        
            .nt-epoch-tool-content-card {
                padding: 14px;
            }
        }

        .signal-locked {
            color: #92400E;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.25);
            filter: none;
        }

        /* ===============================
           Pro Upgrade Card
        ================================ */

        .nt-pro-upgrade-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            margin: 16px 0 20px 0;
            padding: 18px 20px;
            border-radius: 18px;
            background:
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
                #ffffff;
            border: 1px solid var(--nt-border);
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
        }
        
        .nt-pro-upgrade-copy h3 {
            margin: 4px 0 0 0;
            font-size: 18px;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-pro-upgrade-copy p {
            max-width: 780px;
            margin: 6px 0 0 0;
            font-size: 13px;
            line-height: 1.55;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-pro-upgrade-btn {
            border: none;
            border-radius: 999px;
            background: var(--nt-dark);
            color: #ffffff;
            font-size: 13px;
            font-weight: 900;
            padding: 11px 16px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        
        .nt-pro-upgrade-btn:hover {
            background: #020617;
            transform: translateY(-1px);
        }
        
        .nt-pro-lock-card {
            min-height: 260px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 28px;
            border-radius: 16px;
            background: #F8FAFC;
            border: 1px dashed rgba(100, 116, 139, 0.35);
            text-align: center;
        }
        
        .nt-pro-lock-icon {
            width: 46px;
            height: 46px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.10);
            font-size: 22px;
        }
        
        .nt-pro-lock-card h3 {
            margin: 4px 0 0 0;
            font-size: 18px;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-pro-lock-card p {
            max-width: 520px;
            margin: 0;
            font-size: 13px;
            line-height: 1.55;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        @media (max-width: 700px) {
            .nt-pro-upgrade-card {
                flex-direction: column;
                align-items: stretch;
            }
        
            .nt-pro-upgrade-btn {
                width: 100%;
            }
        }

        .nt-pro-card-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        
        .nt-pro-status-pill {
            align-items: center;
            justify-content: center;
            padding: 7px 10px;
            border-radius: 999px;
            background: rgba(22, 163, 74, 0.10);
            border: 1px solid rgba(22, 163, 74, 0.22);
            color: var(--nt-positive);
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
        }
        
        .nt-pro-active-card {
            background:
                radial-gradient(circle at top right, rgba(22, 163, 74, 0.14), transparent 34%),
                #ffffff;
            border-color: rgba(22, 163, 74, 0.22);
        }
        
        .nt-user-pro-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 6px;
            padding: 3px 7px;
            border-radius: 999px;
            background: rgba(22, 163, 74, 0.12);
            color: var(--nt-positive);
            font-size: 10px;
            font-weight: 900;
        }

        /* ===============================
           Checkout Banner
        ================================ */

        .nt-checkout-banner {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            margin: 0 0 18px 0;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid var(--nt-border);
            background: #ffffff;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
        }
        
        .nt-checkout-banner.success {
            background: rgba(22, 163, 74, 0.08);
            border-color: rgba(22, 163, 74, 0.24);
        }
        
        .nt-checkout-banner.cancelled {
            background: rgba(100, 116, 139, 0.08);
            border-color: rgba(100, 116, 139, 0.22);
        }
        
        .nt-checkout-banner strong {
            display: block;
            font-size: 14px;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-checkout-banner p {
            margin: 4px 0 0 0;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-checkout-banner-close {
            border: none;
            background: transparent;
            color: var(--nt-neutral);
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
            padding: 0 4px;
        }
        
        .nt-checkout-banner-close:hover {
            color: var(--nt-dark);
        }

        /* ===============================
           Pricing section
        ================================ */
        
        .nt-pricing-section {
            margin: 26px 0 34px 0;
            padding: 26px;
            border-radius: 22px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
        }
        
        .nt-pricing-header {
            max-width: 760px;
            margin-bottom: 20px;
        }
        
        .nt-pricing-title {
            margin: 0;
            font-size: 24px;
            line-height: 1.25;
            font-weight: 950;
            color: var(--nt-dark);
        }
        
        .nt-pricing-subtitle {
            margin: 8px 0 0 0;
            font-size: 14px;
            line-height: 1.6;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-pricing-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
            gap: 16px;
            align-items: stretch;
        }
        
        .nt-pricing-card {
            position: relative;
            padding: 22px;
            border-radius: 18px;
            border: 1px solid var(--nt-border);
            background: #F8FAFC;
            min-width: 0;
        }
        
        .nt-pricing-card-featured {
            background:
                radial-gradient(circle at top right, rgba(37, 99, 235, 0.13), transparent 34%),
                #ffffff;
            border-color: rgba(37, 99, 235, 0.26);
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        }
        
        .nt-pricing-featured-badge {
            position: absolute;
            top: 16px;
            right: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 9px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.10);
            border: 1px solid rgba(37, 99, 235, 0.18);
            color: var(--nt-blue);
            font-size: 11px;
            font-weight: 900;
        }
        
        .nt-pricing-plan-label {
            font-size: 11px;
            line-height: 1.2;
            font-weight: 900;
            letter-spacing: 0.055em;
            text-transform: uppercase;
            color: var(--nt-blue);
        }
        
        .nt-pricing-plan-title {
            margin: 7px 0 0 0;
            font-size: 19px;
            line-height: 1.25;
            font-weight: 950;
            color: var(--nt-dark);
        }
        
        .nt-pricing-price {
            margin-top: 14px;
            font-size: 34px;
            line-height: 1;
            font-weight: 950;
            color: var(--nt-dark);
        }
        
        .nt-pricing-price span {
            font-size: 13px;
            font-weight: 750;
            color: var(--nt-neutral);
        }
        
        .nt-pricing-plan-text {
            margin: 12px 0 0 0;
            font-size: 13px;
            line-height: 1.55;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        .nt-pricing-list {
            margin: 16px 0 18px 0;
            padding: 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 9px;
        }
        
        .nt-pricing-list li {
            position: relative;
            padding-left: 24px;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 700;
            color: var(--nt-dark);
        }
        
        .nt-pricing-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--nt-positive);
            font-weight: 950;
        }
        
        .nt-pricing-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .nt-pricing-btn {
            border: none;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 950;
            padding: 11px 16px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-pricing-btn-primary {
            background: var(--nt-dark);
            color: #ffffff;
        }
        
        .nt-pricing-btn-primary:hover {
            background: #020617;
            transform: translateY(-1px);
        }
        
        .nt-pricing-btn-secondary {
            background: #ffffff;
            color: var(--nt-dark);
            border: 1px solid var(--nt-border);
        }
        
        .nt-pricing-btn-secondary:hover {
            background: #F1F5F9;
            transform: translateY(-1px);
        }
        
        .nt-pricing-disclaimer {
            margin: 14px 0 0 0;
            font-size: 12px;
            line-height: 1.5;
            font-weight: 600;
            color: var(--nt-neutral);
        }
        
        @media (max-width: 850px) {
            .nt-pricing-grid {
                grid-template-columns: 1fr;
            }
        
            .nt-pricing-section {
                padding: 20px;
                border-radius: 18px;
            }
        
            .nt-pricing-featured-badge {
                position: static;
                width: fit-content;
                margin-bottom: 10px;
            }
        }
        
        @media (max-width: 600px) {
            .nt-pricing-title {
                font-size: 21px;
            }
        
            .nt-pricing-price {
                font-size: 30px;
            }
        
            .nt-pricing-btn {
                width: 100%;
            }
        }

        .nt-plan-status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 10px;
            border-radius: 999px;
            background: rgba(100, 116, 139, 0.10);
            border: 1px solid rgba(100, 116, 139, 0.22);
            color: var(--nt-neutral);
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
        }
        
        .nt-pricing-btn-disabled,
        .nt-pricing-btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            transform: none !important;
        }

        /* ===============================
           Legal pages
        ================================ */
        
        .nt-legal-page {
            max-width: 920px;
            margin: 28px auto 44px auto;
            padding: 28px;
            border-radius: 22px;
            background: #ffffff;
            border: 1px solid var(--nt-border);
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
        }
        
        .nt-legal-page h1 {
            margin: 0 0 8px 0;
            font-size: 30px;
            line-height: 1.2;
            font-weight: 950;
            color: var(--nt-dark);
        }
        
        .nt-legal-updated {
            margin: 0 0 24px 0;
            font-size: 13px;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        .nt-legal-page h2 {
            margin: 28px 0 10px 0;
            font-size: 19px;
            line-height: 1.35;
            font-weight: 900;
            color: var(--nt-dark);
        }
        
        .nt-legal-page p,
        .nt-legal-page li {
            font-size: 14px;
            line-height: 1.7;
            color: var(--nt-neutral);
            font-weight: 600;
        }
        
        .nt-legal-page ul {
            margin: 10px 0 16px 20px;
            padding: 0;
        }
        
        .nt-legal-page a {
            color: var(--nt-blue);
            font-weight: 800;
            text-decoration: none;
        }
        
        .nt-legal-page a:hover {
            text-decoration: underline;
        }
        
        .nt-legal-warning {
            padding: 14px 16px;
            border-radius: 16px;
            background: rgba(245, 158, 11, 0.10);
            border: 1px solid rgba(245, 158, 11, 0.24);
            color: #92400e;
            font-size: 14px;
            line-height: 1.6;
            font-weight: 750;
        }
        
        @media (max-width: 700px) {
            .nt-legal-page {
                margin: 18px auto 34px auto;
                padding: 20px;
                border-radius: 18px;
            }
        
            .nt-legal-page h1 {
                font-size: 25px;
            }
        }

        /* ===============================
           Sticky legal footer
        ================================ */
        
        body {
            padding-bottom: 52px;
        }
        
        .nt-sticky-legal-footer {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9999;
            background: #ffffff;
            border-top: 1px solid var(--nt-border);
            box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
        }
        
        .nt-sticky-legal-footer-inner {
            max-width: 1240px;
            margin: 0 auto;
            padding: 10px 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            flex-wrap: wrap;
        }
        
        .nt-sticky-legal-footer a {
            font-size: 12px;
            font-weight: 800;
            color: var(--nt-neutral);
            text-decoration: none;
        }
        
        .nt-sticky-legal-footer a:hover {
            color: var(--nt-blue);
            text-decoration: underline;
        }
        
        @media (max-width: 600px) {
            body {
                padding-bottom: 72px;
            }
        
            .nt-sticky-legal-footer-inner {
                gap: 10px;
                padding: 9px 12px;
            }
        
            .nt-sticky-legal-footer a {
                font-size: 11px;
            }
        }

        /* ===============================
           Board sorting
        ================================ */

        .sort-indicator,
        .signal-sort-indicator {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 20px;
            margin-left: 6px;
            padding: 2px 5px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.08);
            color: var(--nt-neutral);
            font-size: 11px;
            font-weight: 950;
            line-height: 1;
            letter-spacing: -2px;
            opacity: 0.9;
            vertical-align: middle;
        }
        
        .sort-indicator.active,
        .signal-sort-indicator.active {
            min-width: 20px;
            letter-spacing: 0;
            background: rgba(37, 99, 235, 0.12);
            color: var(--nt-blue);
            opacity: 1;
        }
        
        th.sortable:hover .sort-indicator,
        th.sortable:hover .signal-sort-indicator {
            background: rgba(37, 99, 235, 0.12);
            color: var(--nt-blue);
            opacity: 1;
        }

        /* ===============================
           Live simulation board: remove sticky-header gap
        ================================ */
        
        .nt-live-sim-board-table thead {
            position: sticky;
            top: 0;
            z-index: 30;
            background: #F8FAFC;
            box-shadow: 0 1px 0 var(--nt-border);
        }
        
        /* Make both header rows behave as one solid sticky block */
        .nt-live-sim-board-table thead tr,
        .nt-live-sim-board-table thead th {
            background: #F8FAFC !important;
        }
        
        /* Override older per-cell sticky top values */
        .nt-live-sim-board-table thead th {
            position: static !important;
            top: auto !important;
        }
        
        /* Remove the visual slit between first header row and filter row */
        .nt-live-sim-board-table thead tr:first-child th {
            border-bottom: 0 !important;
            padding-bottom: 5px !important;
        }
        
        .nt-live-sim-board-filter-row th {
            position: static !important;
            top: auto !important;
            border-top: 0 !important;
            padding-top: 0 !important;
            border-bottom: 1px solid var(--nt-border) !important;
        }
        
        /* Keep the whole scroll area visually filled */
        .nt-live-sim-board-scroll {
            background: #FFFFFF;
        }

        /* ===============================
           AltIndexer full-width explanation
        ================================ */
        
        .nt-model-preview-layout-full {
            grid-template-columns: 1fr !important;
        }
        
        .nt-model-preview-layout-full .nt-model-preview-card {
            width: 100%;
        }

        /* ===============================
           New homepage market hero
        =============================== */
        
        .nt-market-hero {
            position: relative;
            overflow: hidden;
            width: 100%;
            margin-bottom: 34px;
            border-radius: 24px;
            background:
                radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.22), transparent 34%),
                radial-gradient(circle at 92% 82%, rgba(147, 51, 234, 0.12), transparent 30%),
                linear-gradient(135deg, #0B1220 0%, #111C35 54%, #172554 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
        }
        
        .nt-market-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background:
                linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0.018) 1px,
                    transparent 1px
                ),
                linear-gradient(
                    rgba(255, 255, 255, 0.018) 1px,
                    transparent 1px
                );
            background-size: 42px 42px;
            mask-image: linear-gradient(to right, transparent, black 45%, black);
        }
        
        .nt-market-hero-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(390px, 0.92fr) minmax(620px, 1.48fr);
            gap: 36px;
            align-items: center;
            min-height: 510px;
            padding: 38px 40px;
        }
        
        .nt-market-hero-copy {
            min-width: 0;
        }
        
        .nt-market-hero-kicker {
            display: inline-flex;
            align-items: center;
            margin-bottom: 14px;
            padding: 6px 11px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.09);
            border: 1px solid rgba(255, 255, 255, 0.11);
            color: rgba(255, 255, 255, 0.76);
            font-size: 11px;
            line-height: 1.2;
            font-weight: 900;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        
        .nt-market-hero-title {
            margin: 0;
            max-width: 560px;
            color: #ffffff;
            font-size: clamp(38px, 4.1vw, 64px);
            line-height: 0.98;
            font-weight: 950;
            letter-spacing: -0.045em;
        }
        
        .nt-market-hero-subtitle {
            max-width: 590px;
            margin: 20px 0 0 0;
            color: rgba(255, 255, 255, 0.74);
            font-size: 16px;
            line-height: 1.65;
            font-weight: 600;
        }
        
        .nt-market-hero-actions {
            display: flex;
            align-items: center;
            gap: 11px;
            flex-wrap: wrap;
            margin-top: 24px;
        }
        
        .nt-market-hero-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 44px;
            padding: 10px 17px;
            border-radius: 999px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 900;
            transition:
                transform 0.16s ease,
                background 0.16s ease,
                border-color 0.16s ease,
                box-shadow 0.16s ease;
        }
        
        .nt-market-hero-btn:hover {
            transform: translateY(-1px);
        }
        
        .nt-market-hero-btn-primary {
            background: #ffffff;
            color: #0F172A;
            box-shadow: 0 7px 18px rgba(2, 6, 23, 0.18);
        }
        
        .nt-market-hero-btn-primary:hover {
            background: #EAF2FF;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
        }
        
        .nt-market-hero-btn-secondary {
            background: rgba(255, 255, 255, 0.07);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.18);
        }
        
        .nt-market-hero-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.28);
        }
        
        .nt-market-hero-disclaimer {
            max-width: 580px;
            margin: 15px 0 0 0;
            color: rgba(255, 255, 255, 0.48);
            font-size: 11px;
            line-height: 1.5;
            font-weight: 600;
        }
        
        /* Chart card */
        
        .nt-market-hero-chart-card {
            min-width: 0;
            padding: 18px;
            border-radius: 20px;
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.085),
                    rgba(255, 255, 255, 0.045)
                );
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 18px 34px rgba(2, 6, 23, 0.18);
            backdrop-filter: blur(8px);
        }
        
        .nt-market-hero-chart-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 12px;
        }
        
        .nt-market-hero-periods {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(2, 6, 23, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        
        .nt-market-hero-period {
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.55);
            border-radius: 999px;
            padding: 6px 9px;
            font-size: 11px;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        
        .nt-market-hero-period:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
        }
        
        .nt-market-hero-period.active {
            color: #ffffff;
            background: rgba(37, 99, 235, 0.88);
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.24);
        }
        
        .nt-market-hero-chart-shell {
            position: relative;
            width: 100%;
            height: 285px;
            overflow: hidden;
            border-radius: 16px;
            background:
                linear-gradient(
                    180deg,
                    rgba(2, 6, 23, 0.12),
                    rgba(2, 6, 23, 0.24)
                );
            border: 1px solid rgba(255, 255, 255, 0.07);
        }
        
        #nt-market-hero-chart {
            width: 100% !important;
            height: 100% !important;
        }
        
        .nt-market-hero-chart-loading {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.58);
            font-size: 12px;
            font-weight: 800;
            background: rgba(11, 18, 32, 0.18);
        }
        
        .nt-market-hero-chart-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 12px;
        }
        
        .nt-market-hero-legend {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        
        .nt-market-hero-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: rgba(255, 255, 255, 0.66);
            font-size: 11px;
            font-weight: 800;
        }
        
        .nt-market-hero-legend-line {
            width: 22px;
            height: 3px;
            border-radius: 999px;
        }
        
        .nt-market-hero-legend-ai {
            background: #60A5FA;
            box-shadow: 0 0 10px rgba(96, 165, 250, 0.55);
        }
        
        .nt-market-hero-legend-buyhold {
            height: 2px;
            background:
                repeating-linear-gradient(
                    90deg,
                    #C084FC 0 5px,
                    transparent 5px 8px
                );
        }
        
        .nt-market-hero-normalized {
            color: rgba(255, 255, 255, 0.44);
            font-size: 10px;
            line-height: 1.3;
            font-weight: 700;
        }
        
        /* Responsive */
        
        @media (max-width: 1100px) {
            .nt-market-hero-grid {
                grid-template-columns: 1fr;
                min-height: 0;
                gap: 30px;
            }
        
            .nt-market-hero-copy {
                max-width: 760px;
            }
        
            .nt-market-hero-title {
                max-width: 720px;
            }
        
            .nt-market-hero-chart-shell {
                height: 320px;
            }
        }
        
        @media (max-width: 700px) {
            .nt-market-hero {
                border-radius: 19px;
                margin-bottom: 26px;
            }
        
            .nt-market-hero-grid {
                padding: 24px 18px;
                gap: 24px;
            }
        
            .nt-market-hero-title {
                font-size: 38px;
                line-height: 1.02;
            }
        
            .nt-market-hero-subtitle {
                margin-top: 16px;
                font-size: 14px;
                line-height: 1.58;
            }
        
            .nt-market-hero-actions {
                align-items: stretch;
            }
        
            .nt-market-hero-btn {
                width: 100%;
            }
        
            .nt-market-hero-chart-card {
                padding: 13px;
                border-radius: 16px;
            }
        
            .nt-market-hero-chart-header {
                align-items: flex-start;
                flex-direction: column;
            }
        
            .nt-market-hero-periods {
                width: 100%;
                justify-content: space-between;
            }
        
            .nt-market-hero-period {
                flex: 1 1 0;
            }
        
            .nt-market-hero-chart-shell {
                height: 280px;
            }
        
            .nt-market-hero-chart-footer {
                align-items: flex-start;
                flex-direction: column;
            }
        }

        /* ===============================
           Hero visual column
        =============================== */
        
        .nt-market-hero-visual {
            width: 100%;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        
        /* Log scale toggle */
        
        .nt-market-hero-scale-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 34px;
            padding: 5px 9px 5px 11px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.09);
            background: rgba(2, 6, 23, 0.28);
            color: rgba(255, 255, 255, 0.72);
            font-size: 10px;
            font-weight: 850;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        
        .nt-market-hero-scale-toggle:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
        }
        
        .nt-market-hero-scale-switch {
            position: relative;
            display: inline-flex;
            align-items: center;
            width: 30px;
            height: 17px;
            padding: 2px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.28);
            transition: background 0.16s ease;
        }
        
        .nt-market-hero-scale-knob {
            width: 13px;
            height: 13px;
            border-radius: 999px;
            background: #ffffff;
            box-shadow: 0 1px 5px rgba(2, 6, 23, 0.35);
            transform: translateX(0);
            transition: transform 0.16s ease;
        }
        
        .nt-market-hero-scale-toggle.active {
            color: #ffffff;
            border-color: rgba(96, 165, 250, 0.30);
            background: rgba(37, 99, 235, 0.16);
        }
        
        .nt-market-hero-scale-toggle.active .nt-market-hero-scale-switch {
            background: #2563EB;
        }
        
        .nt-market-hero-scale-toggle.active .nt-market-hero-scale-knob {
            transform: translateX(13px);
        }
        
        /* ===============================
           Hero performance metrics
        =============================== */
        
        .nt-market-hero-metrics {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        
        .nt-market-hero-metric-card {
            min-width: 0;
            min-height: 100px;
            display: flex;
            align-items: center;
            gap: 13px;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            background:
                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.072),
                    rgba(255, 255, 255, 0.038)
                );
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.035),
                0 10px 22px rgba(2, 6, 23, 0.10);
        }
        
        .nt-market-hero-metric-icon {
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            font-size: 25px;
            font-weight: 900;
            background: rgba(15, 23, 42, 0.36);
        }
        
        .nt-market-hero-metric-copy {
            min-width: 0;
        }
        
        .nt-market-hero-metric-label {
            color: rgba(255, 255, 255, 0.60);
            font-size: 10px;
            line-height: 1.3;
            font-weight: 850;
            letter-spacing: 0.025em;
            text-transform: uppercase;
        }
        
        .nt-market-hero-metric-value {
            margin-top: 5px;
            font-size: clamp(23px, 2.1vw, 32px);
            line-height: 1;
            font-weight: 950;
            letter-spacing: -0.025em;
            font-variant-numeric: tabular-nums;
        }
        
        .nt-market-hero-metric-subtitle {
            margin-top: 6px;
            color: rgba(255, 255, 255, 0.45);
            font-size: 10px;
            line-height: 1.3;
            font-weight: 700;
        }
        
        /* AI card */
        
        .nt-market-hero-metric-ai .nt-market-hero-metric-icon {
            color: #60A5FA;
            border: 1px solid rgba(96, 165, 250, 0.55);
            box-shadow:
                inset 0 0 18px rgba(96, 165, 250, 0.09),
                0 0 15px rgba(96, 165, 250, 0.08);
        }
        
        .nt-market-hero-metric-ai .nt-market-hero-metric-value {
            color: #60A5FA;
        }
        
        /* Buy and hold card */
        
        .nt-market-hero-metric-buyhold .nt-market-hero-metric-icon {
            color: #C084FC;
            border: 1px solid rgba(192, 132, 252, 0.55);
            box-shadow:
                inset 0 0 18px rgba(192, 132, 252, 0.09),
                0 0 15px rgba(192, 132, 252, 0.08);
        }
        
        .nt-market-hero-metric-buyhold .nt-market-hero-metric-value {
            color: #C084FC;
        }
        
        /* Outperformance card */
        
        .nt-market-hero-metric-alpha .nt-market-hero-metric-icon {
            color: #86EFAC;
            border: 1px solid rgba(134, 239, 172, 0.55);
            box-shadow:
                inset 0 0 18px rgba(134, 239, 172, 0.09),
                0 0 15px rgba(134, 239, 172, 0.08);
        }
        
        .nt-market-hero-metric-alpha .nt-market-hero-metric-value {
            color: #86EFAC;
        }
        
        .nt-market-hero-metric-alpha.is-negative .nt-market-hero-metric-icon {
            color: #FCA5A5;
            border-color: rgba(252, 165, 165, 0.55);
        }
        
        .nt-market-hero-metric-alpha.is-negative .nt-market-hero-metric-value {
            color: #FCA5A5;
        }
        
        /* Responsive */
        
        @media (max-width: 1200px) {
            .nt-market-hero-metric-card {
                padding: 13px;
            }
        
            .nt-market-hero-metric-icon {
                width: 42px;
                height: 42px;
                flex-basis: 42px;
                font-size: 21px;
            }
        }
        
        @media (max-width: 850px) {
            .nt-market-hero-metrics {
                grid-template-columns: 1fr;
            }
        }

        /* ===============================
           Hero asset selector
        =============================== */
        
        .nt-market-hero-chart-header {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            grid-template-areas:
                "assets assets periods"
                "more title scale";
            gap: 10px 16px;
            align-items: center;
            margin-bottom: 12px;
        }

        .nt-market-hero-assets {
            grid-area: assets;
            justify-self: start;
        }
        
        .nt-market-hero-periods {
            grid-area: periods;
            justify-self: end;
        }
        
        .nt-market-hero-more-assets {
            grid-area: more;
            justify-self: start;
        }
        
        .nt-market-hero-performance-title {
            grid-area: title;
            justify-self: center;
            width: 100%;
            max-width: none;
            padding: 0 16px;
            color: rgba(255, 255, 255, 0.88);
            font-size: 13px;
            line-height: 1.35;
            font-weight: 850;
            text-align: center;
            white-space: nowrap;
            pointer-events: none;
        }
        
        .nt-market-hero-scale-toggle {
            grid-area: scale;
            justify-self: end;
        }
        
        .nt-market-hero-assets {
            display: flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
            flex-wrap: wrap;
        }
        
        .nt-market-hero-asset-btn,
        .nt-market-hero-more-assets {
            min-width: 0;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 6px 11px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.09);
            background: rgba(2, 6, 23, 0.20);
            color: rgba(255, 255, 255, 0.52);
            font-size: 11px;
            line-height: 1;
            font-weight: 850;
            cursor: pointer;
            white-space: nowrap;
            opacity: 0.72;
            transition:
                opacity 0.16s ease,
                color 0.16s ease,
                background 0.16s ease,
                border-color 0.16s ease,
                box-shadow 0.16s ease,
                transform 0.16s ease;
        }
        
        .nt-market-hero-asset-btn:hover {
            opacity: 1;
            color: #ffffff;
            background: rgba(255, 255, 255, 0.075);
            border-color: rgba(255, 255, 255, 0.17);
            transform: translateY(-1px);
        }
        
        .nt-market-hero-asset-btn.active {
            opacity: 1;
            color: #ffffff;
            background:
                linear-gradient(
                    180deg,
                    rgba(37, 99, 235, 0.17),
                    rgba(37, 99, 235, 0.07)
                );
            border-color: rgba(59, 130, 246, 0.92);
            box-shadow:
                0 0 0 1px rgba(59, 130, 246, 0.13),
                0 5px 14px rgba(37, 99, 235, 0.16);
        }
        
        .nt-market-hero-coin-icon {
            width: 25px;
            height: 25px;
            flex: 0 0 25px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 950;
        }
        
        /* BTC */
        
        .nt-coin-btc {
            background: linear-gradient(135deg, #F59E0B, #F97316);
            color: #ffffff;
        }

        .nt-coin-eth {
            padding: 4px 6px;
            background: rgba(99, 102, 241, 0.10);
            overflow: visible;
        }
        
        .nt-coin-eth svg {
            display: block;
            width: 13px;
            height: 21px;
            overflow: visible;
        }
        
        .nt-eth-top-left {
            fill: #8C8C8C;
        }
        
        .nt-eth-top-right {
            fill: #F0F0F0;
        }
        
        .nt-eth-bottom-left {
            fill: #8C8C8C;
        }
        
        .nt-eth-bottom-right {
            fill: #F0F0F0;
        }
        
        .nt-eth-center-left {
            fill: #393939;
        }
        
        .nt-eth-center-right {
            fill: #8C8C8C;
        }
        
        .nt-market-hero-asset-btn.active .nt-coin-eth {
            background: rgba(99, 102, 241, 0.18);
        }
        
        .nt-market-hero-asset-btn.active .nt-eth-top-left,
        .nt-market-hero-asset-btn.active .nt-eth-bottom-left {
            fill: #A5B4FC;
        }
        
        .nt-market-hero-asset-btn.active .nt-eth-top-right,
        .nt-market-hero-asset-btn.active .nt-eth-bottom-right {
            fill: #E0E7FF;
        }
        
        .nt-market-hero-asset-btn.active .nt-eth-center-left {
            fill: #6366F1;
        }
        
        .nt-market-hero-asset-btn.active .nt-eth-center-right {
            fill: #818CF8;
        }
        
        /* SOL */
        
        .nt-coin-sol {
            flex-direction: column;
            gap: 2px;
            padding: 5px 4px;
            background: rgba(15, 23, 42, 0.70);
        }
        
        .nt-coin-sol span {
            display: block;
            width: 16px;
            height: 3px;
            border-radius: 999px;
            transform: skewX(-28deg);
        }
        
        .nt-coin-sol span:nth-child(1) {
            background: linear-gradient(90deg, #5EEAD4, #8B5CF6);
        }
        
        .nt-coin-sol span:nth-child(2) {
            background: linear-gradient(90deg, #8B5CF6, #22D3EE);
        }
        
        .nt-coin-sol span:nth-child(3) {
            background: linear-gradient(90deg, #22D3EE, #A855F7);
        }
        
        /* XRP */
        
        .nt-coin-xrp {
            color: #E2E8F0;
            background: rgba(148, 163, 184, 0.10);
            font-size: 15px;
        }
        
        /* More assets */
        
        .nt-market-hero-more-assets {
            opacity: 1;
            color: #93C5FD;
            background: rgba(37, 99, 235, 0.075);
            border-color: rgba(59, 130, 246, 0.55);
            padding-left: 13px;
            padding-right: 13px;
        }
        
        .nt-market-hero-more-assets:hover {
            color: #ffffff;
            background: rgba(37, 99, 235, 0.17);
            border-color: rgba(96, 165, 250, 0.92);
            transform: translateY(-1px);
        }
        
        /* Responsive */
        
        @media (max-width: 1370px) {
            .nt-market-hero-chart-header {
                align-items: flex-start;
                flex-direction: column;
            }
        }
        
        @media (max-width: 800px) {
            .nt-market-hero-assets {
                width: 100%;
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        
            .nt-market-hero-asset-btn,
            .nt-market-hero-more-assets {
                width: 100%;
            }
        
            .nt-market-hero-more-assets {
                grid-column: 1 / -1;
            }
        }

        /* ==================================================
           FINAL HERO HEADER ALIGNMENT
           Keep title centered relative to the full chart card
        ================================================== */
        
        @media (min-width: 1151px) {
            .nt-market-hero-chart-header {
                position: relative !important;
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) auto !important;
                grid-template-areas:
                    "assets periods"
                    "more scale" !important;
                gap: 10px 16px !important;
                align-items: center !important;
            }
        
            .nt-market-hero-assets {
                grid-area: assets !important;
                justify-self: start !important;
            }
        
            .nt-market-hero-periods {
                grid-area: periods !important;
                justify-self: end !important;
            }
        
            .nt-market-hero-more-assets {
                grid-area: more !important;
                justify-self: start !important;
            }
        
            .nt-market-hero-scale-toggle {
                grid-area: scale !important;
                justify-self: end !important;
            }
        
            .nt-market-hero-performance-title {
                position: absolute !important;
                left: 50% !important;
                bottom: 9px !important;
                transform: translateX(-50%) !important;
        
                width: max-content !important;
                max-width: calc(100% - 250px) !important;
                padding: 0 !important;
                margin: 0 !important;
        
                text-align: center !important;
                white-space: nowrap !important;
                pointer-events: none !important;
            }
        }

        /* ==================================================
           FINAL HOMEPAGE HERO POLISH
        ================================================== */
        
        /* Slightly rebalance the two hero columns */
        @media (min-width: 1101px) {
            .nt-market-hero-grid {
                grid-template-columns:
                    minmax(400px, 0.95fr)
                    minmax(650px, 1.45fr) !important;
        
                gap: 32px !important;
                padding: 34px 36px !important;
            }
        }
        
        /* Give the copy a little more breathing room */
        .nt-market-hero-copy {
            padding-top: 2px;
        }
        
        .nt-market-hero-title {
            margin: 0 !important;
        }
        
        .nt-market-hero-subtitle {
            margin-top: 26px !important;
            max-width: 570px;
        }
        
        /* Strengthen the CTA hierarchy */
        .nt-market-hero-actions {
            margin-top: 24px !important;
            gap: 12px !important;
        }
        
        .nt-market-hero-btn-primary {
            min-height: 46px;
            padding: 11px 19px;
            background: #ffffff !important;
            color: #0F172A !important;
            border: 1px solid #ffffff;
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.22);
        }
        
        .nt-market-hero-btn-primary:hover {
            background: #EFF6FF !important;
            transform: translateY(-1px);
            box-shadow: 0 11px 25px rgba(2, 6, 23, 0.27);
        }
        
        .nt-market-hero-btn-secondary {
            min-height: 46px;
            padding: 11px 18px;
            background: transparent !important;
            color: rgba(255, 255, 255, 0.90) !important;
            border: 1px solid rgba(255, 255, 255, 0.28) !important;
            box-shadow: none !important;
        }
        
        .nt-market-hero-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(255, 255, 255, 0.44) !important;
            color: #ffffff !important;
        }
        
        /* Make the chart more visually dominant */
        .nt-market-hero-chart-shell {
            height: 315px !important;
        }
        
        /* Slightly enlarge the performance cards */
        .nt-market-hero-metrics {
            gap: 13px !important;
        }
        
        .nt-market-hero-metric-card {
            min-height: 108px !important;
            padding: 16px 18px !important;
            gap: 14px !important;
        }
        
        .nt-market-hero-metric-icon {
            width: 52px !important;
            height: 52px !important;
            flex-basis: 52px !important;
            font-size: 25px !important;
        }
        
        .nt-market-hero-metric-value {
            margin-top: 6px !important;
            font-size: clamp(25px, 2.15vw, 34px) !important;
        }
        
        .nt-market-hero-metric-label {
            font-size: 10.5px !important;
        }
        
        .nt-market-hero-metric-subtitle {
            margin-top: 7px !important;
            font-size: 10.5px !important;
        }
        
        /* Keep tablet layout comfortable */
        @media (max-width: 1100px) {
            .nt-market-hero-grid {
                gap: 28px !important;
            }
        
            .nt-market-hero-chart-shell {
                height: 320px !important;
            }
        }
        
        /* Avoid making mobile unnecessarily tall */
        @media (max-width: 700px) {
            .nt-market-hero-subtitle {
                margin-top: 18px !important;
            }
        
            .nt-market-hero-chart-shell {
                height: 280px !important;
            }
        
            .nt-market-hero-metric-card {
                min-height: 98px !important;
                padding: 14px !important;
            }
        
            .nt-market-hero-metric-icon {
                width: 46px !important;
                height: 46px !important;
                flex-basis: 46px !important;
                font-size: 22px !important;
            }
        }

        /* Premium hero chart legend */

        .nt-market-hero-legend-ai {
            height: 3px !important;
            background: #6BB6FF !important;
            box-shadow:
                0 0 8px rgba(107, 182, 255, 0.65),
                0 0 15px rgba(107, 182, 255, 0.28) !important;
        }
        
        .nt-market-hero-legend-buyhold {
            height: 2px !important;
            opacity: 0.78;
            background:
                repeating-linear-gradient(
                    90deg,
                    rgba(216, 180, 254, 0.82) 0 6px,
                    transparent 6px 10px
                ) !important;
        }

        /* Clean spacing between hero and products */
        
        .nt-market-hero {
            margin-bottom: 34px;
        }
        
        .nt-models-section {
            margin-top: 0;
        }

        /* ==================================================
           PRODUCT-STYLE MODEL SELECTOR
        ================================================== */
        
        .nt-model-layout {
            display: block !important;
        }
        
        .nt-model-sidebar {
            display: none !important;
        }
        
        .nt-model-content {
            width: 100%;
            min-width: 0;
        }
        
        .nt-product-selector {
            width: 100%;
            margin: 0 0 24px 0;
        }

        .nt-product-card-grid {
            display: grid !important;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px !important;
            width: 100%;
            margin: 0 !important;
            padding: 0 !important;
            overflow: visible !important;
        }
        
        .nt-product-card {
            position: relative;
            width: 100% !important;
            min-width: 0 !important;
            min-height: 236px;
        
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            justify-content: space-between !important;
        
            padding: 18px !important;
            border-radius: 18px !important;
        
            border: 1px solid var(--nt-border) !important;
            background:
                linear-gradient(
                    180deg,
                    #FFFFFF 0%,
                    #F8FAFC 100%
                ) !important;
        
            color: var(--nt-dark) !important;
            text-align: left !important;
        
            box-shadow:
                0 3px 14px rgba(15, 23, 42, 0.055);
        
            cursor: pointer;
            overflow: hidden;
        
            transition:
                transform 0.18s ease,
                border-color 0.18s ease,
                box-shadow 0.18s ease,
                background 0.18s ease !important;
        }
        
        .nt-product-card::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0;
            background:
                radial-gradient(
                    circle at top right,
                    rgba(37, 99, 235, 0.13),
                    transparent 38%
                );
            transition: opacity 0.18s ease;
        }
        
        .nt-product-card:hover {
            transform: translateY(-3px) !important;
            border-color: rgba(37, 99, 235, 0.28) !important;
            box-shadow:
                0 12px 26px rgba(15, 23, 42, 0.10) !important;
        }
        
        .nt-product-card:hover::before {
            opacity: 1;
        }

        .nt-product-card.active {
            color: #FFFFFF !important;
            border-color: rgba(96, 165, 250, 0.58) !important;
        
            background:
                radial-gradient(
                    circle at top right,
                    rgba(59, 130, 246, 0.30),
                    transparent 42%
                ),
                linear-gradient(
                    145deg,
                    #0F172A 0%,
                    #172554 100%
                ) !important;
        
            box-shadow:
                0 16px 32px rgba(15, 23, 42, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
        
            transform: translateY(-2px);
        }
        
        .nt-product-card.active::before {
            opacity: 0;
        }
        
        .nt-product-card.active::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -13px;
            transform: translateX(-50%);
        
            width: 0;
            height: 0;
        
            border-left: 13px solid transparent;
            border-right: 13px solid transparent;
            border-top: 13px solid #172554;
        }
        
        .nt-product-card.active .nt-product-card-icon {
            color: #FFFFFF;
            background: rgba(255, 255, 255, 0.13);
            border: 1px solid rgba(255, 255, 255, 0.10);
        }
        
        .nt-product-card-name {
            font-size: 20px;
            line-height: 1.2;
            font-weight: 950;
            letter-spacing: -0.02em;
        }
        
        .nt-product-card-category {
            margin-top: 5px;
        
            color: var(--nt-blue);
            font-size: 11px;
            line-height: 1.25;
            font-weight: 900;
            letter-spacing: 0.055em;
            text-transform: uppercase;
        }
        
        .nt-product-card.active .nt-product-card-category {
            color: #93C5FD;
        }
        
        .nt-product-card-description {
            margin: 11px 0 0 0 !important;
        
            color: var(--nt-neutral) !important;
            font-size: 13px !important;
            line-height: 1.55 !important;
            font-weight: 600 !important;
        }
        
        .nt-product-card.active .nt-product-card-description {
            color: rgba(255, 255, 255, 0.70) !important;
        }
        
        .nt-product-card.active .nt-product-card-footer {
            border-top-color: rgba(255, 255, 255, 0.12);
        }
        
        .nt-product-card.active .nt-product-card-action,
        .nt-product-card.active .nt-product-card-arrow {
            color: #FFFFFF;
        }

        .nt-product-card .nt-model-status-badge {
            position: relative;
            z-index: 1;
        }
        
        .nt-product-card.active .nt-model-status-badge {
            color: #FFFFFF !important;
            background: rgba(255, 255, 255, 0.14) !important;
            border-color: rgba(255, 255, 255, 0.20) !important;
        }

        @media (max-width: 1050px) {
        .nt-product-card-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    
        .nt-product-card:last-child {
            grid-column: 1 / -1;
            min-height: 210px;
        }
    }
    
    @media (max-width: 700px) {
        .nt-product-card-grid {
            grid-template-columns: 1fr;
        }
    
        .nt-product-card,
        .nt-product-card:last-child {
            grid-column: auto;
            min-height: 0;
        }
    
        .nt-product-card.active::after {
            display: none;
        }
    }

    /* Hero metrics without icons */

    .nt-market-hero-metric-card {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .nt-market-hero-metric-copy {
        width: 100%;
    }
    
    .nt-market-hero-metric-label {
        text-align: center;
    }
    
    .nt-market-hero-metric-value {
        text-align: center;
    }
    
    .nt-market-hero-metric-subtitle {
        text-align: center;
    }

    /* ==================================================
       COMPACT PRODUCT MODEL CARDS
    ================================================== */
    
    .nt-product-card {
        min-height: 165px !important;
        padding: 18px !important;
        justify-content: flex-start !important;
    }
    
    .nt-product-card-heading {
        position: relative;
        z-index: 1;
    
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .nt-product-card-name {
        min-width: 0;
        font-size: 20px;
        line-height: 1.2;
        font-weight: 950;
        letter-spacing: -0.02em;
    }
    
    .nt-product-card-category {
        position: relative;
        z-index: 1;
    
        margin-top: 8px;
    
        color: var(--nt-blue);
        font-size: 11px;
        line-height: 1.25;
        font-weight: 900;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }
    
    .nt-product-card-description {
        position: relative;
        z-index: 1;
    
        margin: 12px 0 0 0 !important;
    
        color: var(--nt-neutral) !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        font-weight: 600 !important;
    }
    
    .nt-product-card.active .nt-product-card-category {
        color: #93C5FD;
    }
    
    .nt-product-card.active .nt-product-card-description {
        color: rgba(255, 255, 255, 0.72) !important;
    }

    /* Final selected product-card pointer fix */

    @media (min-width: 701px) {
        .nt-product-card.active::after {
            left: 50% !important;
            right: auto !important;
            top: auto !important;
            bottom: -13px !important;
            transform: translateX(-50%) !important;
    
            width: 0 !important;
            height: 0 !important;
    
            border-top: 13px solid #172554 !important;
            border-right: 13px solid transparent !important;
            border-bottom: 0 !important;
            border-left: 13px solid transparent !important;
        }
    }

    /* ==================================================
       MODEL SELECTOR → DASHBOARD CONTINUITY
    ================================================== */
    
    .nt-product-selector {
        position: relative;
        z-index: 2;
        margin-bottom: 18px !important;
    }
    
    .nt-model-content {
        position: relative;
        z-index: 1;
        padding: 18px;
        border: 1px solid var(--nt-border);
        border-radius: 20px;
        background:
            linear-gradient(
                180deg,
                #F8FAFC 0%,
                #FFFFFF 150px
            );
        box-shadow:
            0 8px 24px rgba(15, 23, 42, 0.055);
    }

    .nt-model-content > .nt-model-panel {
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .nt-model-panel > .nt-model-panel-header:first-child {
        padding: 16px 16px 0 16px !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .nt-model-panel > .nt-model-summary-grid {
        padding: 0 16px 16px 16px !important;
        margin-bottom: 18px !important;
        border-radius: 0 0 16px 16px !important;
    }
    
    .nt-model-panel-title {
        font-size: 20px !important;
    }
    
    .nt-model-panel-description {
        max-width: 900px;
    }

    .nt-product-card-grid {
        margin-bottom: 0 !important;
    }
    
    .nt-epoch-subworkspace {
        margin-top: 16px !important;
    }

    @media (min-width: 701px) {
        .nt-product-card.active::after {
            border-top-color: #CBD5E1 !important;
            filter: drop-shadow(0 2px 1px rgba(15, 23, 42, 0.08));
        }
    }

    @media (max-width: 700px) {
        .nt-model-content {
            padding: 12px;
            border-radius: 16px;
        }
    
        .nt-product-selector {
            margin-bottom: 14px !important;
        }
    
        .nt-model-panel > .nt-model-panel-header:first-child {
            padding: 14px 14px 0 14px !important;
        }
    
        .nt-model-panel > .nt-model-summary-grid {
            padding: 0 14px 14px 14px !important;
        }
    }

/* ==================================================
   ACCOUNT MENU + AUTHENTICATED PASSWORD CHANGE
================================================== */

.nt-account-menu {
    position: relative;
    cursor: default;
}

.nt-account-trigger {
    max-width: 260px;
    min-height: 42px;
    border: 0;
    font: inherit;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.nt-account-trigger-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.nt-account-trigger-email {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nt-account-trigger .arrow {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 12px;
    transition: transform 0.16s ease;
}

.nt-account-menu.is-open .nt-account-trigger .arrow {
    transform: rotate(180deg);
}

.nt-account-trigger:focus-visible,
.nt-account-menu-action:focus-visible,
.nt-account-modal button:focus-visible,
.nt-account-modal input:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.34) !important;
    outline-offset: 2px;
}

.dropdown.nt-account-dropdown {
    position: absolute;
    z-index: 1600;
    top: calc(100% + 10px);
    right: 0;
    width: min(310px, calc(100vw - 28px));
    min-width: 280px;
    padding: 8px;
    overflow: visible;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.18),
        0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: default;
}

.dropdown.nt-account-dropdown[hidden] {
    display: none !important;
}

.dropdown.nt-account-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 22px;
    width: 11px;
    height: 11px;
    border-top: 1px solid rgba(226, 232, 240, 0.96);
    border-left: 1px solid rgba(226, 232, 240, 0.96);
    background: #ffffff;
    transform: rotate(45deg);
}

/* Neutralize the legacy .dropdown div rules for the new structured menu. */
.dropdown.nt-account-dropdown div {
    padding: 0;
    cursor: default;
    background: transparent;
}

.dropdown.nt-account-dropdown div:hover {
    background: transparent;
}

.nt-account-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 9px !important;
}

.nt-account-menu-header-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.nt-account-menu-header-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nt-account-menu-email {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nt-account-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 46px;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nt-account-plan-badge.is-free {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.nt-account-plan-badge.is-pro {
    border: 1px solid rgba(37, 99, 235, 0.20);
    background: #eff6ff;
    color: #1d4ed8;
}

.nt-account-menu-divider {
    height: 1px;
    margin: 5px 4px;
    background: #e8edf4 !important;
}

.nt-account-menu-section-label {
    padding: 7px 10px 4px !important;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dropdown .nt-account-menu-action {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #1e293b;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.14s ease,
        color 0.14s ease,
        transform 0.14s ease;
}

.dropdown .nt-account-menu-action:hover {
    background: #f4f7fb;
    transform: translateX(1px);
}

.nt-account-menu-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
}

.nt-account-menu-action-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.nt-account-menu-action-label {
    color: inherit;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.25;
}

.nt-account-menu-action-description {
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.3;
}

.dropdown .nt-account-menu-action-danger {
    color: #b91c1c;
}

.dropdown .nt-account-menu-action-danger:hover {
    background: #fff1f2;
}

.nt-account-menu-action-danger .nt-account-menu-icon {
    background: #fff1f2;
    color: #dc2626;
}

body.nt-account-modal-open {
    overflow: hidden;
}

.nt-account-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(5px);
}

.nt-account-modal.is-open {
    display: flex;
}

.nt-account-modal-panel {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.30);
}

.nt-account-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.nt-account-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nt-account-modal-kicker {
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nt-account-modal h3 {
    margin: 0;
    padding-right: 34px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.nt-account-modal-copy {
    margin: 10px 0 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.nt-account-modal form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nt-account-modal label {
    margin-top: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.nt-account-modal input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    transition:
        border-color 0.14s ease,
        box-shadow 0.14s ease;
}

.nt-account-modal input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.nt-account-password-help {
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
}

.nt-account-modal-message {
    min-height: 20px;
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.nt-account-modal-message.is-error {
    color: #b91c1c;
}

.nt-account-modal-message.is-success {
    color: #15803d;
}

.nt-account-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.nt-account-modal-actions button {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.nt-account-modal-secondary {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.nt-account-modal-secondary:hover {
    background: #f8fafc;
}

.nt-account-modal-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.nt-account-modal-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.nt-account-modal-primary:disabled {
    cursor: wait;
    opacity: 0.68;
}

@media (max-width: 700px) {
    .nt-account-trigger {
        max-width: 190px;
    }

    .dropdown.nt-account-dropdown {
        position: fixed;
        top: 72px;
        right: 12px;
        width: min(310px, calc(100vw - 24px));
        min-width: 0;
    }

    .dropdown.nt-account-dropdown::before {
        display: none;
    }

    .nt-account-modal-panel {
        padding: 24px 18px 20px;
        border-radius: 17px;
    }

    .nt-account-modal-actions {
        flex-direction: column-reverse;
    }

    .nt-account-modal-actions button {
        width: 100%;
    }
}

/* ==================================================
   MAX HORIZON + MAIN MODEL ACTIVE POINTER
================================================== */

/* The extra MAX option can wrap cleanly on narrower dashboard widths. */
#period-pill-group {
    flex-wrap: wrap;
    border-radius: 16px;
}

/* Keep the selected model card's downward pointer visible. The card previously
   clipped its own pseudo-element because it used overflow:hidden. */
@media (min-width: 701px) {
    .nt-product-card.active {
        overflow: visible !important;
    }

    .nt-product-card.active::after {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: -13px !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-left: 13px solid transparent !important;
        border-right: 13px solid transparent !important;
        border-bottom: 0 !important;
        border-top: 13px solid var(--nt-dark) !important;
        filter: drop-shadow(0 2px 1px rgba(15, 23, 42, 0.10));
        z-index: 8 !important;
        pointer-events: none;
    }
}

@media (max-width: 700px) {
    #period-pill-group {
        width: 100%;
    }
}

/* ==================================================
   TRUST STEP 2 — RISK METRIC PRESENTATION
================================================== */

.nt-risk-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.nt-risk-metric-card {
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--nt-border);
    border-radius: 12px;
    background: #f8fafc;
}

.nt-risk-metric-label {
    color: var(--nt-neutral);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.nt-risk-metric-value {
    margin-top: 6px;
    color: var(--nt-dark);
    font-size: 20px;
    font-weight: 850;
    line-height: 1.15;
}

.nt-risk-metric-sub {
    margin-top: 5px;
    color: var(--nt-neutral);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.nt-preview-risk-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 12px;
}

.nt-preview-risk-grid article {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--nt-border);
    border-radius: 11px;
    background: #f8fafc;
}

.nt-preview-risk-grid span {
    display: block;
    color: var(--nt-neutral);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nt-preview-risk-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--nt-dark);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
}

.nt-backtest-risk-section {
    margin: 18px 0 16px;
    padding: 16px;
    border: 1px solid var(--nt-border);
    border-radius: 14px;
    background: #f8fafc;
}

.nt-backtest-risk-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.nt-backtest-risk-heading h4 {
    margin: 3px 0 0;
    color: var(--nt-dark);
    font-size: 16px;
    font-weight: 850;
}

.nt-backtest-risk-heading p {
    max-width: 500px;
    margin: 0;
    color: var(--nt-neutral);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
}

.nt-backtest-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nt-result-card-risk {
    box-shadow: none;
}

.nt-result-card-risk .nt-result-value {
    font-size: 21px;
}

@media (max-width: 1000px) {
    .nt-risk-metric-grid,
    .nt-preview-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nt-backtest-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nt-risk-metric-grid,
    .nt-preview-risk-grid,
    .nt-backtest-risk-grid {
        grid-template-columns: 1fr;
    }

    .nt-backtest-risk-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .nt-backtest-risk-heading p {
        text-align: left;
    }
}

/* ==================================================
   TRUST STEP 3 — DATA FRESHNESS
================================================== */
.nt-data-freshness-strip,
.nt-live-sim-freshness-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin: -3px 0 12px;
    padding: 8px 10px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 11px;
    background: #F8FAFC;
    color: #475569;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 650;
}

.nt-data-freshness-strip strong,
.nt-live-sim-freshness-strip strong {
    color: #0F172A;
    font-weight: 850;
}

.nt-data-freshness-divider {
    color: #94A3B8;
}

.nt-freshness-badge,
.nt-inline-freshness {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 850;
    letter-spacing: 0.01em;
}

.nt-freshness-badge {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 10px;
}

.nt-inline-freshness {
    padding: 1px 6px;
    font-size: inherit;
}

.nt-freshness-current {
    color: #166534 !important;
    background: #ECFDF3 !important;
    border-color: #BBF7D0 !important;
}

.nt-freshness-delayed {
    color: #92400E !important;
    background: #FFFBEB !important;
    border-color: #FDE68A !important;
}

.nt-freshness-stale {
    color: #991B1B !important;
    background: #FEF2F2 !important;
    border-color: #FECACA !important;
}

.nt-freshness-unknown {
    color: #475569 !important;
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

.signal-ticker-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
}

.signal-freshness-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 150px;
    color: #64748B;
    background: transparent !important;
    border: 0 !important;
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signal-freshness-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: currentColor;
}

.nt-preview-freshness-chip strong {
    line-height: 1;
}

.nt-market-hero-footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

.nt-market-hero-freshness {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 800;
}

.nt-market-hero-freshness.nt-freshness-current {
    color: #BBF7D0 !important;
    border-color: rgba(74, 222, 128, 0.26) !important;
    background: rgba(22, 163, 74, 0.14) !important;
}

.nt-market-hero-freshness.nt-freshness-delayed {
    color: #FDE68A !important;
    border-color: rgba(250, 204, 21, 0.26) !important;
    background: rgba(202, 138, 4, 0.14) !important;
}

.nt-market-hero-freshness.nt-freshness-stale {
    color: #FECACA !important;
    border-color: rgba(248, 113, 113, 0.28) !important;
    background: rgba(220, 38, 38, 0.14) !important;
}

.nt-live-sim-freshness-strip {
    margin: 9px 0 12px;
}

@media (max-width: 700px) {
    .nt-data-freshness-strip,
    .nt-live-sim-freshness-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .nt-data-freshness-divider {
        display: none;
    }

    .nt-market-hero-footer-meta {
        align-items: flex-start;
        text-align: left;
    }
}
