*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--page-bg: #f0f2f5;--surface: #fff;--surface-secondary: #f9fafb;--surface-tertiary: #f3f4f6;--surface-hover: #f9fafb;--text-primary: #1a1a2e;--text-secondary: #374151;--text-muted: #6b7280;--text-placeholder: #9ca3af;--primary: #387ed1;--primary-hover: #2c6ab8;--primary-light: #e8f0fe;--primary-light-hover: #f0f5ff;--accent: #6366f1;--accent-hover: #4f46e5;--accent-light: #eef2ff;--accent-border: #a5b4fc;--border: #e5e7eb;--border-light: #f0f0f0;--border-strong: #d1d5db;--border-section: #eef0f2;--shadow-xs: 0 1px 4px rgba(0, 0, 0, .06);--shadow-sm: 0 1px 3px rgba(0, 0, 0, .04);--shadow-md: 0 4px 16px rgba(0, 0, 0, .1);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .1);--shadow-xl: 0 8px 32px rgba(0, 0, 0, .15);--shadow-card: 0 4px 24px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);--shadow-card-hover: 0 4px 20px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);--shadow-card-sm: 0 2px 12px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .03);--success: #22c55e;--success-text: #166534;--success-bg: #dcfce7;--success-bg-alt: #f0fdf4;--success-border: #bbf7d0;--success-border-alt: #a7f3d0;--error: #ef4444;--error-text: #991b1b;--error-text-strong: #dc2626;--error-bg: #fef2f2;--error-bg-hover: #fee2e2;--error-border: #fecaca;--error-border-strong: #fca5a5;--error-border-hover: #f87171;--dot-glow-green: rgba(34, 197, 94, .35);--dot-glow-red: rgba(239, 68, 68, .35);--dot-glow-orange: rgba(245, 158, 11, .35);--warning: #f59e0b;--warning-text: #854d0e;--warning-text-strong: #d97706;--warning-bg: #fef9c3;--warning-bg-alt: #fffbeb;--warning-bg-hover: #fef08a;--warning-border: #fde68a;--info-text: #1e40af;--info-bg: #dbeafe;--info-bg-light: #eff6ff;--info-bg-alt: #f0f7ff;--info-border: #bfdbfe;--info-border-light: #93c5fd;--indigo-text: #3730a3;--indigo-bg: #e0e7ff;--orange-text: #9a3412;--orange-bg: #ffedd5;--tooltip-bg: #1f2937;--tooltip-text: #fff;--tooltip-divider: rgba(255, 255, 255, .15);--overlay: rgba(0, 0, 0, .4);--overlay-strong: rgba(0, 0, 0, .5);--chart-stroke: #387ed1;--chart-fill: rgba(56, 126, 209, .1);--chart-volume: rgba(56, 126, 209, .25);--chart-grid: #f0f0f0;--chart-brush: #d1d5db;--focus-ring: rgba(56, 126, 209, .12);--link: #387ed1;--link-hover: #2c6ab8;--backdrop: rgba(0, 0, 0, .3);--sidebar-active-bg: #e8f0fe;--sidebar-active-text: #387ed1;--cycle-banner-bg: #f0f5ff;--backtest-bg: #f0f9ff;--backtest-border: #bae6fd;--backtest-text: #0c4a6e;--explainer-highlight-bg: #fffbeb;--explainer-highlight-border: #fde68a;--explainer-highlight-text: #92400e;--explainer-bg: #fafbfc;--explainer-bg-open: #fff;--explainer-border: #eef0f2;--explainer-border-open: #d4d8de;--explainer-hover: #f3f5f7;--step-num-bg: #1e40af;--step-num-text: #fff;--condition-bg: #f0fdf4;--condition-border: #bbf7d0;--condition-check: #16a34a;--lifecycle-connector: #d1d5db;--mode-paper-bg: #dbeafe;--mode-paper-text: #1e40af;--mode-live-bg: #fef9c3;--mode-live-text: #854d0e;--summary-bar-bg: #f9fafb;--exposure-bar: #387ed1;--exposure-warn: #ef4444;--kite-disconnect-bg: #fef2f2;--kite-disconnect-border: #fecaca;--kite-disconnect-text: #991b1b;--kite-btn-bg: #dc2626;--kite-btn-hover: #b91c1c;--explanation-card-bg: #f0f7ff;--explanation-card-border: #3b82f6;--etf-chip-bg: #f0f5ff;--etf-chip-border: #dbeafe;--etf-chip-symbol: #1e40af;--positive-text: #16a34a;--negative-text: #dc2626;--rsi-green-text: #16a34a;--rsi-yellow-text: #ca8a04;--rsi-red-text: #dc2626;--input-bg: #f9fafb;--input-bg-focus: #fff;--trade-pill-shadow: rgba(56, 126, 209, .3);--trade-real-shadow: rgba(245, 158, 11, .3)}[data-theme=dark]{--page-bg: #0d1117;--surface: #161b22;--surface-secondary: #1c2128;--surface-tertiary: #21262d;--surface-hover: #1c2128;--text-primary: #e6edf3;--text-secondary: #c9d1d9;--text-muted: #8b949e;--text-placeholder: #6e7681;--primary: #58a6ff;--primary-hover: #79bbff;--primary-light: #1a3a5c;--primary-light-hover: #1c3d5f;--accent: #a5b4fc;--accent-hover: #818cf8;--accent-light: #1e1b4b;--accent-border: #6366f1;--border: #30363d;--border-light: #21262d;--border-strong: #484f58;--border-section: #21262d;--shadow-xs: 0 1px 4px rgba(0, 0, 0, .3);--shadow-sm: 0 1px 3px rgba(0, 0, 0, .25);--shadow-md: 0 4px 16px rgba(0, 0, 0, .4);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .4);--shadow-xl: 0 8px 32px rgba(0, 0, 0, .5);--shadow-card: 0 4px 24px rgba(0, 0, 0, .25), 0 1px 4px rgba(0, 0, 0, .2);--shadow-card-hover: 0 4px 20px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .2);--shadow-card-sm: 0 2px 12px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .2);--success: #3fb950;--success-text: #7ee787;--success-bg: #122117;--success-bg-alt: #0d1a12;--success-border: #1b4332;--success-border-alt: #196c3d;--error: #f85149;--error-text: #ffa198;--error-text-strong: #f85149;--error-bg: #2d1214;--error-bg-hover: #3d1519;--error-bg-alt: #2d1214;--error-border: #5c2125;--error-border-strong: #8b3035;--error-border-hover: #da3633;--dot-glow-green: rgba(63, 185, 80, .5);--dot-glow-red: rgba(248, 81, 73, .5);--dot-glow-orange: rgba(210, 153, 34, .5);--warning: #d29922;--warning-text: #e3b341;--warning-text-strong: #d29922;--warning-bg: #2a1f0a;--warning-bg-alt: #1f1804;--warning-bg-hover: #3d2e0c;--warning-border: #5c4616;--info-text: #79c0ff;--info-bg: #0d2240;--info-bg-light: #0c1d36;--info-bg-alt: #0d1f3c;--info-border: #1f4275;--info-border-light: #316dca;--indigo-text: #a5b4fc;--indigo-bg: #1e1b4b;--orange-text: #fba26e;--orange-bg: #2d1a04;--tooltip-bg: #2d333b;--tooltip-text: #e6edf3;--tooltip-divider: rgba(255, 255, 255, .1);--overlay: rgba(0, 0, 0, .6);--overlay-strong: rgba(0, 0, 0, .7);--chart-stroke: #58a6ff;--chart-fill: rgba(88, 166, 255, .12);--chart-volume: rgba(88, 166, 255, .2);--chart-grid: #21262d;--chart-brush: #484f58;--focus-ring: rgba(88, 166, 255, .2);--link: #58a6ff;--link-hover: #79bbff;--backdrop: rgba(0, 0, 0, .5);--sidebar-active-bg: #1a3a5c;--sidebar-active-text: #58a6ff;--cycle-banner-bg: #0d2240;--backtest-bg: #0c1d36;--backtest-border: #1f4275;--backtest-text: #79c0ff;--explainer-highlight-bg: #2a1f0a;--explainer-highlight-border: #5c4616;--explainer-highlight-text: #e3b341;--explainer-bg: #1c2128;--explainer-bg-open: #161b22;--explainer-border: #21262d;--explainer-border-open: #30363d;--explainer-hover: #21262d;--step-num-bg: #316dca;--step-num-text: #e6edf3;--condition-bg: #0d1a12;--condition-border: #1b4332;--condition-check: #3fb950;--lifecycle-connector: #484f58;--mode-paper-bg: #0d2240;--mode-paper-text: #79c0ff;--mode-live-bg: #2a1f0a;--mode-live-text: #e3b341;--summary-bar-bg: #1c2128;--exposure-bar: #58a6ff;--exposure-warn: #f85149;--kite-disconnect-bg: #2d1214;--kite-disconnect-border: #5c2125;--kite-disconnect-text: #ffa198;--kite-btn-bg: #da3633;--kite-btn-hover: #b62324;--explanation-card-bg: #0d2240;--explanation-card-border: #316dca;--etf-chip-bg: #0d2240;--etf-chip-border: #1f4275;--etf-chip-symbol: #79c0ff;--positive-text: #3fb950;--negative-text: #f85149;--rsi-green-text: #3fb950;--rsi-yellow-text: #d29922;--rsi-red-text: #f85149;--input-bg: #1c2128;--input-bg-focus: #161b22;--trade-pill-shadow: rgba(88, 166, 255, .3);--trade-real-shadow: rgba(210, 153, 34, .3)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--page-bg);color:var(--text-primary);line-height:1.5;transition:background-color .2s,color .2s}.etf-table-section{margin-top:2rem}.etf-table-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;flex-wrap:wrap;gap:.75rem}.etf-table-header h2{font-size:1.15rem;font-weight:700;color:var(--text-primary);margin:0}.btn-close-table{background:none;border:none;font-size:1.5rem;color:var(--text-muted);cursor:pointer;line-height:1;padding:.2rem;transition:color .2s}.btn-close-table:hover{color:var(--text-primary)}.etf-table-wrap{background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card-sm);overflow:hidden}.etf-table{width:100%;border-collapse:collapse;font-size:.88rem}.etf-table th{text-align:left;padding:.7rem 1rem;font-weight:700;color:var(--text-secondary);background:var(--surface-secondary);border-bottom:1.5px solid var(--border);white-space:nowrap}.etf-table td{padding:.6rem 1rem;color:var(--text-primary);border-bottom:1px solid var(--surface-tertiary);white-space:nowrap;font-variant-numeric:tabular-nums}.etf-table tbody tr:hover{background:var(--surface-secondary)}.etf-pagination{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;flex-wrap:wrap;gap:.75rem;border-bottom:1px solid var(--border)}.etf-pagination:last-child{border-bottom:none;border-top:1px solid var(--border)}.etf-pagination-info{font-size:.82rem;color:var(--text-muted)}.etf-pagination-controls{display:flex;align-items:center;gap:.4rem}.btn-page{padding:.35rem .7rem;font-size:.8rem;font-weight:600;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:background .15s,border-color .15s}.btn-page:hover:not(:disabled){background:var(--surface-tertiary)}.btn-page:disabled{opacity:.4;cursor:not-allowed}.btn-page.active{background:var(--primary);color:#fff;border-color:var(--primary)}.per-page-select{padding:.3rem .5rem;font-size:.8rem;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text-secondary);cursor:pointer}.etf-empty{text-align:center;color:var(--text-muted);padding:3rem 1rem;font-size:.95rem}.etf-loading{text-align:center;color:var(--text-muted);padding:3rem 1rem;font-size:1rem}.date-cell-primary{white-space:nowrap}.date-cell-secondary{white-space:nowrap;font-size:.8rem;color:var(--text-secondary);margin-top:2px}.cycle-actions-cell{white-space:nowrap}.cycle-action-link{display:block;padding:.2rem .55rem;font-size:.72rem;font-weight:600;border-radius:5px;text-decoration:none;margin-bottom:.2rem;transition:background .15s,color .15s}.cycle-action-signals{background:var(--info-bg-light);color:var(--info-text)}.cycle-action-signals:hover{background:var(--info-bg);color:var(--info-text)}.cycle-action-orders{background:var(--success-bg-alt);color:var(--positive-text)}.cycle-action-orders:hover{background:var(--success-bg);color:var(--success-text)}.chart-modal-overlay{position:fixed;inset:0;background:var(--overlay-strong);display:flex;align-items:center;justify-content:center;z-index:600;padding:1rem}.chart-modal-content{background:var(--surface);border-radius:16px;padding:1.5rem;width:95%;max-width:960px;max-height:90vh;overflow-y:auto;box-shadow:0 12px 48px #0000002e}.chart-modal-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:1rem}.chart-modal-header h3{font-size:1.15rem;font-weight:700;color:var(--text-primary);margin:0}.chart-modal-symbol{font-size:.78rem;font-weight:600;color:var(--text-placeholder)}.chart-modal-close{background:none;border:none;font-size:1.6rem;color:var(--text-placeholder);cursor:pointer;line-height:1;padding:0 .25rem;transition:color .15s}.chart-modal-close:hover{color:var(--text-secondary)}.chart-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.chart-range-group{display:flex;gap:.25rem}.chart-range-btn{padding:.3rem .7rem;font-size:.78rem;font-weight:600;border:1.5px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text-muted);cursor:pointer;transition:all .15s}.chart-range-btn:hover{background:var(--surface-hover);border-color:var(--border-strong)}.chart-range-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.chart-body{min-height:200px}.chart-status{text-align:center;color:var(--text-placeholder);padding:3rem 1rem;font-size:.95rem}.chart-status.chart-error{color:var(--error-text-strong)}.chart-tooltip{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem;box-shadow:var(--shadow-md);font-size:.78rem;line-height:1.6}.chart-tooltip p{margin:0}.chart-tooltip-date{font-weight:700;color:var(--text-secondary);margin-bottom:.2rem}.btn-chart{background:var(--info-bg-light);color:var(--primary);border-color:var(--info-border)}.btn-chart:hover:not(:disabled){background:var(--info-bg);border-color:var(--info-border-light)}@media(max-width:768px){.chart-modal-content{width:100%;max-width:100%;border-radius:12px;padding:1rem}.chart-controls{flex-direction:column;align-items:flex-start}}.navbar{position:fixed;top:0;left:0;right:0;height:56px;background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;box-shadow:var(--shadow-xs);z-index:100}.navbar-left{display:flex;align-items:center;gap:.5rem}.navbar-brand{font-size:1.2rem;font-weight:800;color:var(--primary);letter-spacing:-.5px}.navbar-hamburger{display:none;background:none;border:none;cursor:pointer;padding:.35rem;color:var(--text-secondary);align-items:center}.navbar-right{display:flex;align-items:center;gap:.75rem}.trade-mode-pill{display:flex;background:var(--surface-tertiary);border:1.5px solid var(--border);border-radius:8px;padding:3px;gap:2px}.trade-mode-opt{padding:.3rem .7rem;font-size:.78rem;font-weight:600;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--text-muted);transition:all .2s;white-space:nowrap}.trade-mode-opt:hover{color:var(--text-secondary)}.trade-mode-opt.paper-active{background:var(--primary);color:#fff;box-shadow:0 1px 3px var(--trade-pill-shadow)}.trade-mode-opt.real-active{background:var(--warning);color:#fff;box-shadow:0 1px 3px var(--trade-real-shadow)}.trade-mode-pill-wrapper{position:relative}.trade-mode-gate{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-md);padding:.85rem 1rem;width:240px;z-index:200}.trade-mode-gate-msg{margin:0 0 .6rem;font-size:.8rem;color:var(--text-secondary);line-height:1.4}.trade-mode-gate-btn{display:block;width:100%;padding:.45rem 0;font-size:.8rem;font-weight:600;color:#fff;background:var(--primary);border:none;border-radius:6px;cursor:pointer;transition:background .2s}.trade-mode-gate-btn:hover{background:var(--primary-hover)}.zd-indicator-wrapper{position:relative}.zd-indicator{display:flex;align-items:center;gap:.4rem;background:none;border:1.5px solid var(--border);border-radius:999px;padding:.3rem .75rem;cursor:pointer;font-size:.8rem;font-weight:600;color:var(--text-secondary);transition:border-color .2s,background .2s}.zd-indicator:hover{background:var(--surface-hover);border-color:var(--border-strong)}.zd-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;position:relative}.zd-dot-green{background:var(--success);box-shadow:0 0 5px 1.5px var(--dot-glow-green)}.zd-dot-green:before{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:dot-ping 1.8s ease-in-out infinite}.zd-dot-red{background:var(--error);box-shadow:0 0 5px 1.5px var(--dot-glow-red)}.zd-dot-red:before{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:dot-ping 1.8s ease-in-out infinite}.zd-dot-orange{background:var(--warning);box-shadow:0 0 5px 1.5px var(--dot-glow-orange)}.zd-dot-orange:before{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:dot-ping 1.8s ease-in-out infinite}@keyframes dot-ping{0%{transform:scale(1);opacity:.55}70%{transform:scale(2.5);opacity:0}to{transform:scale(2.5);opacity:0}}.zd-dot-gray{background:var(--text-placeholder)}.zd-indicator-label{white-space:nowrap}.zd-info-icon{position:relative;display:inline-flex;align-items:center;margin-left:.15rem;cursor:pointer}.zd-info-popup{position:absolute;top:calc(100% + 8px);right:-8px;background:var(--tooltip-bg);color:var(--tooltip-text);font-size:.72rem;font-weight:500;line-height:1.45;padding:.45rem .7rem;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:300;display:flex;flex-direction:column;gap:.3rem}.zd-info-icon:hover .zd-info-popup{opacity:1}.zd-info-row{display:flex;align-items:center;gap:.4rem}.zd-info-row .zd-dot{width:7px;height:7px;flex-shrink:0;animation:none;box-shadow:none}.zd-info-row .zd-dot:before{display:none}.zd-info-divider{display:block;height:1px;background:var(--tooltip-divider);margin:.15rem 0}.zd-info-note{color:var(--text-placeholder);font-size:.65rem}.zd-info-popup-left{right:auto;left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.zd-info-popup-fixed{position:fixed;transform:translateY(-50%);width:max-content;opacity:1;pointer-events:none}.zd-dropdown{position:absolute;top:calc(100% + 6px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-lg);min-width:140px;overflow:hidden;z-index:200}.zd-dropdown-item{display:block;width:100%;padding:.6rem 1rem;background:none;border:none;text-align:left;font-size:.85rem;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:background .15s}.zd-dropdown-item:hover{background:var(--surface-tertiary)}.zd-dropdown-warn{color:var(--warning-text-strong)}.zd-dropdown-warn:hover{background:var(--warning-bg-alt)}.zd-dropdown-danger{color:var(--error-text-strong)}.zd-dropdown-danger:hover{background:var(--error-bg)}.zd-toast{position:fixed;top:56px;left:50%;transform:translate(-50%);z-index:9999;padding:10px 24px;border-radius:8px;font-size:.88rem;font-weight:600;box-shadow:var(--shadow-md);animation:zd-toast-in .25s ease-out;pointer-events:none}.zd-toast-success{background:var(--success-bg-alt);color:var(--success-text);border:1px solid var(--success-border-alt)}.zd-toast-error{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-border)}@keyframes zd-toast-in{0%{opacity:0;transform:translate(-50%) translateY(-8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.navbar-logout-wrapper{display:flex;align-items:center}.navbar-logout{display:flex;align-items:center;gap:.4rem;background:none;border:1.5px solid var(--border);border-radius:999px;color:var(--text-muted);font-size:.85rem;font-weight:600;cursor:pointer;padding:.3rem .75rem;transition:color .2s,background .2s,border-color .2s}.navbar-logout:hover{color:var(--text-primary);background:var(--surface-hover);border-color:var(--border-strong)}.navbar-logout-info{position:relative;display:inline-flex;align-items:center;cursor:pointer}.navbar-logout-info:after{content:"Login session expires daily at 6:00 AM IST.";position:absolute;top:calc(100% + 8px);right:-8px;background:var(--tooltip-bg);color:var(--tooltip-text);font-size:.72rem;font-weight:500;line-height:1.45;padding:.45rem .7rem;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:300}.navbar-logout-info:hover:after{opacity:1}.theme-toggle{display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:none;border:1.5px solid var(--border);border-radius:999px;cursor:pointer;color:var(--text-muted);transition:color .2s,background .2s,border-color .2s;padding:0;flex-shrink:0}.theme-toggle:hover{color:var(--text-primary);background:var(--surface-hover);border-color:var(--border-strong)}.auth-container{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;padding-top:72px}.auth-theme-toggle{position:absolute;top:1.25rem;right:1.25rem}.auth-card{background:var(--surface);border-radius:16px;padding:2.5rem;width:100%;max-width:420px;box-shadow:var(--shadow-card)}.auth-card h1{font-size:1.75rem;font-weight:700;color:var(--text-primary);margin-bottom:.25rem}.auth-subtitle{color:var(--text-muted);font-size:.95rem;margin-bottom:1.75rem}.form-group{margin-bottom:1.25rem}.form-group label{display:block;font-size:.875rem;font-weight:600;color:var(--text-secondary);margin-bottom:.4rem}.form-group input{width:100%;padding:.7rem .85rem;border:1.5px solid var(--border-strong);border-radius:10px;font-size:.95rem;color:var(--text-primary);background:var(--input-bg);transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.form-group input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring);background:var(--input-bg-focus)}.form-group input::placeholder{color:var(--text-placeholder)}.password-wrapper{position:relative}.password-wrapper input{padding-right:2.75rem}.password-toggle{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.25rem;line-height:0}.field-error{display:block;color:var(--error-text-strong);font-size:.8rem;margin-top:.35rem}.error-banner{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-border);padding:.7rem 1rem;border-radius:10px;font-size:.875rem;margin-bottom:1.25rem}.success-banner{background:var(--success-bg-alt);color:var(--success-text);border:1px solid var(--success-border);padding:.7rem 1rem;border-radius:10px;font-size:.875rem;margin-bottom:1.25rem}.btn-primary{width:100%;padding:.75rem;background:var(--primary);color:#fff;font-size:1rem;font-weight:600;border:none;border-radius:10px;cursor:pointer;transition:background .2s;margin-top:.5rem}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{padding:.65rem 1.5rem;background:var(--surface-tertiary);color:var(--text-secondary);font-size:.95rem;font-weight:600;border:1.5px solid var(--border-strong);border-radius:10px;cursor:pointer;transition:background .2s,border-color .2s}.btn-secondary:hover{background:var(--border);border-color:var(--text-placeholder)}.auth-footer{text-align:center;margin-top:1.5rem;color:var(--text-muted);font-size:.9rem}.auth-footer a{color:var(--link);text-decoration:none;font-weight:600}.auth-footer a:hover{text-decoration:underline}.loading-text{text-align:center;color:var(--text-muted);font-size:1rem}.admin-users-table-wrapper,.admin-jobs-table-wrapper{overflow-x:auto}.admin-jobs-table .admin-job-name-cell{font-weight:600;color:var(--text-primary)}.admin-job-name-stacked{display:flex;flex-direction:column;gap:.15rem}.admin-job-strategy-name{font-weight:600;color:var(--text-primary)}.admin-job-after-colon{font-size:.9em;color:var(--text-secondary);font-weight:500}.admin-next-run-cell{display:flex;flex-direction:column;gap:.15rem}.admin-next-run-date{font-weight:500;color:var(--text-primary)}.admin-next-run-time{font-size:.85em;color:var(--text-secondary)}.admin-users-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-users-table th,.admin-users-table td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--border)}.admin-users-table th{font-weight:600;color:var(--text-secondary)}.admin-strategy-badges{display:flex;flex-wrap:wrap;gap:.35rem}.admin-badge{padding:.2rem .5rem;font-size:.75rem;background:var(--surface-tertiary);border-radius:6px;color:var(--text-secondary)}.admin-muted{color:var(--text-placeholder)}.admin-modal-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1.5rem}.admin-modal{background:var(--surface);border-radius:16px;padding:1.75rem;width:100%;max-width:400px;box-shadow:var(--shadow-card)}.admin-modal h2{font-size:1.2rem;font-weight:700;color:var(--text-primary);margin-bottom:1.25rem}.admin-modal .form-group{margin-bottom:1rem}.admin-modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem}.admin-modal-actions .btn-primary{width:auto;margin-top:0}.admin-modal-actions .btn-secondary{margin-top:0}.zd-setup-wrapper{display:flex;flex-direction:column;gap:1.25rem;width:100%;max-width:480px}.zd-setup-top-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:0}.zd-setup-top-row h1{margin-bottom:0}.zd-back-btn{text-decoration:none;font-size:.85rem;padding:.4rem 1rem}.zd-delete-btn{width:100%;margin-top:.75rem;color:var(--error-text);border-color:var(--error-border-strong);background:var(--error-bg)}.zd-delete-btn:hover{background:var(--error-bg-hover);border-color:var(--error-border-hover)}.zd-callback-card{text-align:center}.zd-callback-card h2{font-size:1.35rem;font-weight:700;color:var(--text-primary);margin-bottom:.5rem}.zd-callback-message{color:var(--success-text);font-size:.95rem;margin-bottom:.5rem}.zd-callback-error{color:var(--error-text);font-size:.95rem;margin-bottom:.5rem}.zd-callback-redirect{color:var(--text-placeholder);font-size:.8rem}.zd-callback-spinner{width:36px;height:36px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;margin:0 auto 1rem;animation:zd-spin .7s linear infinite}@keyframes zd-spin{to{transform:rotate(360deg)}}.page-container{max-width:1200px;margin:0 auto;padding:72px 1.5rem 2rem}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.page-header h1{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0}.page-header-subtitle{font-size:.82rem;color:var(--text-muted);margin:.25rem 0 0;font-weight:400;line-height:1.4}.page-loading{text-align:center;color:var(--text-muted);margin-top:3rem}.card{background:var(--surface);border-radius:12px;padding:1.5rem;box-shadow:var(--shadow-xs);margin-bottom:1.25rem}.card h2{font-size:1.1rem;font-weight:700;color:var(--text-primary);margin:0 0 1rem}.history-cycle-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}.history-cycle-header h3{font-size:1rem;font-weight:700;color:var(--text-primary);margin:0}.history-cycle-stats{display:flex;flex-wrap:wrap;gap:1.25rem;font-size:.82rem;color:var(--text-muted);margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--border-light)}.msg{padding:.7rem 1rem;border-radius:10px;font-size:.875rem;margin-bottom:1rem}.msg-error{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-border)}.msg-success{background:var(--success-bg-alt);color:var(--success-text);border:1px solid var(--success-border)}.strategy-form{display:flex;flex-direction:column;gap:.25rem}.strategy-form select{width:100%;padding:.7rem .85rem;border:1.5px solid var(--border-strong);border-radius:10px;font-size:.95rem;color:var(--text-primary);background:var(--input-bg)}.toggle-label{display:flex;align-items:center;gap:.5rem;cursor:pointer}.toggle-label input[type=checkbox]{width:18px;height:18px}.form-hint{display:block;color:var(--text-muted);font-size:.78rem;margin-top:.25rem}.strategy-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}.strategy-info{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.strategy-meta{color:var(--text-muted);font-size:.82rem}.strategy-actions{display:flex;gap:.5rem}.badge{display:inline-block;padding:.2rem .6rem;border-radius:6px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.badge-green{background:var(--success-bg);color:var(--success-text)}.badge-blue{background:var(--info-bg);color:var(--info-text)}.badge-red{background:var(--error-bg-hover);color:var(--error-text)}.badge-orange{background:var(--orange-bg);color:var(--orange-text)}.badge-yellow{background:var(--warning-bg);color:var(--warning-text)}.badge-gray{background:var(--surface-tertiary);color:var(--text-secondary)}.badge-virtual{background:var(--indigo-bg);color:var(--indigo-text);margin-left:.25rem}.badge-status-pending{background:var(--warning-bg);color:var(--warning-text)}.badge-status-signals_generated{background:var(--info-bg);color:var(--info-text)}.badge-status-orders_suggested{background:var(--indigo-bg);color:var(--indigo-text)}.badge-status-completed{background:var(--success-bg);color:var(--success-text)}.badge-status-skipped{background:var(--surface-tertiary);color:var(--text-secondary)}.status-dot{display:inline-block;width:12px;height:12px;border-radius:3px;flex-shrink:0}td.status-dot-cell,th.status-dot-cell{text-align:center}.status-dot-pending{background:var(--warning)}.status-dot-signals_generated{background:var(--primary)}.status-dot-orders_suggested{background:var(--accent)}.status-dot-completed{background:var(--success)}.status-dot-completed_with_failures{background:var(--error)}.status-dot-skipped{background:var(--text-placeholder)}.status-legend-wrapper{position:relative;display:inline-flex;align-items:center;cursor:pointer}.status-legend-popup{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);background:var(--tooltip-bg);color:var(--tooltip-text);font-size:.72rem;font-weight:500;line-height:1.45;padding:.45rem .7rem;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:20;display:flex;flex-direction:column;gap:.3rem}.status-legend-wrapper:hover .status-legend-popup{opacity:1}.status-legend-row{display:flex;align-items:center;gap:.4rem}.status-legend-row .status-dot{width:8px;height:8px}.btn-sm{padding:.4rem .9rem;font-size:.82rem;font-weight:600;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:background .2s,border-color .2s}.btn-sm:hover{background:var(--surface-tertiary);border-color:var(--text-placeholder)}.btn-danger{color:var(--error-text);border-color:var(--error-border-strong);background:var(--error-bg)}.btn-danger:hover{background:var(--error-bg-hover)}.btn-secondary:disabled,.btn-danger-outline:disabled{opacity:.6;cursor:not-allowed}.btn-danger-outline{padding:.65rem 1.5rem;background:transparent;color:var(--error-text-strong);font-size:.95rem;font-weight:600;border:1.5px solid var(--error-border-strong);border-radius:10px;cursor:pointer;transition:background .2s,border-color .2s}.btn-danger-outline:hover:not(:disabled){background:var(--error-bg);border-color:var(--error-border-hover)}.form-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.5rem}.paper-actions-row{display:flex;gap:.75rem;width:100%}.paper-actions-row>button{flex:1;padding:.45rem 1rem;font-size:.85rem}.backtest-summary{margin-top:1rem;padding:.75rem 1rem;background:var(--backtest-bg);border:1px solid var(--backtest-border);border-radius:8px;color:var(--backtest-text);font-size:.9rem}.backtest-progress{margin-top:1rem}.backtest-progress-text{font-size:.85rem;color:var(--text-secondary);margin-bottom:.4rem}.backtest-progress-bar{height:6px;border-radius:3px;background:var(--surface-tertiary);overflow:hidden}.backtest-progress-fill{height:100%;background:var(--primary);border-radius:3px;transition:width .3s ease}.strategy-page{max-width:1400px;margin:0 auto;padding:72px 1.5rem 2rem}.strategy-page-msg{margin-bottom:.75rem}.strategy-layout{display:grid;grid-template-columns:380px 1fr;gap:1.25rem;align-items:start}.strategy-layout-left{position:sticky;top:1rem}.strategy-layout-right{min-width:0}.strategy-panel{background:var(--surface);border-radius:14px;border:1px solid var(--border);box-shadow:var(--shadow-sm);overflow:hidden}.strategy-panel-header{padding:1.25rem 1.5rem .75rem;border-bottom:1px solid var(--border-light)}.strategy-panel-header h2{font-size:1.05rem;font-weight:700;color:var(--text-primary);margin:0 0 .2rem}.strategy-panel-subtitle{font-size:.82rem;color:var(--text-muted);line-height:1.5;margin:0}.strategy-panel-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.strategy-form-view input,.strategy-form-view select{background:var(--surface-secondary);border-color:transparent;color:var(--text-primary);cursor:default;opacity:.85}.btn-text{background:none;border:none;color:var(--text-secondary);font-size:.9rem;font-weight:600;cursor:pointer;padding:.5rem 1rem;border-radius:8px;transition:background .15s,color .15s}.btn-text:hover{background:var(--surface-tertiary);color:var(--text-primary)}.strategy-panel-body{padding:1.25rem 1.5rem 1.5rem}.strategy-card-tabs{display:flex;gap:.25rem;margin-bottom:1rem;background:var(--surface-tertiary);border-radius:8px;padding:3px}.strategy-card-tabs .tab-btn{flex:1;text-align:center;border-radius:6px}@media(max-width:900px){.strategy-layout{grid-template-columns:1fr}.strategy-layout-left{position:static}}.explainer-container{padding:0 1.25rem 1.25rem}.explainer-section{border:1px solid var(--explainer-border);border-radius:10px;margin-bottom:.4rem;overflow:hidden;transition:box-shadow .2s,border-color .2s;background:var(--explainer-bg)}.explainer-section.open{box-shadow:0 2px 8px #0000000d;border-color:var(--explainer-border-open);background:var(--explainer-bg-open)}.explainer-section-header{display:flex;align-items:center;width:100%;padding:.8rem 1rem;background:none;border:none;cursor:pointer;gap:.6rem;font-size:.88rem;font-weight:600;color:var(--text-primary);text-align:left;transition:background .15s}.explainer-section-header:hover{background:var(--explainer-hover)}.explainer-section-icon{font-size:1rem;width:1.4rem;text-align:center;flex-shrink:0}.explainer-section-title{flex:1}.explainer-chevron{font-size:.7rem;color:var(--text-placeholder);transition:transform .2s}.explainer-chevron.rotated{transform:rotate(180deg)}.explainer-section-body{padding:0 1rem 1rem;font-size:.85rem;color:var(--text-secondary);line-height:1.65}.explainer-section-body p{margin:0 0 .6rem}.explainer-section-body p:last-child{margin-bottom:0}.explainer-highlight{background:var(--explainer-highlight-bg);border:1px solid var(--explainer-highlight-border);border-radius:8px;padding:.65rem .85rem;margin:.6rem 0;font-size:.84rem;line-height:1.5;color:var(--explainer-highlight-text)}.explainer-muted{color:var(--text-muted);font-size:.82rem}.explainer-etf-grid{display:flex;flex-wrap:wrap;gap:.45rem;margin:.6rem 0}.explainer-etf-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .65rem;background:var(--etf-chip-bg);border:1px solid var(--etf-chip-border);border-radius:8px;font-size:.78rem}.explainer-etf-symbol{font-weight:700;color:var(--etf-chip-symbol)}.explainer-etf-name{color:var(--text-muted)}.explainer-rsi-table{display:flex;flex-direction:column;gap:.35rem;margin:.6rem 0}.explainer-rsi-row{display:grid;grid-template-columns:5.5rem 6.5rem 3.5rem 1fr;gap:.5rem;align-items:center;padding:.5rem .7rem;border-radius:8px;font-size:.82rem}.rsi-range{font-weight:700;font-size:.8rem}.rsi-label{font-weight:600}.rsi-weight{font-weight:700;text-align:center;font-size:.78rem}.rsi-desc{color:var(--text-muted);font-size:.78rem}.rsi-aggressive{background:var(--success-bg);color:var(--success-text)}.rsi-more{background:var(--info-bg);color:var(--info-text)}.rsi-normal{background:var(--surface-tertiary);color:var(--text-secondary)}.rsi-skip{background:var(--error-bg-hover);color:var(--error-text)}.explainer-step{display:flex;gap:.75rem;align-items:flex-start;margin:.6rem 0}.explainer-step-num{flex-shrink:0;width:1.6rem;height:1.6rem;background:var(--step-num-bg);color:var(--step-num-text);font-weight:700;font-size:.8rem;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:.15rem}.explainer-step p{margin:.2rem 0 0;font-size:.82rem;color:var(--text-muted)}.explainer-sell-conditions{display:flex;flex-direction:column;gap:.35rem;margin:.6rem 0}.explainer-condition{display:flex;align-items:center;gap:.5rem;padding:.45rem .7rem;background:var(--condition-bg);border:1px solid var(--condition-border);border-radius:8px;font-size:.83rem}.condition-check{color:var(--condition-check);font-weight:700;font-size:.95rem}.explainer-lifecycle{margin:.6rem 0}.lifecycle-step{display:flex;align-items:flex-start;gap:.65rem}.lifecycle-step p{margin:.15rem 0 0;font-size:.8rem;color:var(--text-muted)}.lifecycle-dot{flex-shrink:0;width:.7rem;height:.7rem;border-radius:50%;margin-top:.35rem}.lifecycle-dot.pending{background:#facc15}.lifecycle-dot.signals{background:#3b82f6}.lifecycle-dot.orders{background:#8b5cf6}.lifecycle-dot.completed{background:var(--success)}.lifecycle-connector{width:2px;height:.9rem;background:var(--lifecycle-connector);margin-left:.3rem}@media(max-width:600px){.explainer-rsi-row{grid-template-columns:1fr 1fr;gap:.2rem}.rsi-desc{grid-column:1 / -1}}.btn-xs{padding:.25rem .6rem;font-size:.75rem;font-weight:600;border-radius:6px;border:none;cursor:pointer;margin-right:.25rem}.btn-approve{background:var(--success-bg);color:var(--success-text)}.btn-approve:hover{background:var(--success-border)}.btn-skip{background:var(--surface-tertiary);color:var(--text-secondary)}.btn-skip:hover{background:var(--border)}.btn-retry{background:var(--warning-bg);color:var(--warning-text)}.btn-retry:hover{background:var(--warning-bg-hover)}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:.85rem}.data-table th{text-align:left;padding:.6rem .75rem;background:var(--surface-secondary);color:var(--text-muted);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;border-bottom:2px solid var(--border);white-space:nowrap}.data-table td{padding:.55rem .75rem;border-bottom:1px solid var(--surface-tertiary);color:var(--text-secondary);white-space:nowrap}.data-table tbody tr:hover{background:var(--surface-secondary)}.cell-bold{font-weight:600;color:var(--text-primary)}.cell-reason,.cell-explanation{white-space:normal;word-wrap:break-word;overflow-wrap:break-word;font-size:.78rem;color:var(--text-muted);line-height:1.4}.explanation-card{background:var(--explanation-card-bg);border-left:4px solid var(--explanation-card-border);border-radius:8px;padding:.75rem 1rem;margin-bottom:1rem;font-size:.85rem;color:var(--text-secondary);line-height:1.6}.positive{color:var(--positive-text)}.negative{color:var(--negative-text)}.modal-overlay{position:fixed;inset:0;background:var(--overlay);display:flex;align-items:center;justify-content:center;z-index:500}.modal-content{background:var(--surface);border-radius:14px;padding:2rem;max-width:400px;width:90%;box-shadow:var(--shadow-xl)}.modal-content h3{font-size:1.1rem;font-weight:700;margin:0 0 .75rem}.modal-content p{color:var(--text-muted);font-size:.9rem;margin-bottom:1.25rem}.modal-actions{display:flex;gap:.75rem}.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.live-card{background:var(--surface);border-radius:12px;padding:1.25rem;box-shadow:var(--shadow-xs);transition:box-shadow .2s}.live-card:hover{box-shadow:var(--shadow-md)}.live-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.35rem}.live-symbol{font-weight:700;font-size:1rem;color:var(--text-primary)}.live-exchange{font-size:.75rem;color:var(--text-placeholder);font-weight:600}.live-name{font-size:.82rem;color:var(--text-muted);margin:0 0 .75rem}.live-price{display:flex;align-items:baseline;gap:.5rem;margin-bottom:.75rem}.price-value{font-size:1.35rem;font-weight:700;color:var(--text-primary)}.price-change{font-size:.85rem;font-weight:600}.live-indicators{display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem}.indicator-item{display:flex;justify-content:space-between;padding:.3rem 0}.indicator-label{font-size:.75rem;color:var(--text-placeholder)}.indicator-value{font-size:.82rem;font-weight:600;color:var(--text-secondary)}.rsi-green{color:var(--rsi-green-text)}.rsi-yellow{color:var(--rsi-yellow-text)}.rsi-red{color:var(--rsi-red-text)}.live-header-actions{display:flex;align-items:center;gap:.5rem}.btn-download-all-sm{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-download-all-sm:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn-download-all-sm:disabled{opacity:.6;cursor:not-allowed}.live-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:.75rem;padding-top:.65rem;border-top:1px solid var(--surface-tertiary);gap:.5rem}.dl-status{font-size:.72rem;color:var(--text-placeholder);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dl-status.downloaded{color:var(--positive-text)}.dl-status.downloading{color:var(--warning-text-strong)}.dl-status.error{color:var(--error-text)}.live-card-actions{display:flex;gap:.35rem;flex-shrink:0}.btn-card-action{padding:.28rem .6rem;font-size:.72rem;font-weight:600;border-radius:6px;border:1.5px solid var(--border-strong);background:var(--surface-secondary);color:var(--text-secondary);cursor:pointer;transition:background .15s,border-color .15s;margin-right:0}.btn-card-action:hover:not(:disabled){background:var(--border);border-color:var(--text-placeholder)}.btn-card-action:disabled{opacity:.45;cursor:not-allowed}.sync-banner{font-size:.82rem;color:var(--text-muted);margin-bottom:1rem}.kite-disconnected-banner{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;background:var(--kite-disconnect-bg);border:1px solid var(--kite-disconnect-border);border-radius:10px;margin-bottom:1rem;font-size:.85rem;color:var(--kite-disconnect-text)}.kite-disconnected-dot{width:8px;height:8px;border-radius:50%;background:var(--error);flex-shrink:0}.kite-connect-btn{margin-left:auto;background:var(--kite-btn-bg);color:#fff;border-color:var(--kite-btn-bg);white-space:nowrap;flex-shrink:0}.kite-connect-btn:hover{background:var(--kite-btn-hover);border-color:var(--kite-btn-hover)}.cycle-banner{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:var(--cycle-banner-bg);border-radius:10px;font-size:.85rem;font-weight:500;color:var(--text-secondary);margin-bottom:1rem;flex-wrap:wrap}.tab-group{display:flex;gap:.25rem}.tab-btn{padding:.4rem .9rem;font-size:.82rem;font-weight:600;border:1.5px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-muted);cursor:pointer;transition:all .2s}.tab-btn:hover{background:var(--surface-hover)}.tab-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.empty-state{text-align:center;color:var(--text-placeholder);font-size:.95rem;padding:2rem}.type-section{margin-bottom:1.25rem}.type-section:last-child{margin-bottom:0}.type-section-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.type-section-label{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.2rem .6rem;border-radius:6px}.type-section-label-buy{background:var(--success-bg);color:var(--success-text)}.type-section-label-sell{background:var(--error-bg-hover);color:var(--error-text)}.type-section-label-skip{background:var(--surface-tertiary);color:var(--text-muted)}.type-section-label-hold{background:var(--info-bg);color:var(--info-text)}.type-section-count{font-size:.75rem;color:var(--text-placeholder);font-weight:500}.mode-banner{padding:.5rem 1rem;border-radius:8px;font-size:.82rem;font-weight:700;text-align:center;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.04em}.mode-paper{background:var(--mode-paper-bg);color:var(--mode-paper-text)}.mode-live{background:var(--mode-live-bg);color:var(--mode-live-text)}.summary-bar{display:flex;gap:1.5rem;padding:.75rem 1rem;background:var(--summary-bar-bg);border-radius:10px;font-size:.85rem;font-weight:500;color:var(--text-secondary);margin-bottom:1rem;flex-wrap:wrap}.bulk-actions{margin-bottom:1rem}.bulk-actions .btn-primary{width:auto;padding:.5rem 1.25rem}.kite-id{display:block;font-size:.7rem;color:var(--text-placeholder);margin-top:.15rem}.error-hint{font-size:.7rem;color:var(--error-text-strong);cursor:help;border-bottom:1px dashed var(--error-text-strong)}.order-error-msg{margin-top:.35rem;padding:.3rem .5rem;font-size:.72rem;line-height:1.35;color:var(--error-text-strong);background:var(--error-bg, rgba(239, 68, 68, .08));border:1px solid var(--error-border, rgba(239, 68, 68, .2));border-radius:.3rem;word-break:break-word;max-width:260px}.failed-orders-banner{margin-bottom:1rem;padding:.75rem 1rem;border-radius:.5rem;background:var(--warning-bg, rgba(245, 158, 11, .08));border:1px solid var(--warning-border, rgba(245, 158, 11, .25))}.failed-orders-banner-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem;color:var(--warning-text, #d97706);font-size:.9rem}.failed-orders-banner-tips{display:flex;flex-wrap:wrap;gap:.25rem 1rem;font-size:.75rem;color:var(--text-secondary)}.failed-orders-banner-tips span:first-child{font-weight:600;width:100%}.summary-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;margin-bottom:1.5rem}.summary-card{background:var(--surface);border-radius:12px;padding:1.25rem;box-shadow:var(--shadow-xs);display:flex;flex-direction:column;gap:.35rem}.summary-label{font-size:.75rem;color:var(--text-placeholder);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.summary-value{font-size:1.35rem;font-weight:700;color:var(--text-primary)}.exposure-bar-wrapper{display:flex;align-items:center;gap:.5rem}.exposure-bar{height:6px;border-radius:3px;background:var(--exposure-bar);transition:width .3s}.exposure-warn{background:var(--exposure-warn)}.info-note{font-size:.8rem;color:var(--text-muted);background:var(--surface-secondary);border:1px solid var(--border);border-radius:8px;padding:.6rem 1rem;margin-bottom:1rem;line-height:1.5}@media(max-width:768px){.navbar-hamburger{display:flex}.sidebar{transform:translate(-100%);z-index:200;box-shadow:none}.sidebar-open{transform:translate(0);box-shadow:4px 0 16px #0000001a}.sidebar-backdrop{display:block;position:fixed;inset:56px 0 0;background:var(--backdrop);z-index:199}.app-content{margin-left:0}.live-grid{grid-template-columns:1fr}.summary-cards{grid-template-columns:1fr 1fr}.strategy-content-header{padding:.75rem 1rem .5rem}}.strategy-count{font-size:.875rem;color:var(--text-muted);font-weight:500}.strategy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.25rem}.strategy-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:1.5rem;display:flex;flex-direction:column;gap:.75rem;transition:border-color .2s,box-shadow .2s}.strategy-card:hover{border-color:var(--accent-border);box-shadow:0 2px 12px #6366f114}.strategy-card-subscribed{border-color:var(--accent)}.strategy-card-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.strategy-card-header h3{margin:0;font-size:1.1rem;font-weight:700}.strategy-badge{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--accent);background:var(--accent-light);padding:2px 8px;border-radius:6px}.strategy-description{font-size:.875rem;color:var(--text-muted);line-height:1.5;margin:0;flex:1}.strategy-card-actions{display:flex;gap:.5rem;margin-top:.25rem}.btn{padding:.5rem 1rem;border-radius:8px;font-size:.85rem;font-weight:600;border:none;cursor:pointer;transition:background .15s,opacity .15s}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-danger-outline{background:transparent;color:var(--error);border:1.5px solid var(--error-border-strong)}.btn-danger-outline:hover:not(:disabled){background:var(--error-bg)}.app-layout{display:flex;padding-top:56px;min-height:100vh}.app-content{flex:1;margin-left:240px;min-width:0}.app-content .page-container,.app-content .strategy-page{padding-top:1.5rem}.app-content .auth-container{min-height:calc(100vh - 56px);padding-top:1.5rem}.sidebar{position:fixed;top:56px;left:0;bottom:0;width:240px;background:var(--surface);border-right:1px solid var(--border);overflow-y:auto;z-index:98;transition:transform .2s ease}.sidebar-backdrop{display:none}.sidebar-content{padding:.75rem 0 1.5rem}.sidebar-section{padding:0 0 .5rem}.sidebar-section-label{padding:.6rem 1.25rem .35rem;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-placeholder)}.sidebar-link{display:flex;align-items:center;gap:.6rem;width:100%;padding:.5rem 1.25rem;background:none;border:none;font-size:.85rem;font-weight:500;color:var(--text-secondary);cursor:pointer;border-left:3px solid transparent;transition:background .15s,color .15s,border-color .15s;text-align:left}.sidebar-link:hover{background:var(--surface-tertiary);color:var(--text-primary)}.sidebar-link-active{background:var(--sidebar-active-bg);color:var(--sidebar-active-text);font-weight:600;border-left-color:var(--sidebar-active-text)}.sidebar-strategy{margin-bottom:.1rem}.sidebar-strategy-header{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem 1.25rem;background:none;border:none;font-size:.85rem;font-weight:600;color:var(--text-primary);cursor:pointer;border-left:3px solid transparent;transition:background .15s,border-color .15s;text-align:left}.sidebar-strategy-header:hover{background:var(--surface-tertiary)}.sidebar-strategy-active{border-left-color:var(--sidebar-active-text);color:var(--sidebar-active-text)}.sidebar-chevron{font-size:.5rem;color:var(--text-placeholder);transition:transform .2s;display:inline-block}.sidebar-chevron.rotated{transform:rotate(90deg)}.sidebar-strategy-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-strategy-links{padding:.1rem 0 .2rem}.sidebar-sublink{display:flex;align-items:center;gap:.45rem;width:100%;padding:.35rem 1.25rem .35rem 2.5rem;background:none;border:none;font-size:.82rem;font-weight:500;color:var(--text-muted);cursor:pointer;border-left:3px solid transparent;transition:background .15s,color .15s,border-color .15s;text-align:left}.sidebar-sublink:hover{background:var(--surface-tertiary);color:var(--text-secondary)}.sidebar-sublink-active{background:var(--sidebar-active-bg);color:var(--sidebar-active-text);font-weight:600;border-left-color:var(--sidebar-active-text)}.sidebar-browse-section{border-top:1px solid var(--border-light);padding-top:.5rem;margin-top:.25rem}.sidebar-browse{color:var(--link);font-weight:600}.strategy-content-header{max-width:1400px;margin:0 auto;padding:1rem 1.5rem .5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.strategy-content-title{font-size:1.35rem;font-weight:700;color:var(--text-primary);margin:0}.strategy-content-header~.strategy-page,.strategy-content-header~.page-container{padding-top:.5rem}.portfolio-filters{display:flex;align-items:center;gap:1.5rem;margin-bottom:1rem;flex-wrap:wrap}.portfolio-filter-group{display:flex;align-items:center;gap:.5rem}.portfolio-filter-group label{font-size:.85rem;font-weight:600;color:var(--text-secondary)}.strategy-filter{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.strategy-filter label{font-size:.85rem;font-weight:600;color:var(--text-secondary)}.strategy-filter select{font-size:.85rem;padding:.35rem .75rem;border:1.5px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text-primary)}.strategy-status-header{margin-bottom:1.25rem}.strategy-status-row{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.strategy-metrics-row{display:flex;gap:1rem;margin-top:1rem}.strategy-metric{flex:1;text-align:center;padding:.6rem .5rem;background:var(--surface-secondary);border-radius:8px}.strategy-metric-value{font-size:1rem;font-weight:700;color:var(--text-primary)}.strategy-metric-label{font-size:.72rem;color:var(--text-muted);margin-top:.15rem}.sip-toggle{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}.sip-toggle input{opacity:0;width:0;height:0}.sip-toggle-slider{position:absolute;cursor:pointer;inset:0;background:var(--border-strong);border-radius:24px;transition:background .2s}.sip-toggle-slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:transform .2s}.sip-toggle input:checked+.sip-toggle-slider{background:var(--success)}.sip-toggle input:checked+.sip-toggle-slider:before{transform:translate(20px)}.sip-toggle input:disabled+.sip-toggle-slider{opacity:.5;cursor:not-allowed}.sip-toggle-row{display:flex;align-items:center;gap:.85rem}.sip-toggle-info{flex:1}.sip-toggle-label{font-weight:600;font-size:.9rem}.sip-toggle-hint{font-size:.78rem;color:var(--text-muted);margin-top:.1rem}.fund-mgmt-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.25rem 1.5rem}.fund-mgmt-card h3{font-size:.95rem;font-weight:700;margin:0 0 1rem}.fund-divider{border:none;border-top:1px solid var(--border-light);margin:1rem 0}.withdrawal-form{display:flex;gap:.5rem;align-items:center}.withdrawal-form input{flex:1;padding:.55rem .75rem;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--input-bg);font-size:.88rem;color:var(--text-primary)}.withdrawal-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.withdrawal-list{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.withdrawal-row{display:flex;align-items:center;gap:.75rem;padding:.6rem .85rem;border-radius:8px;background:var(--surface-secondary)}.withdrawal-amount{font-weight:600;flex:1;font-size:.88rem}.withdrawal-date{font-size:.75rem;color:var(--text-muted)}.withdrawal-empty{font-size:.82rem;color:var(--text-muted);padding:.5rem 0}.fund-section-label{font-size:.82rem;font-weight:600;color:var(--text-secondary);margin-bottom:.5rem}.danger-zone{border:1.5px solid var(--error-border-strong);border-radius:14px;padding:1.25rem 1.5rem;background:var(--error-bg)}.danger-zone h4{color:var(--error-text-strong);font-size:.95rem;font-weight:700;margin:0 0 .35rem}.danger-zone p{color:var(--text-secondary);font-size:.82rem;margin:0 0 1rem}.exit-options{display:flex;flex-direction:column;gap:.75rem;margin:1rem 0}.exit-option{border:1.5px solid var(--border);border-radius:10px;padding:1rem;cursor:pointer;transition:border-color .15s,background .15s}.exit-option:hover{border-color:var(--primary)}.exit-option.selected{border-color:var(--primary);background:var(--primary-light)}.exit-option-title{font-weight:600;font-size:.92rem;margin-bottom:.25rem}.exit-option-desc{font-size:.8rem;color:var(--text-muted)}.exit-option.disabled{opacity:.45;pointer-events:none}.exit-warning{background:var(--warning-bg);border-radius:8px;padding:.7rem 1rem;font-size:.85rem;color:var(--warning-text);margin-bottom:1rem;font-weight:500}.exit-impact-list{list-style:none;padding:0;margin:.75rem 0}.exit-impact-list li{padding:.3rem 0;font-size:.85rem;color:var(--text-secondary);display:flex;justify-content:space-between}.exit-impact-list li span:last-child{font-weight:600;color:var(--text-primary)}.exit-confirm-input{margin-top:.75rem}.exit-confirm-input label{font-size:.82rem;color:var(--text-secondary);display:block;margin-bottom:.35rem}.exit-confirm-input input{width:100%;padding:.55rem .75rem;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--input-bg);font-size:.95rem;text-transform:uppercase;letter-spacing:.12em;color:var(--text-primary)}.exit-confirm-input input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.exit-progress-bar{height:6px;border-radius:3px;background:var(--surface-tertiary);overflow:hidden;margin:1rem 0}.exit-progress-fill{height:100%;background:var(--primary);border-radius:3px;transition:width .3s ease}.exit-symbol-list{margin:.75rem 0}.exit-symbol-row{display:flex;align-items:center;gap:.75rem;padding:.4rem 0;font-size:.85rem;border-bottom:1px solid var(--border-light)}.exit-symbol-row:last-child{border-bottom:none}.exit-symbol-name{font-weight:600;width:120px}.exit-symbol-qty{color:var(--text-muted);width:80px}.exit-symbol-status{font-weight:600;flex:1;text-align:right}.exit-symbol-status.sold{color:var(--success-text)}.exit-symbol-status.selling{color:var(--primary)}.exit-symbol-status.failed{color:var(--error-text-strong)}.exit-symbol-status.pending{color:var(--text-muted)}.exit-success{text-align:center;padding:1.5rem 0}.exit-success-icon{width:52px;height:52px;margin:0 auto 1rem;border-radius:50%;background:var(--success-bg);display:flex;align-items:center;justify-content:center;font-size:1.5rem}.exit-success h3{font-size:1.1rem;margin:0 0 .5rem}.exit-success p{color:var(--text-muted);font-size:.88rem;margin:.25rem 0}.setup-page{display:flex;flex-direction:column;gap:1.25rem}.setup-status-banner{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.25rem 1.5rem;box-shadow:var(--shadow-sm)}.setup-status-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.setup-status-badges{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.setup-status-badges .strategy-meta{margin-left:.25rem}.setup-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-top:1rem}.setup-metric-card{background:var(--surface-secondary);border-radius:10px;padding:.75rem 1rem;text-align:center}.setup-metric-value{font-size:1.1rem;font-weight:700;color:var(--text-primary);line-height:1.3}.setup-metric-label{font-size:.72rem;color:var(--text-muted);margin-top:.15rem;text-transform:uppercase;letter-spacing:.03em;font-weight:600}.setup-columns{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:start}.setup-col-panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-sm);overflow:hidden;display:flex;flex-direction:column}.setup-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1.25rem}.setup-form-grid .form-group{margin-bottom:1rem}.setup-form-full{grid-column:1 / -1}.setup-fund-sections{display:flex;flex-direction:column;gap:1rem}.setup-fund-block{padding:1rem 1.25rem;background:var(--surface-secondary);border-radius:10px}.setup-fund-block-title{font-size:.82rem;font-weight:700;color:var(--text-secondary);margin-bottom:.65rem}.setup-fund-block .withdrawal-form{display:flex;gap:.5rem;align-items:center}.setup-fund-block .withdrawal-form input{flex:1;padding:.5rem .75rem;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--input-bg);font-size:.85rem;color:var(--text-primary)}.setup-fund-block .withdrawal-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.withdrawal-form .btn-primary,.fund-withdraw-form .btn-primary{width:auto;margin-top:0;padding:.5rem 1.25rem;font-size:.85rem;white-space:nowrap}.setup-danger-zone{border:1.5px solid var(--error-border-strong);border-radius:10px;padding:1rem 1.25rem;background:var(--error-bg);margin-top:auto}.setup-danger-zone h4{color:var(--error-text-strong);font-size:.88rem;font-weight:700;margin:0 0 .35rem}.setup-danger-zone p{color:var(--text-secondary);font-size:.78rem;margin:0 0 .75rem;line-height:1.45}.setup-explainer-section{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-sm);overflow:hidden}.setup-explainer-section .explainer-container{padding:0 1.25rem 1.25rem}.setup-explainer-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.setup-explainer-grid>*{min-width:0}@media(max-width:900px){.setup-columns{grid-template-columns:1fr}}@media(max-width:600px){.setup-form-grid{grid-template-columns:1fr}.setup-metrics{grid-template-columns:1fr 1fr}.setup-explainer-grid{grid-template-columns:1fr}}.fund-section{margin-bottom:0}.fund-section+.fund-section{padding-top:.75rem;border-top:1px solid var(--border-light)}.fund-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.88rem}.fund-section-title{font-size:.82rem;font-weight:700;color:var(--text-secondary);margin:0 0 .5rem}.fund-withdraw-form{display:flex;gap:.5rem;align-items:center}.fund-withdraw-form input{flex:1;padding:.5rem .75rem;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--input-bg);font-size:.85rem;color:var(--text-primary)}.fund-withdraw-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--focus-ring)}.fund-actions-list{display:flex;flex-direction:column;gap:.4rem}.fund-action-item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem .75rem;background:var(--surface-secondary);border-radius:8px;font-size:.85rem}.fund-action-amount{font-weight:600;margin-left:.4rem}.exit-type-options{display:flex;flex-direction:column;gap:.5rem;margin:.75rem 0 1rem}.exit-type-option{display:flex;align-items:flex-start;gap:.65rem;padding:.85rem 1rem;border:1.5px solid var(--border);border-radius:10px;cursor:pointer;transition:border-color .15s,background .15s}.exit-type-option:hover{border-color:var(--primary)}.exit-type-option.selected{border-color:var(--primary);background:var(--primary-light)}.exit-type-option input[type=radio]{margin-top:.2rem;flex-shrink:0}.exit-type-option strong{display:block;font-size:.88rem;margin-bottom:.15rem}.exit-type-option p{margin:0;font-size:.8rem;color:var(--text-muted)}.exit-impact{margin:.75rem 0 1rem}.exit-impact-row{display:flex;justify-content:space-between;padding:.4rem 0;font-size:.88rem;color:var(--text-secondary);border-bottom:1px solid var(--border-light)}.exit-impact-row:last-child{border-bottom:none}.exit-impact-row span:last-child{font-weight:600;color:var(--text-primary)}.text-green{color:var(--positive-text)}.text-red{color:var(--negative-text)}.exit-progress{text-align:center;padding:2rem 0}.spinner{width:36px;height:36px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;margin:0 auto 1rem;animation:zd-spin .7s linear infinite}.danger-zone-desc{color:var(--text-secondary);font-size:.82rem;margin:0 0 .75rem;line-height:1.45}
