body{margin:0;background:#1a1a2e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.app-layout{display:grid;grid-template-columns:480px 1fr;min-height:100vh;background:#1a1a2e;color:#e0e0e0;gap:0}.left-pane{background:#16213e;padding:40px 32px 60px;border-right:1px solid #0f1729;overflow-y:auto;position:sticky;top:0;height:100vh}.right-pane{background:#1a1a2e;padding:40px 32px 60px;overflow-y:auto;max-width:1200px}@media(max-width:1024px){.app-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}.left-pane{position:static;height:auto;border-right:none;border-bottom:1px solid #0f1729}}.title{font-size:24px;font-weight:700;margin-bottom:6px;margin-top:0;color:#fff}.subtitle{font-size:13px;color:#888;margin-bottom:28px;line-height:1.5}.form{display:flex;flex-direction:column;gap:20px}.row{display:flex;gap:12px}.label{display:flex;flex-direction:column;flex:1;font-size:13px;color:#aaa}.input{margin-top:4px;padding:8px 10px;font-size:15px;border-radius:6px;border:1px solid #333;background:#16213e;color:#fff;outline:none}.slider-group{display:flex;flex-direction:column;gap:6px}.slider-header{display:flex;justify-content:space-between;align-items:baseline}.slider-label{font-size:13px;color:#aaa}.slider-value{font-size:15px;font-weight:600;color:#4f9eff}.slider{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;background:#16213e;outline:none}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#4f9eff;cursor:pointer}.slider-ticks{display:flex;justify-content:space-between;font-size:11px;color:#555}.slider-help{font-size:12px;color:#666;line-height:1.5;margin:4px 0 0}.drawdown-group{display:flex;flex-direction:column;gap:8px}.drawdown-label{font-size:13px;color:#aaa}.drawdown-chips{display:flex;gap:8px}.chip{padding:6px 16px;border-radius:20px;border:1px solid #333;background:#16213e;color:#aaa;cursor:pointer;font-size:13px}.chip-active{background:#4f9eff;color:#fff;border-color:#4f9eff}.btn{padding:12px 0;font-size:15px;font-weight:600;border-radius:8px;border:none;background:#4f9eff;color:#fff;cursor:pointer;margin-top:4px}.btn:disabled{opacity:.6;cursor:not-allowed}.error{margin-top:16px;padding:16px;background:#3a1a1a;border-radius:8px;border-left:3px solid #ff6b6b;color:#f99;font-size:14px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;color:#666}.empty-icon{font-size:64px;margin-bottom:16px;opacity:.5}.empty-state h3{font-size:18px;color:#888;margin-bottom:8px}.empty-state p{font-size:14px;color:#666;max-width:320px;line-height:1.5}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.loading-state p{font-size:14px;color:#888}.spinner{width:40px;height:40px;border:3px solid #16213e;border-top-color:#4f9eff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.results{margin-top:0}.card{padding:18px 20px;border-radius:10px;margin-bottom:16px}.card-primary{background:#0f3460}.card-danger{background:#3a1a1a}.card-warning{background:#3d2e0a;color:#ffc947;font-size:14px;line-height:1.5}.card-main{font-size:19px;font-weight:600;margin:0 0 6px;color:#fff}.card-shares{font-size:14px;color:#b0c4de;margin:0}.card-detail{font-size:14px;color:#caa;margin:0;line-height:1.5}.fundamentals-card{background:#16213e;border-radius:10px;padding:18px 20px;margin-bottom:20px}.fund-composite{font-size:14px;color:#ccc;margin:0 0 16px;line-height:1.5}.fund-score{font-size:16px}.fund-timeframe{font-size:12px;color:#666;line-height:1.5;margin:0 0 16px}.fund-row{margin-bottom:14px}.fund-row:last-child{margin-bottom:0}.fund-row-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}.fund-name{font-size:13px;color:#aaa}.fund-label{font-size:13px;font-weight:600}.fund-bar-bg{height:6px;background:#0d1b36;border-radius:3px;overflow:hidden}.fund-bar-fill{height:100%;border-radius:3px;transition:width .4s ease}.fund-details{font-size:11px;color:#666;margin:4px 0 0}.risk-summary{margin-top:8px;margin-bottom:24px}.section-title{font-size:15px;color:#ccc;margin-bottom:12px;font-weight:600}.risk-items{display:flex;flex-direction:column;gap:12px}.risk-item{display:flex;align-items:flex-start;gap:10px}.risk-icon{flex-shrink:0;width:10px;height:10px;border-radius:50%;margin-top:5px}.risk-green{background:#4caf50}.risk-yellow{background:#ffb74d}.risk-red{background:#f44336}.risk-item p{margin:0;font-size:14px;line-height:1.5;color:#ccc}.chart-wrapper{margin-bottom:24px}.chart-subtitle{font-size:12px;color:#666;margin-top:0;margin-bottom:10px}.sim-tooltip{background:#16213e;border:1px solid #333;border-radius:8px;padding:10px 14px;font-size:13px}.sim-tooltip-title{margin:0 0 6px;color:#888;font-size:12px}.sim-tooltip-row{margin:3px 0;color:#ddd;display:flex;align-items:center;gap:6px}.sim-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.sim-dot-green{background:#4caf50}.sim-dot-blue{background:#4f9eff}.sim-dot-red{background:#f44336}.details-block{margin-top:8px;margin-bottom:16px}.details-summary{font-size:13px;color:#777;cursor:pointer;padding:8px 0}.stats-table{width:100%;margin-top:8px;border-collapse:collapse}.td-label{padding:6px 0;border-bottom:1px solid #222;font-size:13px;color:#888}.td-value{padding:6px 0;border-bottom:1px solid #222;font-size:14px;text-align:right;font-weight:600;color:#ddd}.disclaimer{margin-top:24px;font-size:11px;color:#555;text-align:center;line-height:1.5}.tickers-group{display:flex;flex-direction:column;gap:8px}.ticker-row{display:flex;gap:8px;align-items:center}.ticker-row .input{flex:1;margin-top:0}.remove-btn{background:#2a2a3e;color:#ff6b6b;border:1px solid #ff6b6b;border-radius:4px;padding:8px 12px;cursor:pointer;font-size:18px;line-height:1}.remove-btn:hover{background:#ff6b6b;color:#fff}.add-btn{background:#2a2a3e;color:#4f9eff;border:1px solid #4f9eff;border-radius:4px;padding:8px 12px;cursor:pointer;font-size:13px;margin-top:4px}.add-btn:hover{background:#4f9eff;color:#fff}.stocks-table{margin-top:20px}.summary-table{width:100%;border-collapse:collapse;font-size:13px;background:#16213e;border-radius:8px;overflow:hidden}.summary-table thead{background:#0f1729}.summary-table th{padding:10px 8px;text-align:left;font-weight:600;color:#aaa;font-size:12px;border-bottom:1px solid #222}.summary-table td{padding:12px 8px;border-bottom:1px solid #1a2332;color:#ddd}.summary-table tbody tr:hover{background:#1a2642}.expanded-details{background:#0f1729!important;padding:16px!important}.stock-details h4{margin-top:0;margin-bottom:12px;color:#fff;font-size:14px}.correlation-section{margin-top:24px;background:#16213e;padding:20px;border-radius:8px}.correlation-explanation{font-size:13px;color:#aaa;margin-bottom:16px;line-height:1.5}.correlation-grid{overflow-x:auto;margin-bottom:16px}.correlation-table{width:100%;border-collapse:collapse;font-size:12px}.correlation-table th{padding:8px;text-align:center;font-weight:600;color:#aaa;font-size:11px}.correlation-table td{padding:8px;text-align:center;color:#fff;font-weight:500;border:1px solid #0f1729}.correlation-label{text-align:left!important;background:#0f1729!important;opacity:1!important}.correlation-cell{min-width:50px;transition:opacity .2s}.correlation-cell:hover{opacity:1!important}.correlation-insights{background:#0f1729;padding:14px;border-radius:6px;border-left:3px solid #4f9eff}.insight-title{font-size:13px;font-weight:600;color:#fff;margin-bottom:8px}.insight-list{margin:0;padding-left:20px;font-size:12px;color:#ccc;line-height:1.6}.insight-list li{margin-bottom:6px}.insight-list strong{color:#4f9eff}.help-header{position:relative;border-bottom:1px dotted #666;padding-bottom:2px;cursor:help;display:inline-block}.help-header:after{content:" ⓘ";font-size:10px;color:#4f9eff;opacity:.7;margin-left:2px}.help-tip{visibility:hidden;opacity:0;position:absolute;left:50%;transform:translate(-50%);bottom:calc(100% + 8px);width:220px;background:#0f1729;color:#e0e0e0;padding:10px 12px;border-radius:6px;border:1px solid #4f9eff;font-size:11px;line-height:1.4;font-weight:400;text-align:left;z-index:10000;box-shadow:0 4px 12px #00000080;pointer-events:none;white-space:normal;transition:opacity .15s ease,visibility .15s ease}.help-tip:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#4f9eff transparent transparent transparent}.help-header:hover .help-tip{visibility:visible;opacity:1}.stocks-table,.summary-table{overflow:visible}
