:root{--card: var(--card, var(--fx-card));--border: var(--border, var(--fx-border));--text: var(--text, var(--fx-text));--text-muted: var(--text-muted, var(--fx-text-muted));--r-lg: var(--r-lg, var(--fx-r));--shadow-1: var(--shadow-1, 0 3px 14px rgba(15,23,42,.06));--shadow-2: var(--shadow-2, var(--fx-shadow));--g-violet: var(--g-violet, var(--fx-brand));--mint: var(--mint, var(--fx-up));--danger: var(--danger, var(--fx-down));--t-med: var(--t-med, var(--fx-t-med));--easing: var(--easing, var(--fx-ease));--fs-sm: var(--fs-sm, var(--fx-fs-sm));--fs-md: var(--fs-md, var(--fx-fs-md));--fs-lg: var(--fs-lg, var(--fx-fs-lg));--font: var(--font, var(--fx-font))}.fx-card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-2);padding:16px 18px;transition:transform var(--t-med) var(--easing);will-change:transform}@media (hover:hover){.fx-card:hover{transform:translateY(-1px)}}@media (prefers-reduced-motion: reduce){.fx-card{transition:none}}.fx-card-title{font:600 var(--fs-lg) / 1.2 var(--font);margin:0 0 8px}.fx-btn{--bg: var(--g-violet);--fg: #fff;--bd: var(--g-violet);display:inline-flex;align-items:center;gap:8px;font:600 var(--fs-md)/1 var(--font);padding:10px 14px;border-radius:12px;border:1px solid var(--bd);background:var(--bg);color:var(--fg);box-shadow:var(--shadow-1);cursor:pointer}.fx-btn:focus{outline:2px solid #8F92F6;outline-offset:2px}.fx-btn.small{padding:6px 10px;border-radius:10px;font-size:13px}.fx-btn-ghost{--bg:transparent;--fg:var(--text);--bd:var(--fx-border)}.fx-btn-light{--bg:var(--fx-bg-secondary);--fg:var(--text);--bd:transparent}.fx-btn-outline{--bg:var(--fx-surface);--fg:var(--fx-text);--bd:var(--fx-border)}.fx-btn-outline:hover{--bg:var(--fx-hover);--fg:var(--fx-text);--bd:var(--fx-border)}.fx-btn-signout{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid var(--fx-border);background:var(--fx-surface);color:var(--fx-text);font:600 14px/1 system-ui,-apple-system,Segoe UI,Roboto,Poppins,Arial,sans-serif;box-shadow:0 3px 14px #0f172a0f;cursor:pointer;transition:all .18s cubic-bezier(.2,.7,.2,1)}.fx-btn-signout:hover{background:var(--fx-hover);color:var(--fx-text);border-color:var(--fx-border)}.fx-btn-primary{--bg:#3b82f6;--fg:#fff;--bd:#3b82f6}.fx-btn-success{--bg:#16a34a;--fg:#fff;--bd:#16a34a}.fx-btn-secondary{--bg:#6b7280;--fg:#fff;--bd:#6b7280}.fx-btn-danger{--bg:#dc2626;--fg:#fff;--bd:#dc2626}.fx-input{width:100%;padding:10px 14px;font:400 var(--fx-fs-md) / 1.5 var(--fx-font);color:var(--fx-text);background:var(--fx-card);border:1px solid var(--fx-border);border-radius:var(--fx-r-sm);transition:border-color .15s ease,box-shadow .15s ease}.fx-input:focus{outline:none;border-color:var(--fx-brand);box-shadow:0 0 0 3px #6a7bff1a}.fx-input::placeholder{color:var(--fx-text-muted)}select.fx-input{cursor:pointer}textarea.fx-input{resize:vertical;min-height:80px}.fx-form-group{display:flex;flex-direction:column;gap:6px}.fx-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media (max-width: 640px){.fx-form-row{grid-template-columns:1fr}}.fx-form-label{font-size:14px;font-weight:500;color:var(--fx-text);margin:0}.fx-form-error{font-size:13px;color:#ef4444;margin:0}.fx-input.error{border-color:#ef4444}.fx-input.error:focus{box-shadow:0 0 0 3px #ef44441a}.fx-chip{background:var(--fx-hover);border-radius:10px;padding:4px 8px;font:500 var(--fs-sm)/1 var(--font);color:var(--text)}.fx-badge{padding:4px 8px;border-radius:999px;font:700 var(--fs-sm)/1 var(--font);color:#fff}.fx-badge.up{background:var(--mint)}.fx-badge.down{background:var(--danger)}.fx-header.fx-hero{display:flex;align-items:center;justify-content:space-between;padding:24px;border-radius:var(--fx-r);background:var(--card);border:1px solid var(--border);margin-bottom:20px}.fx-h1{font-size:28px;margin:0}.fx-sub{color:var(--text-muted);margin-top:6px}.fx-page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px;gap:24px}.fx-page-title{font-size:32px;font-weight:700;line-height:1.2;color:var(--fx-text);margin:0 0 6px}.fx-page-subtitle{font-size:15px;line-height:1.5;color:var(--fx-text-muted);margin:0}@media (max-width: 768px){.fx-page-header{flex-direction:column;gap:16px;margin-bottom:24px}.fx-page-title{font-size:28px}}.fx-toggle{display:inline-flex;gap:6px}.fx-btn-switch{--bg:transparent;--fg:var(--text);--bd:var(--border)}.fx-btn-switch.is-active{--bg:var(--g-violet);--fg:#fff;--bd:var(--g-violet)}.fx-nav-controls{display:inline-flex;gap:8px}.fx-weekdays{display:grid;grid-template-columns:repeat(7,1fr);padding:12px 16px;color:var(--text-muted)}.fx-add-trade{position:absolute;top:.5rem;right:.5rem;width:26px;height:26px;border-radius:8px;border:1px solid var(--border);background:var(--card);display:inline-flex;align-items:center;justify-content:center;font-weight:700;line-height:1;cursor:pointer;opacity:.9}.fx-add-trade:hover{opacity:1}.fx-strategies-controls{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;margin-bottom:24px}@media (max-width: 768px){.fx-strategies-controls{grid-template-columns:1fr}}@media (min-width: 769px) and (max-width: 1024px){.fx-strategies-controls{grid-template-columns:1fr 1fr}}.fx-strategies-search{position:relative;display:flex;align-items:center}.fx-strategies-search svg{position:absolute;left:12px;color:var(--fx-text-muted);pointer-events:none}.fx-strategies-search input{padding-left:40px;width:100%}.fx-strategies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px}@media (max-width: 768px){.fx-strategies-grid{grid-template-columns:1fr}}.fx-strategy-card{display:flex;flex-direction:column;height:100%;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.fx-strategy-card:hover{border-color:var(--fx-border-subtle, var(--fx-border))}.fx-strategy-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.fx-strategy-card-title{font-size:1.125rem;font-weight:600;margin:0 0 6px;color:var(--fx-text)}.fx-strategy-card-badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.fx-strategy-card-description{color:var(--fx-text-muted);font-size:.875rem;line-height:1.5;margin-bottom:16px}.fx-strategy-card-actions{display:flex;gap:8px}.fx-strategy-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;background:var(--fx-bg-secondary);border-radius:10px;margin-bottom:16px}.fx-strategy-kpi{text-align:center}.fx-strategy-kpi-label{font-size:.75rem;color:var(--fx-text-muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px}.fx-strategy-kpi-value{font-size:1.5rem;font-weight:600;color:var(--fx-text)}.fx-strategy-kpi-value.positive{color:var(--fx-up)}.fx-strategy-kpi-value.negative{color:var(--fx-down)}.fx-strategy-section{border-top:1px solid var(--fx-border);padding-top:16px;margin-top:16px}.fx-strategy-section-header{display:flex;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:8px;padding:6px 8px;margin-left:-8px;margin-right:-8px;border-radius:8px;transition:background .15s ease}.fx-strategy-section-header:hover{background:var(--fx-hover)}.fx-strategy-section-title{font-size:.875rem;font-weight:600;color:var(--fx-text);margin:0}.fx-strategy-section-toggle{width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.fx-strategy-section.expanded .fx-strategy-section-toggle{transform:rotate(180deg)}.fx-strategy-section-content{display:none;font-size:.875rem;color:var(--fx-text-muted);line-height:1.6;white-space:pre-wrap}.fx-strategy-section.expanded .fx-strategy-section-content{display:block}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:none}.modal.show{display:block}.modal-dialog{position:relative;max-width:min(1100px,92vw);margin:6vh auto}.modal-content{background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-2);overflow:hidden}.modal-header,.modal-body{padding:16px 18px}.modal-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.modal-title{margin:0;font-size:18px}.modal .close{border:none;background:transparent;font-size:22px;line-height:1;opacity:.7}.modal .close:hover{opacity:1}.fx-kpi{display:flex;gap:6px;align-items:baseline}.fx-kpi-label{color:var(--fx-muted);font-size:12px}.fx-kpi-value{font-weight:600}.fx-helpchip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid var(--fx-border);border-radius:var(--fx-radius);background:var(--fx-surface);text-decoration:none}.fx-controls{margin-left:auto;display:flex;align-items:center;gap:12px}.fx-month{font-weight:600;font-size:14px}.fx-ai img{height:48px;width:auto;border-radius:12px;display:block}.fx-header.fx-hero.fx-hero--plain{padding:28px;border-radius:var(--fx-r);border:1px solid var(--fx-border);background:var(--fx-card)}.fx-btn-switch{--bg: var(--fx-surface);--fg: var(--fx-text);--bd: var(--fx-border);box-shadow:var(--fx-shadow-sm, 0 1px 2px rgba(15,23,42,.04))}.fx-btn-switch.is-active{--bg: var(--fx-brand);--fg: #fff;--bd: var(--fx-brand)}.fx-icon-btn{width:32px;height:32px;border-radius:10px;border:1px solid var(--fx-border);background:var(--fx-surface)}.fx-header.is-stuck{box-shadow:var(--fx-shadow-float)}.fx-popover{position:absolute;width:320px;border-radius:16px;background:linear-gradient(135deg,#e7f0ffd9,#fff0f8d9) padding-box;box-shadow:0 12px 32px #00000024,inset 0 1px #ffffff80;-webkit-backdrop-filter:blur(10px) saturate(1.05);backdrop-filter:blur(10px) saturate(1.05);padding:18px 18px 12px;z-index:2000;transform:translateY(-6px);opacity:0;transition:transform .14s ease,opacity .14s ease}.fx-popover.open{transform:translateY(0);opacity:1}.fx-popover-close{position:absolute;top:10px;right:10px;border:0;background:transparent;cursor:pointer;line-height:0}.fx-popover-caret{position:absolute;right:18px;top:-8px;width:16px;height:16px;transform:rotate(45deg);background:inherit;filter:drop-shadow(0 2px 2px rgba(0,0,0,.08))}.fx-profile-hero{padding:8px 6px 10px}.fx-avatar-xl{width:88px;height:88px;border-radius:50%;overflow:hidden;border:3px solid rgba(120,140,255,.5)}.fx-avatar-xl img{width:100%;height:100%;object-fit:cover;display:block}.fx-profile-name{margin:12px 0 6px;font-size:22px;font-weight:800}.fx-profile-email{font-size:14px;opacity:.8}.fx-profile-actions{margin-top:8px}.fx-profile-link{width:100%;display:flex;align-items:center;gap:10px;padding:10px 6px;border-radius:10px;text-decoration:none;color:inherit;background:transparent;border:0;cursor:pointer}.fx-profile-link:hover{background:#0000000d}.fx-profile-sep{border:0;height:1px;background:#0000001f;margin:8px 0}.fx-hidden{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;height:0!important}.strategy-detail-page .fx-main{background:var(--content-bg)}.strategy-detail-page .fx-page{max-width:1400px;margin:0 auto}.strategy-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:16px;flex-wrap:wrap}.strategy-header-left{flex:1;min-width:300px}.strategy-header-right{display:flex;gap:8px;flex-wrap:wrap}.strategy-title{font-size:28px;font-weight:700;color:var(--fx-text);margin:0 0 12px}.strategy-badges{display:flex;gap:8px;flex-wrap:wrap}.strategy-badge{padding:6px 12px;border-radius:6px;font-size:13px;font-weight:500;background:var(--fx-card);border:1px solid var(--fx-border);color:var(--fx-text)}.strategy-kpi-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:20px}.strategy-kpi-card{padding:18px;display:flex;flex-direction:column;gap:4px;overflow:visible;position:relative;will-change:auto;transform:none!important}.strategy-kpi-card:has(.fx-info-popover.is-open),.strategy-kpi-card.popover-active{z-index:10}.strategy-kpi-label{font-size:13px;font-weight:500;color:var(--fx-text-muted);margin-bottom:8px}.strategy-kpi-value{font-size:24px;font-weight:700;color:var(--fx-text)}.strategy-kpi-value.positive{color:#10b981}.strategy-kpi-value.negative{color:#ef4444}.strategy-kpi-label{position:relative}.fx-info-trigger{font-size:11px;font-weight:400;color:var(--fx-text-muted, rgba(28, 33, 55, .5));cursor:pointer;margin-left:6px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px;transition:color .15s ease}.fx-info-trigger:hover{color:var(--fx-text, #1C2137)}.fx-info-popover{position:absolute;top:calc(100% + 8px);left:0;width:280px;background:var(--fx-surface-2);border:1px solid var(--fx-border);border-radius:10px;padding:14px 16px;box-shadow:0 8px 24px #1321371f;z-index:9999;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease;pointer-events:none}.fx-info-trigger:hover+.fx-info-popover,.fx-info-popover.is-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.fx-info-popover-title{font-size:13px;font-weight:600;color:var(--fx-text);margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--fx-border)}.fx-info-popover-body{font-size:12px;line-height:1.5;color:var(--fx-text-muted)}.fx-info-popover-body p{margin:0 0 6px}.fx-info-popover-body p:last-child{margin-bottom:0}.fx-info-popover-body strong{color:var(--fx-text);font-weight:600}.strategy-tabs-wrapper,.strategy-tabs-content-wrapper{width:100%;box-sizing:border-box}.strategy-tabs{display:flex;gap:4px;border-bottom:1px solid var(--fx-border);margin-bottom:24px;overflow-x:auto;position:relative;width:100%;box-sizing:border-box}.strategy-tab{padding:12px 20px;font-size:14px;font-weight:500;color:var(--fx-text-muted);background:transparent;border:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .2s,background .2s,border-color .2s;white-space:nowrap;flex-shrink:0;box-sizing:border-box;position:relative}.strategy-tab:hover{color:var(--fx-text);background:var(--fx-hover)}.strategy-tab.active{color:var(--fx-brand);border-bottom-color:var(--fx-brand)}.strategy-tab-content{display:none}.strategy-tab-content.active{display:block;animation:strategyTabFadeIn .2s ease}@keyframes strategyTabFadeIn{0%{opacity:0}to{opacity:1}}.strategy-section-title{font-size:16px;font-weight:600;color:var(--fx-text);margin:0 0 16px}.strategy-description{font-size:14px;line-height:1.6;color:var(--fx-text-muted);margin:0}.strategy-description-card{margin-bottom:16px}.strategy-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-bottom:16px}.strategy-rule-card{display:flex;flex-direction:column;gap:12px}.strategy-card-title{font-size:15px;font-weight:600;color:var(--fx-text);margin:0 0 12px;display:flex;align-items:center;gap:8px}.strategy-card-icon{width:20px;height:20px;opacity:.7}.strategy-card-content{font-size:14px;line-height:1.6;color:var(--fx-text-muted);white-space:pre-wrap}.strategy-card-content ol,.strategy-card-content ul{margin:8px 0;padding-left:20px}.strategy-card-content li{margin:4px 0}.strategy-checklist-card{background:#fef3c7;border-color:#fcd34d}.strategy-checklist-title{font-size:15px;font-weight:600;color:#92400e;margin:0 0 16px}.strategy-checklist{display:flex;flex-direction:column;gap:8px}.strategy-checklist-item{display:flex;gap:8px;font-size:14px;color:#78350f;line-height:1.5}.strategy-checklist-bullet{flex-shrink:0}.strategy-playbook-card{margin-bottom:16px}.strategy-playbook-card:last-child{margin-bottom:0}.strategy-playbook-heading{font-size:18px;font-weight:700;color:var(--fx-text);margin:0 0 16px}.strategy-playbook-text{font-size:14px;line-height:1.7;color:var(--fx-text-muted);margin-bottom:16px}.strategy-playbook-steps{list-style:none;counter-reset:step-counter;padding:0;margin:16px 0}.strategy-playbook-steps li{counter-increment:step-counter;position:relative;padding-left:40px;margin-bottom:12px;font-size:14px;line-height:1.6;color:var(--fx-text)}.strategy-playbook-steps li:before{content:counter(step-counter);position:absolute;left:0;top:0;width:28px;height:28px;background:var(--fx-brand);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px}.strategy-playbook-image{width:100%;height:200px;background:var(--fx-hover);border:2px dashed var(--fx-border);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--fx-text-muted);font-size:14px;margin:16px 0}.vr-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;border:2px dashed var(--fx-border);border-radius:8px;background:var(--fx-hover);text-align:center;gap:12px}.vr-empty-icon{width:48px;height:48px;color:var(--fx-text-muted);opacity:.5}.vr-empty-text{font-size:14px;line-height:1.6;color:var(--fx-text-muted);max-width:360px;margin:0}.vr-container{display:grid;grid-template-columns:200px 1fr;gap:20px;min-height:320px}.vr-sidebar{display:flex;flex-direction:column;gap:12px}.vr-thumbs{display:flex;flex-direction:column;gap:8px;max-height:400px;overflow-y:auto;padding-right:4px}.vr-thumb{position:relative;border:2px solid var(--fx-border);border-radius:8px;overflow:hidden;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease;background:var(--fx-hover)}.vr-thumb:hover{border-color:var(--fx-brand)}.vr-thumb.active{border-color:var(--fx-brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--fx-brand) 25%,transparent)}.vr-thumb img{width:100%;height:96px;object-fit:cover;display:block}.vr-thumb-label{display:block;padding:6px 8px;font-size:12px;font-weight:600;color:var(--fx-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vr-thumb-actions{position:absolute;top:4px;right:4px;display:flex;gap:2px;opacity:0;transition:opacity .15s ease}.vr-thumb:hover .vr-thumb-actions{opacity:1}.vr-action-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;border-radius:4px;background:#0000008c;color:#fff;cursor:pointer;padding:0;transition:background .15s ease}.vr-action-btn:hover{background:#000000bf}.vr-action-delete:hover{background:#dc2626}.vr-add-btn{width:100%;justify-content:center}.vr-preview{display:flex;flex-direction:column;gap:16px}.vr-preview-img-wrap{border:1px solid var(--fx-border);border-radius:8px;overflow:hidden;background:var(--fx-hover);display:flex;align-items:center;justify-content:center;min-height:240px}.vr-preview-img-wrap img{width:100%;max-height:420px;object-fit:contain;display:block}.vr-preview-fields{display:flex;flex-direction:column;gap:10px}.vr-field{width:100%;padding:10px 12px;font-size:14px;font-family:inherit;line-height:1.5;color:var(--fx-text);background:var(--card, var(--fx-bg));border:1px solid var(--fx-border);border-radius:8px;outline:none;transition:border-color .15s ease,box-shadow .15s ease;resize:vertical;box-sizing:border-box}.vr-field:focus{border-color:var(--fx-brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--fx-brand) 15%,transparent)}.vr-field::placeholder{color:var(--fx-text-muted);opacity:.5}@media (max-width: 768px){.vr-container{grid-template-columns:1fr}.vr-thumbs{flex-direction:row;overflow-x:auto;overflow-y:visible;max-height:none;padding-right:0;padding-bottom:4px}.vr-thumb{min-width:120px;flex-shrink:0}.vr-thumb img{height:72px}.vr-add-btn{width:auto;align-self:flex-start}}.strategy-analytics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-bottom:16px}.strategy-analytics-card{padding:18px;display:flex;flex-direction:column;gap:4px}.sa-setup-hint{margin-top:6px;display:flex;flex-direction:column;gap:6px}.sa-setup-hint-text{font-size:12px;color:var(--fx-text-muted);line-height:1.4}.sa-setup-hint-cta{font-size:12px;font-weight:600;color:var(--fx-primary, #2563eb);text-decoration:none;cursor:pointer;background:none;border:none;padding:0;text-align:left;font-family:inherit}.sa-setup-hint-cta:hover{text-decoration:underline}.ber-modal-content{max-width:720px;width:95%}.ber-note{font-size:13px;color:var(--fx-text-muted, #6b7280);line-height:1.5;margin:0}.ber-table-wrap{overflow-x:auto;margin:0 -24px;padding:0 24px}.ber-table{width:100%;border-collapse:collapse;font-size:13px}.ber-th{text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--fx-text-muted, #6b7280);padding:8px 10px;border-bottom:1px solid var(--ring, var(--fx-border));white-space:nowrap}.ber-th--status{width:56px}.ber-row{transition:background .1s}.ber-row:hover{background:var(--bg, var(--fx-hover))}.ber-cell{padding:8px 10px;border-bottom:1px solid var(--ring, var(--fx-border));color:var(--ink, var(--fx-text));white-space:nowrap}.ber-cell--pnl{font-variant-numeric:tabular-nums}.ber-cell--input{min-width:120px}.ber-cell--status{text-align:center}.ber-result{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:600}.ber-result--win{color:#059669;background:#05966914}.ber-result--loss{color:#dc2626;background:#dc262614}.ber-result--be{color:#6b7280;background:#6b728014}.ber-input-wrap{display:flex;align-items:center;gap:2px;border:1px solid var(--ring, var(--fx-border));border-radius:6px;padding:0 8px;transition:border-color .15s}.ber-input-wrap:focus-within{border-color:var(--fx-primary, #2563eb);box-shadow:0 0 0 2px #2563eb1a}.ber-input-prefix{font-size:13px;color:var(--fx-text-muted, #9ca3af);flex-shrink:0}.ber-risk-input{width:100%;border:none;outline:none;font-size:13px;font-family:inherit;padding:6px 0;background:transparent;color:var(--ink, var(--fx-text))}.ber-risk-input::placeholder{color:var(--fx-text-muted, #d1d5db)}.ber-input--error{border-color:#dc2626!important;box-shadow:0 0 0 2px #dc26261a!important}.ber-status{font-size:11px;font-weight:600}.ber-status--ok{color:#059669}.ber-status--error{color:#dc2626}.sa-charts-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sa-chart-card{padding:18px}.sa-chart-card .strategy-section-title{margin:0 0 12px}.sa-chart-wrap{position:relative;height:280px}.sa-chart-wrap--session{height:180px}.sa-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:60px 20px;color:var(--fx-text-muted);font-size:14px}.sa-spinner{width:20px;height:20px;border:2px solid var(--fx-border);border-top-color:var(--fx-primary, #2563eb);border-radius:50%;animation:sa-spin .6s linear infinite}@keyframes sa-spin{to{transform:rotate(360deg)}}.sa-empty-state{display:flex;align-items:center;justify-content:center;height:100%;min-height:120px;color:var(--fx-text-muted);font-size:13px}.sa-filter-bar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.sa-filter-pills{display:flex;gap:6px;flex-wrap:wrap}.sa-filter-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:var(--fx-hover, #f1f5f9);border:1px solid var(--fx-border, #e2e8f0);border-radius:16px;font-size:12px;font-weight:500;color:var(--fx-text, #334155);line-height:1;white-space:nowrap;animation:sa-pill-in .15s ease-out}@keyframes sa-pill-in{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.sa-pill-close{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--fx-text-muted, #94a3b8);font-size:14px;line-height:1;cursor:pointer;transition:background .15s,color .15s}.sa-pill-close:hover{background:var(--fx-border, #e2e8f0);color:var(--fx-text, #334155)}.sa-view-trades-btn{margin-left:auto;text-decoration:none;font-size:12px;padding:5px 14px}@media (max-width: 900px){.sa-charts-row{grid-template-columns:1fr}}.strategy-trades-card{margin-bottom:0;padding:20px 24px}.strategy-trades-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:16px;flex-wrap:wrap}.strategy-trades-header .strategy-section-title{margin:0;font-size:16px;font-weight:600}.strategy-trades-controls{display:flex;align-items:center;gap:12px;flex:1;justify-content:flex-end;flex-wrap:wrap}.strategy-trades-filters{display:flex;gap:8px;align-items:center}.strategy-trades-filters .fx-input,.strategy-trades-filters .fx-select{height:36px;padding:8px 12px;font-size:13px;font-weight:500;background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:10px;color:var(--fx-text);transition:all .2s ease;box-shadow:0 1px 2px #0000000a}.strategy-trades-filters .fx-input{min-width:200px}.strategy-trades-filters .fx-select{min-width:160px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right 8px center;background-repeat:no-repeat;background-size:1.25em 1.25em;padding-right:2.5rem;cursor:pointer}.strategy-trades-filters .fx-input:hover,.strategy-trades-filters .fx-select:hover{border-color:var(--fx-border);box-shadow:0 2px 4px #0000000f}.strategy-trades-filters .fx-input:focus,.strategy-trades-filters .fx-select:focus{outline:none;border-color:#8b85ff;box-shadow:0 0 0 3px #8b85ff26}.strategy-view-toggle{display:flex;gap:0;background:var(--fx-hover);border-radius:8px;padding:2px}.strategy-view-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:none;background:transparent;color:var(--fx-text-muted);font-size:13px;font-weight:500;border-radius:6px;cursor:pointer;transition:all .15s ease}.strategy-view-btn svg{opacity:.6}.strategy-view-btn:hover{color:var(--fx-text)}.strategy-view-btn.active{background:var(--fx-surface);color:var(--fx-text);box-shadow:0 1px 2px #0000000d}.strategy-view-btn.active svg{opacity:1}.strategy-trades-table-wrapper{overflow-x:auto;margin:0 -24px;padding:0 24px 12px}.strategy-trades-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;table-layout:auto}.strategy-trades-table thead{background:var(--fx-hover)}.strategy-trades-table thead th{position:sticky;top:0;z-index:1}.strategy-trades-table th{padding:12px 10px;border-bottom:1px solid var(--fx-border);font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:600;color:var(--fx-text-muted);text-align:left;white-space:nowrap}.strategy-trades-table thead th:first-child{border-top-left-radius:10px}.strategy-trades-table thead th:last-child{border-top-right-radius:10px}.strategy-trades-table td{padding:10px;border-bottom:1px solid var(--fx-border);color:var(--fx-text);white-space:nowrap}.strategy-trades-table td:nth-child(3){text-align:center}.strategy-trades-table td:nth-child(4){text-align:right}.strategy-trades-table tbody tr:nth-child(odd){background-color:var(--fx-surface)}.strategy-trades-table tbody tr:nth-child(2n){background-color:var(--fx-hover)}.strategy-trades-table tbody tr:hover{background:var(--fx-hover)!important;cursor:pointer}.strategy-trades-table .trade-notes{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fx-text-muted);font-size:12px}.tv-status-pill{display:inline-block;padding:3px 10px;border-radius:4px;font-size:11px;font-weight:600;text-transform:none;letter-spacing:.02em;line-height:1.4;vertical-align:middle}.tv-status-pill--win{background:#7edd85;color:#14532d}.tv-status-pill--loss{background:#f89b9b;color:#7f1d1d}.tv-status-pill--be{background:#fbbaa4;color:#6b3a22}.tv-pnl-positive{color:#059669;font-weight:600}.tv-pnl-negative{color:#dc2626;font-weight:600}.strategy-trades-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;padding:12px 0}.strategy-trade-card{background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:12px;overflow:hidden;transition:all .2s ease;cursor:pointer}.strategy-trade-card:hover{transform:translateY(-2px);box-shadow:0 8px 16px #00000014;border-color:var(--fx-border)}.trade-card-image{width:100%;height:160px;overflow:hidden}.trade-card-image img{width:100%;height:100%;object-fit:cover;display:block}.trade-card-image-placeholder{width:100%;height:160px;background:linear-gradient(135deg,#f5f6fb,#e8eaf6);display:flex;align-items:center;justify-content:center;color:#6b72804d}.trade-card-content{padding:16px}.trade-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.trade-card-market{font-size:16px;font-weight:600;color:var(--fx-text)}.trade-card-pnl{font-size:20px;font-weight:700;margin-bottom:12px}.trade-card-meta{display:flex;gap:12px;align-items:center;margin-bottom:8px;font-size:12px;color:var(--fx-text-muted)}.trade-card-date,.trade-card-session{display:inline-flex;align-items:center;gap:4px}.trade-card-notes{font-size:12px;color:var(--fx-text-muted);line-height:1.4;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 768px){.strategy-trades-grid{grid-template-columns:1fr}.strategy-trades-controls,.strategy-trades-filters{width:100%}.strategy-trades-filters .fx-input,.strategy-trades-filters .fx-select{flex:1;min-width:0}}.empty-state{text-align:center;padding:60px 20px}.empty-state-icon{font-size:48px;margin-bottom:16px;opacity:.3}.empty-state-title{font-size:20px;font-weight:600;color:var(--fx-text);margin:0 0 8px}.empty-state-text{font-size:14px;color:var(--fx-text-muted);margin:0 0 16px}.fx-btn svg{margin-right:6px}.strategy-charts-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:16px;margin-top:24px}.empty-trades-message{text-align:center;padding:40px;color:var(--fx-text-muted);font-size:14px}.required-asterisk{color:#ef4444}.delete-confirm-text{margin:0;color:var(--fx-text)}.delete-confirm-warning{margin:8px 0 0;color:var(--fx-text-muted);font-size:14px}.fx-strategy-card-header-left{flex:1}.fx-strategy-card-link{color:inherit;text-decoration:none}.fx-strategy-card-footer{margin-top:16px;padding-top:16px;border-top:1px solid var(--fx-border)}.fx-btn-full{width:100%;justify-content:center}@media (max-width: 768px){.strategy-detail-page .fx-main{padding:16px}.strategy-title{font-size:24px}.strategy-kpi-strip{grid-template-columns:repeat(2,1fr)}.strategy-cards-grid,.strategy-analytics-grid,.strategy-charts-container{grid-template-columns:1fr}}html[data-theme=dark] .fx-strategy-card{background:var(--fx-card);border-color:var(--fx-border-subtle)}html[data-theme=dark] .fx-strategy-card:hover{border-color:#ffffff29;box-shadow:0 8px 24px #0000004d}html[data-theme=dark] .fx-strategy-card-title,html[data-theme=dark] .fx-strategy-card-link{color:var(--fx-text)}html[data-theme=dark] .fx-strategy-card-description{color:var(--fx-text-muted)}html[data-theme=dark] .fx-strategy-kpis{background:var(--fx-surface-2);border:1px solid var(--fx-border-subtle)}html[data-theme=dark] .fx-strategy-kpi-label{color:var(--fx-text-muted)}html[data-theme=dark] .fx-strategy-kpi-value{color:var(--fx-text)}html[data-theme=dark] .fx-strategy-kpi-value.positive{color:var(--fx-up)}html[data-theme=dark] .fx-strategy-kpi-value.negative{color:var(--fx-down)}html[data-theme=dark] .fx-strategy-section{border-top-color:var(--fx-border-subtle)}html[data-theme=dark] .fx-strategy-section-header:hover{background:var(--fx-surface-2);border-radius:8px}html[data-theme=dark] .fx-strategy-section-title{color:var(--fx-text)}html[data-theme=dark] .fx-strategy-section-toggle,html[data-theme=dark] .fx-strategy-section-content{color:var(--fx-text-muted)}html[data-theme=dark] .fx-strategy-card-footer{border-top-color:var(--fx-border-subtle)}html[data-theme=dark] .fx-strategy-card-actions .fx-btn{background:var(--fx-surface-2);border-color:var(--fx-border-subtle);color:var(--fx-text-muted)}html[data-theme=dark] .fx-strategy-card-actions .fx-btn:hover{background:var(--fx-surface-3);border-color:#ffffff29}html[data-theme=dark] .fx-strategy-card .fx-chip{background:var(--fx-surface-2);border-color:var(--fx-border-subtle);color:var(--fx-text-muted)}html[data-theme=dark] .fx-strategy-card-footer .fx-btn-outline{background:var(--fx-surface-2);border-color:var(--fx-border-subtle);color:var(--fx-text)}html[data-theme=dark] .fx-strategy-card-footer .fx-btn-outline:hover{background:var(--fx-surface-3)}html[data-theme=dark] .fx-strategies-controls .fx-input{background:var(--fx-card);border-color:var(--fx-border-subtle);color:var(--fx-text)}html[data-theme=dark] .fx-strategies-controls .fx-input:hover{border-color:#ffffff29}html[data-theme=dark] .fx-strategies-controls .fx-input:focus{border-color:var(--fx-brand)}html[data-theme=dark] .fx-strategies-search svg{color:var(--fx-text-muted)}html[data-theme=dark] .fx-page-title{color:var(--fx-text)}html[data-theme=dark] .fx-page-subtitle{color:var(--fx-text-muted)}html[data-theme=dark] .strategy-checklist-card{background:#fbbf2414;border-color:#fbbf2433}html[data-theme=dark] .strategy-checklist-title{color:#fbbf24}html[data-theme=dark] .strategy-checklist-item{color:#fde68ad9}html[data-theme=dark] .trade-card-image-placeholder{background:linear-gradient(135deg,var(--fx-surface-2) 0%,rgba(255,255,255,.03) 100%);color:#94a3b840}html[data-theme=dark] .strategy-trade-card:hover{box-shadow:0 8px 24px #0000004d}html[data-theme=dark] .tv-status-pill--win{background:#7edd8526;color:#6ee7b7}html[data-theme=dark] .tv-status-pill--loss{background:#f89b9b1f;color:#fca5a5}html[data-theme=dark] .tv-status-pill--be{background:#fbbaa41f;color:#fdba74}html[data-theme=dark] .tv-pnl-positive{color:var(--fx-up)}html[data-theme=dark] .tv-pnl-negative{color:var(--fx-down)}html[data-theme=dark] .strategy-kpi-value.positive{color:var(--fx-up)}html[data-theme=dark] .strategy-kpi-value.negative{color:var(--fx-down)}html[data-theme=dark] .fx-info-popover{box-shadow:0 8px 24px #0006}html[data-theme=dark] .strategy-trades-table tbody tr:hover{background:#ffffff08!important}html[data-theme=dark] .strategy-trades-table thead{background:var(--fx-surface-2)}html[data-theme=dark] .strategy-trades-filters .fx-input,html[data-theme=dark] .strategy-trades-filters .fx-select{box-shadow:0 1px 2px #00000026}html[data-theme=dark] .strategy-trades-filters .fx-input:hover,html[data-theme=dark] .strategy-trades-filters .fx-select:hover{box-shadow:0 2px 4px #0003}html[data-theme=dark] .strategy-view-btn.active{box-shadow:0 1px 3px #00000040}html[data-theme=dark] .strategy-detail-page .fx-main{background:var(--fx-bg)}html[data-theme=dark] .strategy-detail-page .fx-card{background:var(--fx-card);border-color:#ffffff0f;box-shadow:0 2px 8px #0003}html[data-theme=dark] .strategy-detail-page .strategy-title{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .strategy-badge{background:var(--fx-surface-2);border-color:#ffffff0f;color:var(--fx-text-muted)}html[data-theme=dark] .strategy-detail-page .strategy-kpi-card{background:var(--fx-surface-2);border-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .strategy-kpi-label{color:#eaf0ff73}html[data-theme=dark] .strategy-detail-page .strategy-kpi-value{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .strategy-kpi-value.positive{color:var(--fx-up)}html[data-theme=dark] .strategy-detail-page .strategy-kpi-value.negative{color:var(--fx-down)}html[data-theme=dark] .strategy-detail-page .strategy-tabs{border-bottom-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .strategy-tab{color:var(--fx-text-muted)}html[data-theme=dark] .strategy-detail-page .strategy-tab:hover{color:var(--fx-text);background:#ffffff0a}html[data-theme=dark] .strategy-detail-page .strategy-tab.active{color:var(--fx-brand)}html[data-theme=dark] .strategy-detail-page .strategy-section-title{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .strategy-description{color:#eaf0ffb3}html[data-theme=dark] .strategy-detail-page .strategy-card-title{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .strategy-card-icon{color:var(--fx-text-muted)}html[data-theme=dark] .strategy-detail-page .strategy-card-content{color:#eaf0ffb3}html[data-theme=dark] .strategy-detail-page .strategy-playbook-heading{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .strategy-playbook-content,html[data-theme=dark] .strategy-detail-page .strategy-formatted-content{color:#eaf0ffb3}html[data-theme=dark] .strategy-detail-page .vr-empty{background:#ffffff05;border-color:#ffffff14}html[data-theme=dark] .strategy-detail-page .vr-empty-text{color:#eaf0ff73}html[data-theme=dark] .strategy-detail-page .vr-thumb{background:var(--fx-surface-2);border-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .vr-thumb:hover{border-color:var(--fx-brand)}html[data-theme=dark] .strategy-detail-page .vr-thumb-label{color:#eaf0ffb3}html[data-theme=dark] .strategy-detail-page .vr-preview-img-wrap{background:#ffffff05;border-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .vr-field{background:var(--fx-surface-2);border-color:#ffffff0f;color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .vr-field::placeholder{color:#eaf0ff4d}html[data-theme=dark] .strategy-detail-page .strategy-analytics-card,html[data-theme=dark] .strategy-detail-page .sa-chart-card{background:var(--fx-surface-2);border-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .sa-filter-pill{background:var(--fx-surface-2);border-color:#ffffff0f;color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .sa-pill-close:hover{background:var(--fx-surface-3);color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .strategy-trades-card{background:var(--fx-card);border-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-input,html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-select{background:var(--fx-surface-2);border-color:#ffffff14;color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-input::placeholder{color:var(--fx-text-muted)}html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-input:hover,html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-select:hover{border-color:#ffffff26}html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-input:focus,html[data-theme=dark] .strategy-detail-page .strategy-trades-filters .fx-select:focus{border-color:var(--fx-brand);box-shadow:0 0 0 3px #8b85ff26}html[data-theme=dark] .strategy-detail-page .strategy-view-toggle{background:var(--fx-surface-2)}html[data-theme=dark] .strategy-detail-page .strategy-view-btn{color:var(--fx-text-muted)}html[data-theme=dark] .strategy-detail-page .strategy-view-btn:hover{color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .strategy-view-btn.active{background:var(--fx-surface-3);color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .strategy-trades-table thead{background:var(--fx-surface-2)}html[data-theme=dark] .strategy-detail-page .strategy-trades-table th{color:#eaf0ff73;border-bottom-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .strategy-trades-table td{color:var(--fx-text);border-bottom-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .strategy-trades-table tbody tr:nth-child(odd){background-color:var(--fx-card)}html[data-theme=dark] .strategy-detail-page .strategy-trades-table tbody tr:nth-child(2n){background-color:var(--fx-surface-2)}html[data-theme=dark] .strategy-detail-page .strategy-trades-table tbody tr:hover{background:#ffffff0a!important}html[data-theme=dark] .strategy-detail-page .strategy-trade-card{background:var(--fx-surface-2);border-color:#ffffff0f}html[data-theme=dark] .strategy-detail-page .strategy-trade-card:hover{border-color:#ffffff1f;box-shadow:0 8px 24px #0000004d}html[data-theme=dark] .strategy-detail-page .trade-card-image-placeholder{background:linear-gradient(135deg,var(--fx-surface-2) 0%,rgba(255,255,255,.03) 100%);color:#94a3b840}html[data-theme=dark] .strategy-detail-page .trade-card-market{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .trade-card-meta,html[data-theme=dark] .strategy-detail-page .trade-card-date,html[data-theme=dark] .strategy-detail-page .trade-card-session{color:#eaf0ff73}html[data-theme=dark] .strategy-detail-page .trade-card-notes{color:#eaf0ff8c}html[data-theme=dark] .strategy-detail-page .fx-btn-outline{background:var(--fx-surface-2);border-color:#ffffff14;color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .fx-btn-outline:hover{background:var(--fx-surface-3);border-color:#ffffff26}html[data-theme=dark] .strategy-detail-page .fx-btn-primary{box-shadow:0 2px 8px #00000040}html[data-theme=dark] .strategy-detail-page .empty-trades-message{color:var(--fx-text-muted)}html[data-theme=dark] .strategy-detail-page .empty-state-title{color:#eaf0ff}html[data-theme=dark] .strategy-detail-page .empty-state-text{color:#eaf0ff8c}html[data-theme=dark] .strategy-detail-page .fx-info-trigger{color:#eaf0ff66}html[data-theme=dark] .strategy-detail-page .fx-info-trigger:hover{color:var(--fx-text)}html[data-theme=dark] .strategy-detail-page .fx-info-popover{background:var(--fx-surface-2);border-color:#ffffff14;box-shadow:0 8px 24px #0006}html[data-theme=dark] .strategy-detail-page .sa-setup-hint-text{color:#eaf0ff73}html[data-theme=dark] .strategy-detail-page .sa-setup-hint-cta{color:var(--fx-brand)}html[data-theme=dark] .fx-rte-btn.active{background:#6366f126;color:#818cf8}html[data-theme=dark] .ber-result--win{color:#34d399;background:#34d3991a}html[data-theme=dark] .ber-result--loss{color:#f87171;background:#f871711a}html[data-theme=dark] .ber-result--be{color:#94a3b8;background:#94a3b814}
