        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            line-height: 1.6;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow-x: hidden;
        }

        .header {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            color: white;
            padding: 50px 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.2em;
            margin-bottom: 10px;
        }

        .header .subtitle {
            font-size: 1.1em;
            opacity: 0.9;
        }

        /* Header Logo Styles */
        .header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 25px;
            flex-wrap: nowrap;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .header-logo {
            height: 95px;
            width: auto;
        }

        .header-content a {
            display: flex;
            align-items: center;
        }

        .header-text {
            text-align: left;
        }

        .header-text h1 {
            margin: 0 0 8px 0;
        }

        /* Footer Styles */
        .footer {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-top: 3px solid #3b82f6;
            padding: 25px 20px;
            margin-top: 40px;
        }

        .footer-content {
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
        }


        .footer-text {
            text-align: center;
        }

        .footer-credit {
            margin: 0 0 5px 0;
            color: #334155;
            font-size: 0.95em;
        }

        .footer-link {
            margin: 0;
        }

        .footer-link a {
            color: #3b82f6;
            text-decoration: none;
            font-weight: 600;
        }

        .footer-link a:hover {
            color: #1e3a8a;
            text-decoration: underline;
        }

        .footer-social {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 8px;
        }

        .footer-social a {
            color: #6b7280;
            transition: color 0.2s ease;
            display: inline-flex;
            line-height: 0;
        }

        .footer-social a:hover {
            color: #3b82f6;
        }

        .footer-social svg {
            width: 24px;
            height: 24px;
            display: block;
        }

        .progress-bar {
            background: #e5e7eb;
            height: 8px;
            position: relative;
        }

        .progress-fill {
            background: linear-gradient(90deg, #10b981 0%, #059669 100%);
            height: 100%;
            transition: width 0.5s ease;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            padding: 10px 30px;
            background: #f9fafb;
            font-size: 0.85em;
            color: #6b7280;
        }

        .progress-step {
            text-align: center;
            flex: 1;
        }

        .progress-step.active {
            color: #1e3a8a;
            font-weight: bold;
        }

        .progress-step.completed {
            color: #10b981;
        }

        .mobile-step-label {
            display: none;
        }

        .mobile-table-toggle {
            display: none;
        }

        .status-heatmap-table tbody tr:hover {
            outline: 2px solid #3b82f6;
            outline-offset: -1px;
            cursor: default;
        }
        .status-heatmap-table tbody tr.active-row {
            outline: 2px solid #3b82f6;
            outline-offset: -1px;
        }

        .content {
            padding: 40px;
        }

        .step {
            display: none;
        }

        .step.active {
            display: block;
            animation: fadeIn 0.5s;
        }

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

        @keyframes slideScaleIn {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .funding-confirm {
            animation: slideScaleIn 0.35s ease-out;
        }

        .step-title {
            font-size: 1.8em;
            color: #1e3a8a;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .emoji {
            font-size: 1.2em;
        }

        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            border-radius: 50%;
            font-size: 1.1em;
            font-weight: 700;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

        .step-content {
            color: #374151;
            font-size: 1.05em;
        }

        /* Preset Buttons */
        .preset-buttons {
            display: flex;
            gap: 15px;
            margin: 25px 0;
            flex-wrap: wrap;
        }

        .preset-btn {
            flex: 1;
            min-width: 150px;
            padding: 15px 20px;
            border: 3px solid #e5e7eb;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .preset-btn:hover {
            border-color: #3b82f6;
            transform: translateY(-2px);
        }

        .preset-btn.active {
            border-color: #10b981;
            background: #f0fdf4;
        }

        .preset-btn.worst {
            border-color: #fecaca;
        }
        .preset-btn.worst:hover, .preset-btn.worst.active {
            border-color: #ef4444;
            background: #fef2f2;
        }

        .preset-btn.realistic {
            border-color: #fde68a;
        }
        .preset-btn.realistic:hover, .preset-btn.realistic.active {
            border-color: #f59e0b;
            background: #fffbeb;
        }

        .preset-btn.best {
            border-color: #bbf7d0;
        }
        .preset-btn.best:hover, .preset-btn.best.active {
            border-color: #10b981;
            background: #f0fdf4;
        }

        .preset-btn-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 5px;
        }

        .preset-btn-desc {
            font-size: 0.85em;
            color: #6b7280;
        }

        /* Slider Styling */
        .slider-group {
            margin: 20px 0;
            padding: 20px;
            background: #f9fafb;
            border-radius: 12px;
        }

        .slider-group-title {
            font-weight: bold;
            color: #1e3a8a;
            margin-bottom: 15px;
            font-size: 1.1em;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
        }

        .slider-group-title:hover {
            color: #2563eb;
        }

        .slider-group-title .chevron {
            transition: transform 0.3s;
            font-size: 0.8em;
        }

        .slider-group.collapsed .slider-group-title .chevron {
            transform: rotate(-90deg);
        }

        .slider-group.collapsed .slider-group-content {
            display: none;
        }

        .slider-row {
            display: flex;
            align-items: center;
            margin: 15px 0;
            gap: 15px;
        }

        .slider-label {
            flex: 0 0 200px;
            font-size: 0.95em;
            color: #374151;
        }

        .slider-container {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        input[type="range"] {
            flex: 1;
            height: 8px;
            border-radius: 4px;
            background: #e5e7eb;
            outline: none;
            -webkit-appearance: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #3b82f6;
            cursor: pointer;
            transition: all 0.2s;
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            background: #2563eb;
        }

        .slider-value {
            flex: 0 0 100px;
            text-align: right;
            font-weight: bold;
            color: #1e3a8a;
            font-size: 1.05em;
        }

        /* Highlight Boxes */
        .highlight-box {
            background: #f0f9ff;
            border-left: 4px solid #3b82f6;
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
        }

        .highlight-box.success {
            background: #f0fdf4;
            border-left-color: #10b981;
        }

        .highlight-box.warning {
            background: #fef3c7;
            border-left-color: #f59e0b;
        }

        .highlight-box.danger {
            background: #fef2f2;
            border-left-color: #ef4444;
        }

        /* Reality box row - responsive flex for "Reality for Each PCP" sections */
        .reality-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        /* Stat Cards */
        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .stat-card {
            background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
        }

        .stat-card.highlight {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        }

        .stat-card.success {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        }

        .stat-card.warning {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        }

        .stat-card.danger {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        }

        .stat-label {
            font-size: 0.85em;
            color: #6b7280;
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 1.6em;
            font-weight: bold;
            color: #1e3a8a;
        }

        .stat-value.success { color: #059669; }
        .stat-value.danger { color: #dc2626; }
        .stat-value.warning { color: #d97706; }

        /* Color-blind secondary indicators (scoped to active step to avoid a11y tree noise) */
        .step.active .stat-card.success .stat-label::before { content: "\2713 "; color: #059669; }
        .step.active .stat-card.danger .stat-label::before { content: "\2717 "; color: #dc2626; }
        .step.active .stat-card.warning .stat-label::before { content: "\26A0 "; color: #d97706; }
        .step.active .mc-stat-card.success .mc-stat-label::before { content: "\2713 "; color: #059669; }
        .step.active .mc-stat-card.danger .mc-stat-label::before { content: "\2717 "; color: #dc2626; }
        .step.active .mc-stat-card.warning .mc-stat-label::before { content: "\26A0 "; color: #d97706; }
        .multi-year-table tr.hit td:last-child::before { content: "\2713 "; }
        .multi-year-table tr.partial td:last-child::before { content: "\26A0 "; }
        .multi-year-table tr.miss td:last-child::before,
        .multi-year-table tr.tcoc-miss td:last-child::before { content: "\2717 "; }
        .multi-year-table tr.quality-miss td:last-child::before { content: "\26A0 "; }
        .multi-year-table tr.both-miss td:last-child::before { content: "\2717 "; }
        .multi-year-table tr.failed td:last-child::before { content: "\2717 "; }

        /* Stat Grid Column Variants (for responsive overrides) */
        .stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
        .stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

        /* Calculation Display */
        .calculation {
            background: #1e293b;
            color: #f1f5f9;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            margin: 20px 0;
        }

        .calculation-inner {
            display: block;
        }

        .calculation-line {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            padding: 5px 0;
        }

        .calculation-line > span:first-child {
            flex-shrink: 1;
            min-width: 0;
            margin-right: 10px;
        }

        .calculation-line > span:last-child {
            flex-shrink: 0;
            text-align: right;
            white-space: nowrap;
        }

        .calculation-line.total {
            border-top: 2px solid #f1f5f9;
            padding-top: 15px;
            margin-top: 15px;
            font-weight: bold;
            font-size: 1.1em;
        }

        .calculation-line.subtotal {
            border-top: 1px solid #475569;
            padding-top: 10px;
            margin-top: 10px;
        }

        /* Funder Comparison Mini-Table */
        .funder-comparison-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85em;
            margin: 20px 0 0 0;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }
        .funder-comparison-table th,
        .funder-comparison-table td {
            padding: 10px 12px;
            text-align: center;
            border-bottom: 1px solid #f1f5f9;
        }
        .funder-comparison-table th {
            background: #f8fafc;
            font-weight: 600;
            color: #1e3a8a;
            font-size: 0.9em;
        }
        .funder-comparison-table td:first-child,
        .funder-comparison-table th:first-child {
            text-align: left;
        }

        /* Funding Choice Cards */
        .choices {
            display: grid;
            gap: 15px;
            margin: 30px 0;
        }

        .choice-card {
            background: white;
            border: 3px solid #e5e7eb;
            border-radius: 12px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .choice-card:hover {
            border-color: #3b82f6;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
        }

        .choice-card.expanded {
            border-color: #10b981;
            background: #f0fdf4;
        }

        .choice-card.expanded .funding-params {
            display: block;
            animation: fadeIn 0.3s;
        }

        .choice-title {
            font-size: 1.3em;
            font-weight: bold;
            color: #1e3a8a;
            margin-bottom: 10px;
        }

        .choice-terms {
            color: #059669;
            margin: 10px 0;
        }

        .choice-catch {
            color: #dc2626;
            margin: 10px 0;
        }

        /* Funding Parameters Panel */
        .funding-params {
            display: none;
            margin-top: 20px;
            padding: 20px;
            background: #f9fafb;
            border-radius: 12px;
            border: 2px solid #e5e7eb;
        }

        .funding-params-title {
            font-weight: bold;
            color: #1e3a8a;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        /* Scenario Tabs */
        .scenario-tabs {
            display: flex;
            gap: 10px;
            margin: 30px 0 20px 0;
        }

        .scenario-tab {
            flex: 1;
            padding: 15px;
            background: #e5e7eb;
            border: none;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .scenario-tab.active {
            background: white;
            color: #1e3a8a;
            border-bottom: 3px solid #3b82f6;
        }

        .scenario-tab.miss {
            color: #dc2626;
        }

        .scenario-tab.hit {
            color: #059669;
        }

        .scenario-tab.quality {
            color: #d97706;
        }

        .scenario-content {
            display: none;
            padding: 20px;
            background: #f9fafb;
            border-radius: 0 0 8px 8px;
        }

        .scenario-content.active {
            display: block;
        }

        /* Multi-Year Table */
        .multi-year-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9em;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .multi-year-table th,
        .multi-year-table td {
            padding: 12px 10px;
            text-align: right;
            border-bottom: 1px solid #e5e7eb;
        }

        .multi-year-table th {
            background: #f1f5f9;
            font-weight: 600;
            color: #1e3a8a;
            font-size: 0.85em;
            text-align: center;
        }

        .multi-year-table td:first-child,
        .multi-year-table th:first-child {
            text-align: left;
        }

        .multi-year-table tr.hit {
            background: #f0fdf4;
        }

        .multi-year-table tr.miss {
            background: #fffbeb;
        }

        .multi-year-table tr.failed {
            background: #fef2f2;
            color: #991b1b;
        }

        .multi-year-table tr:last-child td {
            border-bottom: none;
        }

        /* New status row colors for quality ratcheting */
        .multi-year-table tr.tcoc-miss {
            background: #fffbeb;  /* amber - same as existing miss */
        }

        .multi-year-table tr.quality-miss {
            background: #fef3c7;  /* light orange */
        }

        .multi-year-table tr.both-miss {
            background: #fee2e2;  /* light red */
        }

        .multi-year-table tr.partial {
            background: #fef9c3;  /* light yellow */
        }

        /* Deepening tints for consecutive miss/failed streaks */
        .multi-year-table tr.miss-streak-2,
        .multi-year-table tr.tcoc-miss-streak-2,
        .multi-year-table tr.quality-miss-streak-2,
        .multi-year-table tr.both-miss-streak-2 { background: #fef3c7; }

        .multi-year-table tr.miss-streak-3,
        .multi-year-table tr.tcoc-miss-streak-3,
        .multi-year-table tr.quality-miss-streak-3,
        .multi-year-table tr.both-miss-streak-3 { background: #fee2e2; }

        .multi-year-table tr.failed-streak-2 { background: #fecaca; }
        .multi-year-table tr.failed-streak-3 { background: #fca5a5; }

        /* View Toggle Tabs for Multi-Year */
        .view-toggle-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 0;
        }

        .view-tab {
            flex: 0 0 auto;
            padding: 12px 24px;
            background: #e5e7eb;
            border: none;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95em;
            color: #64748b;
            transition: all 0.2s;
        }

        .view-tab:hover {
            background: #d1d5db;
        }

        .view-tab.active {
            background: white;
            color: #1e3a8a;
            box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
        }

        .view-tab.financial.active {
            color: #166534;
            border-bottom: 3px solid #22c55e;
        }

        .view-tab.quality.active {
            color: #7c3aed;
            border-bottom: 3px solid #8b5cf6;
        }

        /* Quality View Table specific styling */
        .quality-table th,
        .quality-table td {
            text-align: center;
        }

        .quality-table td:first-child,
        .quality-table th:first-child {
            text-align: left;
        }

        /* Result Banner */
        .result-banner {
            padding: 25px;
            border-radius: 12px;
            margin: 20px 0;
            text-align: center;
            font-size: 1.2em;
        }

        .result-banner.success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }

        .result-banner.failure {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
        }

        .result-banner.warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }

        /* Collapsible Section */
        .collapsible-header {
            background: #1e3a8a;
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 30px;
            transition: all 0.3s;
        }

        .collapsible-header:hover {
            background: #1e40af;
        }

        .collapsible-header .arrow {
            transition: transform 0.3s;
        }

        .collapsible-header.expanded .arrow {
            transform: rotate(180deg);
        }

        .collapsible-content {
            display: none;
            padding: 20px;
            background: #f9fafb;
            border-radius: 0 0 8px 8px;
            border: 2px solid #e5e7eb;
            border-top: none;
        }

        .collapsible-content.expanded {
            display: block;
            animation: fadeIn 0.3s;
        }

        /* Buttons */
        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            justify-content: space-between;
        }

        button {
            padding: 15px 30px;
            font-size: 1.05em;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
        }

        .btn-primary {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: #e5e7eb;
            color: #374151;
        }

        .btn-secondary:hover {
            background: #d1d5db;
        }

        /* Lists */
        ul {
            margin-left: 25px;
            margin-top: 10px;
        }

        li {
            margin-bottom: 8px;
        }

        /* Funder Outcome Sections */
        .funder-outcome {
            display: none;
        }

        .funder-outcome.active {
            display: block;
        }

        /* Tooltip Styling */
        .tooltip-container {
            position: relative;
            display: inline;
        }

        .tooltip-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            background: #94a3b8;
            color: white;
            border-radius: 50%;
            font-size: 11px;
            font-weight: bold;
            cursor: help;
            margin-left: 4px;
            vertical-align: middle;
            animation: tooltipPulse 2s ease-in-out 3;
        }

        @keyframes tooltipPulse {
            0%, 100% { transform: scale(1); box-shadow: none; }
            50% { transform: scale(1.3); box-shadow: 0 0 6px rgba(59, 130, 246, 0.5); }
        }

        body.tooltip-seen .tooltip-icon {
            animation: none;
        }

        .tooltip-icon:hover {
            background: #3b82f6;
        }

        .tooltip-text {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: 125%;
            left: 0;
            background: #1e293b;
            color: white;
            padding: 10px 12px;
            border-radius: 6px;
            font-size: 0.85em;
            font-weight: normal;
            width: 260px;
            line-height: 1.4;
            z-index: 100;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: opacity 0.2s, visibility 0.2s;
        }

        .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 20px;
            border-width: 6px;
            border-style: solid;
            border-color: #1e293b transparent transparent transparent;
        }

        .tooltip-icon:hover + .tooltip-text,
        .tooltip-icon:focus + .tooltip-text,
        .tooltip-text:hover {
            visibility: visible;
            opacity: 1;
        }

        .tooltip-icon:focus {
            outline: 2px solid #3b82f6;
            outline-offset: 1px;
        }

        /* Calculation Box Tooltip Overrides */
        .calculation .tooltip-container {
            display: inline;
        }

        .calculation .tooltip-icon {
            font-size: 9px;
            width: 14px;
            height: 14px;
            line-height: 14px;
            margin-left: 5px;
            background: #475569;
        }

        .calculation .tooltip-icon:hover {
            background: #3b82f6;
        }

        .calculation .tooltip-text {
            width: 240px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            font-size: 12px;
            left: -10px;
        }

        /* Monte Carlo Stat Card Tooltip Overrides */
        .mc-stat-card .tooltip-container {
            display: inline;
        }

        .mc-stat-card .tooltip-icon {
            font-size: 9px;
            width: 12px;
            height: 12px;
            line-height: 12px;
            margin-left: 4px;
            background: #94a3b8;
        }

        .mc-stat-card .tooltip-text {
            width: 200px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 11px;
            bottom: 140%;
            left: -80px;
        }

        /* Chart Legends (external HTML legends below canvases) */
        .chart-legend {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 8px;
            font-size: 12px;
            color: #475569;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .legend-swatch {
            width: 14px;
            height: 14px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        .legend-line {
            width: 16px;
            height: 3px;
            border-radius: 1px;
            flex-shrink: 0;
        }

        /* Comparison Matrix */
        .comparison-section {
            margin: 30px 0;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            overflow: hidden;
        }

        .comparison-toggle {
            width: 100%;
            padding: 16px 20px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 1em;
            font-weight: 600;
            color: #0369a1;
            transition: background 0.2s;
        }

        .comparison-toggle:hover {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
        }

        .comparison-toggle .arrow {
            transition: transform 0.3s;
            transform: rotate(-90deg);
        }

        .comparison-toggle.open .arrow {
            transform: rotate(0deg);
        }

        .comparison-grid {
            display: none;
            padding: 20px;
            background: white;
        }

        .comparison-grid.open {
            display: block;
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95em;
        }

        .comparison-table th,
        .comparison-table td {
            padding: 12px 16px;
            text-align: center;
            border-bottom: 1px solid #e2e8f0;
        }

        .comparison-table th {
            background: #f8fafc;
            font-weight: 600;
            color: #334155;
        }

        .comparison-table th:first-child,
        .comparison-table td:first-child {
            text-align: left;
            font-weight: 600;
        }

        .comparison-table tr:last-child td {
            border-bottom: none;
        }

        .comparison-table .positive {
            color: #059669;
            font-weight: 600;
        }

        .comparison-table .negative {
            color: #dc2626;
            font-weight: 600;
        }

        .comparison-table .scenario-miss td:first-child {
            color: #dc2626;
        }

        .comparison-table .scenario-quality td:first-child {
            color: #d97706;
        }

        .comparison-table .scenario-hit td:first-child {
            color: #059669;
        }

        .comparison-table .selected-funder {
            background: #eff6ff;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .header h1 {
                font-size: 1.6em;
            }

            .content {
                padding: 20px;
            }

            .slider-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .slider-label {
                flex: none;
                margin-bottom: 5px;
            }

            .slider-container {
                width: 100%;
            }

            .slider-value {
                flex: 0 0 80px;
            }

            /* Tooltip mobile adjustments */
            .tooltip-text {
                width: 220px;
                left: 50%;
                transform: translateX(-50%);
                font-size: 0.85em;
            }

            .tooltip-text::after {
                left: 50%;
                transform: translateX(-50%);
            }

            .stat-grid {
                grid-template-columns: 1fr 1fr;
            }

            .stat-grid-4, .stat-grid-3 {
                grid-template-columns: repeat(2, 1fr);
            }

            /* Multi-year table mobile */
            .multi-year-table {
                font-size: 0.8em;
            }

            .multi-year-table th,
            .multi-year-table td {
                padding: 8px 6px;
                white-space: nowrap;
            }

            /* Hide lower-priority columns on mobile: Ops Retention(6), Reserve Change(7), Total Reserve(8) */
            .multi-year-table:not(.show-all-cols) th:nth-child(6),
            .multi-year-table:not(.show-all-cols) td:nth-child(6),
            .multi-year-table:not(.show-all-cols) th:nth-child(7),
            .multi-year-table:not(.show-all-cols) td:nth-child(7),
            .multi-year-table:not(.show-all-cols) th:nth-child(8),
            .multi-year-table:not(.show-all-cols) td:nth-child(8) {
                display: none;
            }

            .mobile-table-toggle {
                display: inline-block;
                margin-bottom: 8px;
                padding: 6px 14px;
                font-size: 0.8em;
                background: #f1f5f9;
                border: 1px solid #cbd5e1;
                border-radius: 6px;
                color: #475569;
                cursor: pointer;
            }

            .preset-buttons {
                flex-direction: column;
            }

            .preset-btn {
                min-width: auto;
            }

            .progress-steps {
                font-size: 0.7em;
                padding: 8px 15px;
            }

            .footer-content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }

            .footer-text {
                text-align: center;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .header-text {
                text-align: center;
            }

            .header-logo {
                height: 55px;
            }

            /* Calculation lines - stack at tablet widths */
            .calculation-line {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            .calculation-line > span:first-child {
                white-space: normal;
            }

            .calculation-line > span:last-child {
                text-align: right;
                align-self: stretch;
            }

            .calculation-line.total > span:last-child {
                font-size: 1.1em;
            }

            /* Reality rows - stack at tablet widths */
            .reality-row {
                flex-direction: column;
                gap: 4px;
            }

            .reality-row > span:last-child {
                text-align: left;
            }
        }

        @media (max-width: 600px) {
            /* Progress step circles (extracted from nested media query for browser compat) */
            .progress-steps {
                padding: 8px 10px;
            }
            .progress-step {
                font-size: 0;
                position: relative;
            }
            .progress-step::before {
                content: attr(data-step-num);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                border-radius: 50%;
                background: #e5e7eb;
                color: #6b7280;
                font-size: 12px;
                font-weight: 600;
            }
            .progress-step.active::before {
                background: #3b82f6;
                color: white;
            }
            .progress-step.completed::before {
                background: #10b981;
                color: white;
            }
            .mobile-step-label {
                display: block;
                text-align: center;
                padding: 6px 0;
                font-size: 0.85em;
                font-weight: 600;
                color: #1e3a8a;
                background: #f9fafb;
                border-bottom: 1px solid #e5e7eb;
            }

            /* Slider values */
            .slider-value {
                flex: 0 0 70px;
                font-size: 0.95em;
            }

            /* Stat cards */
            .stat-value {
                font-size: 1.3em;
            }

            /* Tabs */
            .scenario-tab {
                padding: 12px 8px;
                font-size: 0.9em;
            }

            /* Buttons */
            button {
                padding: 12px 20px;
                font-size: 0.95em;
            }

            /* Choice cards */
            .choice-card {
                padding: 18px;
            }

            .choice-title {
                font-size: 1.15em;
            }

            /* Step title */
            .step-title {
                font-size: 1.5em;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .container {
                border-radius: 12px;
            }

            .header {
                padding: 20px 15px;
            }

            .header h1 {
                font-size: 1.3em;
            }

            .header .subtitle {
                font-size: 0.9em;
            }

            .header-logo {
                height: 45px;
            }


            .content {
                padding: 15px;
            }

            .step-title {
                font-size: 1.4em;
                gap: 10px;
            }

            .step-number {
                width: 36px;
                height: 36px;
                font-size: 0.95em;
            }

            .preset-btn {
                padding: 12px 15px;
            }

            .preset-btn-title {
                font-size: 1em;
            }

            .slider-group {
                padding: 15px;
            }

            .slider-value {
                flex: 0 0 60px;
                font-size: 0.9em;
            }

            /* Tooltip mobile */
            .tooltip-text {
                width: 180px;
                font-size: 0.8em;
                padding: 10px;
            }

            .highlight-box {
                padding: 15px;
            }

            .stat-grid {
                grid-template-columns: 1fr;
            }

            .stat-grid-4, .stat-grid-3 {
                grid-template-columns: 1fr;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-label {
                font-size: 0.8em;
            }

            .stat-value {
                font-size: 1.2em;
            }

            /* Calculation boxes - horizontal scroll with inner wrapper */
            .calculation {
                padding: 12px;
                font-size: 0.85em;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .calculation-inner {
                display: inline-block;
                min-width: 100%;
            }

            .scenario-tab {
                padding: 10px 6px;
                font-size: 0.85em;
            }

            button {
                padding: 10px 16px;
                font-size: 0.9em;
            }

            .button-group {
                flex-wrap: wrap;
            }

            .progress-steps {
                padding: 8px 10px;
                font-size: 0.65em;
            }
        }

        /* ============================================ */
        /* MONTE CARLO SIMULATION STYLES */
        /* ============================================ */
        .mc-controls {
            background: #f8fafc;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .mc-section {
            margin-bottom: 20px;
        }

        .mc-section-title {
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 12px;
            font-size: 1em;
        }

        .mc-preset-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .mc-preset-btn {
            flex: 1;
            padding: 10px 15px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
            font-weight: 500;
        }

        .mc-preset-btn:hover {
            border-color: #6366f1;
        }

        .mc-preset-btn.active {
            border-color: #6366f1;
            background: #eef2ff;
            color: #4338ca;
        }

        .mc-funder-btn {
            padding: 8px 16px;
            border: 2px solid #d1d5db;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }
        .mc-funder-btn:hover {
            border-color: #8b5cf6;
            background: #f5f3ff;
        }
        .mc-funder-btn.active {
            background: linear-gradient(135deg, #8b5cf6, #6d28d9);
            color: white;
            border-color: transparent;
        }

        .mc-variable-group {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .mc-variable-group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            background: #f1f5f9;
            cursor: pointer;
            user-select: none;
        }

        .mc-variable-group-header:hover {
            background: #e2e8f0;
        }

        .mc-variable-group-title {
            font-weight: 600;
            color: #334155;
            font-size: 0.9em;
        }

        .mc-variable-group-chevron {
            transition: transform 0.2s;
            color: #64748b;
        }

        .mc-variable-group.collapsed .mc-variable-group-chevron {
            transform: rotate(-90deg);
        }

        .mc-variable-group.collapsed .mc-variable-group-content {
            display: none;
        }

        .mc-variable-group-content {
            padding: 12px 15px;
        }

        .mc-variable-row {
            display: flex;
            align-items: center;
            padding: 8px 0;
            gap: 12px;
        }

        .mc-variable-checkbox {
            flex: 0 0 16px;
            width: 16px;
            height: 16px;
            accent-color: #6366f1;
        }

        .mc-variable-label {
            flex: 0 0 160px;
            font-size: 0.9em;
            color: #374151;
        }

        .mc-variable-label .tooltip-container {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .mc-variable-label .tooltip-icon {
            font-size: 0.7em;
            width: 14px;
            height: 14px;
            line-height: 14px;
        }

        /* Status badge shown when variable is being randomized */
        .mc-variable-badge {
            font-size: 0.75em;
            padding: 2px 8px;
            border-radius: 10px;
            background: #dbeafe;
            color: #2563eb;
            flex: 1;
            text-align: center;
        }

        /* Inline slider container - visible when held constant */
        .mc-slider-container {
            flex: 1;
            display: none;
            align-items: center;
            gap: 10px;
        }

        .mc-slider-container.visible {
            display: flex;
        }

        .mc-slider-container input[type="range"] {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: #e2e8f0;
            border-radius: 3px;
            outline: none;
        }

        .mc-slider-container input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            background: #6366f1;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mc-slider-container input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            background: #4f46e5;
        }

        .mc-slider-container input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #6366f1;
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        .mc-slider-value {
            flex: 0 0 70px;
            text-align: right;
            font-weight: 600;
            font-size: 0.9em;
            color: #1e3a8a;
        }

        .mc-slider-reset {
            flex: 0 0 20px;
            width: 20px;
            height: 20px;
            border: none;
            background: transparent;
            color: #94a3b8;
            cursor: pointer;
            font-size: 12px;
            padding: 0;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mc-slider-reset:hover {
            background: #f1f5f9;
            color: #64748b;
        }

        .mc-reset-custom-btn {
            padding: 6px 12px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 0.8em;
            color: #64748b;
            cursor: pointer;
            margin-left: 10px;
        }

        .mc-reset-custom-btn:hover {
            background: #e2e8f0;
            color: #475569;
        }

        .mc-control-group {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e5e7eb;
        }

        .mc-control-label {
            font-weight: 500;
            color: #475569;
            margin-bottom: 8px;
            font-size: 0.9em;
        }

        .mc-toggle-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .mc-toggle {
            position: relative;
            width: 44px;
            height: 24px;
            flex-shrink: 0;
        }

        .mc-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .mc-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #94a3b8;
            transition: 0.3s;
            border-radius: 24px;
        }

        .mc-toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        .mc-toggle input:checked + .mc-toggle-slider {
            background-color: #6366f1;
        }

        .mc-toggle input:checked + .mc-toggle-slider:before {
            transform: translateX(20px);
        }

        .mc-toggle-label {
            font-size: 0.85em;
            color: #475569;
        }

        .mc-run-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 18px 40px;
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
        }

        @keyframes mcBtnPulse {
            0%, 100% { box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25); }
            50% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45); }
        }

        .mc-run-btn:not(:disabled) {
            animation: mcBtnPulse 2.5s ease-in-out infinite;
        }

        .mc-run-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
            animation: none;
        }

        .mc-run-btn:disabled {
            background: #94a3b8;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            animation: none;
        }

        .mc-btn-secondary-group {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: 20px;
            padding-left: 20px;
            border-left: 1px solid #e5e7eb;
        }

        .mc-reset-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 10px;
            background: none;
            color: #6366f1;
            border: none;
            font-weight: 500;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .mc-reset-btn:hover {
            color: #4338ca;
        }

        .mc-progress-container {
            margin: 15px 0;
            display: none;
        }

        .mc-progress-container.active {
            display: block;
        }

        .mc-progress-bar {
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
        }

        .mc-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #6366f1, #8b5cf6);
            transition: width 0.1s;
        }

        .mc-progress-text {
            font-size: 0.85em;
            color: #64748b;
            margin-top: 5px;
        }

        /* Multi-Year Monte Carlo specific styles */
        #myMcProgressContainer {
            display: none;
        }

        #myMcProgressContainer.active {
            display: block;
        }

        /* Responsive grid for multi-year MC charts */
        @media (max-width: 768px) {
            #myMcResults > div[style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }

            #myMcResults .stat-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        .mc-results {
            margin-top: 25px;
        }

        .mc-view-toggle {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
        }

        .mc-view-btn {
            padding: 8px 16px;
            border: 2px solid #e5e7eb;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.9em;
            transition: all 0.2s;
        }

        .mc-view-btn:hover {
            border-color: #6366f1;
        }

        .mc-view-btn.active {
            border-color: #6366f1;
            background: #eef2ff;
            color: #4338ca;
        }

        .mc-histogram-container {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }

        .mc-histogram-title {
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        /* Chart title tooltip overrides - position to left to avoid right edge cutoff */
        .mc-histogram-title .tooltip-container {
            display: inline;
        }

        .mc-histogram-title .tooltip-icon {
            font-size: 9px;
            width: 14px;
            height: 14px;
            line-height: 14px;
            margin-left: 6px;
            background: #94a3b8;
        }

        .mc-histogram-title .tooltip-text {
            width: 240px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 11px;
            left: auto;
            right: 0;
        }

        .mc-histogram-title .tooltip-text::after {
            left: auto;
            right: 20px;
        }

        .mc-histogram-canvas {
            width: 100%;
            height: 250px;
        }

        .mc-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .mc-stat-card {
            background: #f8fafc;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
        }

        .mc-stat-card.success {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
        }

        .mc-stat-card.danger {
            background: #fef2f2;
            border: 1px solid #fecaca;
        }

        .mc-stat-card.warning {
            background: #fffbeb;
            border: 1px solid #fde68a;
        }

        .mc-stat-card.highlight {
            background: #eef2ff;
            border: 1px solid #c7d2fe;
        }

        .mc-stat-label {
            font-size: 0.8em;
            color: #64748b;
            margin-bottom: 5px;
        }

        .mc-stat-value {
            font-size: 1.3em;
            font-weight: 700;
            color: #1e293b;
        }

        .mc-stat-value.success { color: #059669; }
        .mc-stat-value.danger { color: #dc2626; }
        .mc-stat-value.warning { color: #d97706; }
        .mc-stat-value.highlight { color: #4f46e5; }

        .mc-tornado-container {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .mc-tornado-title {
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 5px;
            font-size: 1.1em;
        }

        .mc-tornado-subtitle {
            font-size: 0.85em;
            color: #64748b;
            margin-bottom: 15px;
        }

        /* HTML-based tornado chart styles */
        .tornado-header {
            display: flex;
            justify-content: space-between;
            padding: 0 10px 10px 140px;
            font-size: 10px;
            color: #64748b;
        }
        .tornado-bars {
            position: relative;
        }
        .tornado-row {
            display: flex;
            align-items: center;
            padding: 4px 10px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .tornado-row:hover {
            background: #f8fafc;
        }
        .tornado-label {
            width: 145px;
            text-align: right;
            padding-right: 10px;
            font-size: 11px;
            color: #334155;
            flex-shrink: 0;
            line-height: 1.3;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }
        .tornado-bar-container {
            flex: 1;
            display: flex;
            height: 22px;
            position: relative;
        }
        .tornado-bar-left, .tornado-bar-right {
            height: 100%;
            position: absolute;
            top: 0;
        }
        .tornado-bar-left {
            right: 50%;
            border-radius: 3px 0 0 3px;
        }
        .tornado-bar-right {
            left: 50%;
            border-radius: 0 3px 3px 0;
        }
        .tornado-bar-green {
            background: #bbf7d0;
            border: 1px solid #4ade80;
        }
        .tornado-bar-red {
            background: #fecaca;
            border: 1px solid #f87171;
        }
        .tornado-center-line {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #1e293b;
            transform: translateX(-1px);
        }
        .tornado-explanation {
            display: none;
            padding: 8px 10px 8px 140px;
            font-size: 11px;
            background: #f1f5f9;
            border-radius: 4px;
            margin: 2px 10px 6px 10px;
        }
        .tornado-explanation.expanded {
            display: block;
        }
        .tornado-explanation-line {
            display: flex;
            gap: 8px;
            padding: 2px 0;
        }
        .tornado-explanation-line .indicator {
            font-weight: 600;
            flex-shrink: 0;
        }
        .tornado-explanation-line .indicator.green { color: #16a34a; }
        .tornado-explanation-line .indicator.red { color: #dc2626; }
        .tornado-click-hint {
            text-align: center;
            font-size: 10px;
            color: #94a3b8;
            margin-top: 8px;
        }
        .tornado-view-note {
            margin-top: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }
        .tornado-axis-labels {
            display: flex;
            justify-content: space-between;
            padding: 8px 10px 0 140px;
            font-size: 9px;
            color: #94a3b8;
        }

        .mc-info-box {
            background: #f0f9ff;
            border-left: 4px solid #3b82f6;
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 0 8px 8px 0;
            font-size: 0.9em;
            color: #1e40af;
        }

        .mc-no-results {
            text-align: center;
            padding: 40px 20px;
            color: #64748b;
        }

        .mc-no-results-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }

        @media (max-width: 768px) {
            .mc-preset-buttons {
                flex-direction: column;
            }

            .mc-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .mc-histogram-canvas {
                height: 200px;
            }

            .mc-run-btn {
                width: 100%;
                justify-content: center;
                margin: 5px 0;
            }

            .mc-btn-secondary-group {
                margin-left: 0;
                padding-left: 0;
                border-left: none;
                justify-content: center;
            }
        }

        /* Print styles */
        .print-btn {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            margin-left: auto;
            padding: 3px 8px;
            font-size: 0.75rem;
            color: #6366f1;
            background: none;
            border: 1px solid #c7d2fe;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            white-space: nowrap;
        }
        .print-btn:hover {
            background: #eef2ff;
        }

        @media print {
            body {
                padding: 0;
                background: white;
            }
            .container {
                box-shadow: none;
                border-radius: 0;
            }
            .progress-bar, .progress-steps, .mobile-step-label,
            .button-group, .slider-group, .slider-row, .preset-buttons,
            .mc-progress-container, .mc-run-btn, .mc-reset-btn, .mc-btn-secondary-group,
            .mc-variable-group, .mc-view-toggle, .mobile-table-toggle,
            .funder-comparison-table, .choices, .print-btn,
            .funding-params, .comparison-toggle, #comparisonGrid,
            .highlight-box:not(.warning) { display: none !important; }

            .step { display: block !important; animation: none !important; }
            .step:not(.active) { display: none !important; }
            .content { padding: 20px; }
            .header { background: #1e3a8a !important; color-adjust: exact; -webkit-print-color-adjust: exact; }
            .stat-card { color-adjust: exact; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .multi-year-table tr { color-adjust: exact; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .result-banner { color-adjust: exact; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .calculation { color-adjust: exact; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .footer { font-size: 0.8em; padding: 10px; }
        }
