:root{--primary-color:#2563eb;--primary-hover:#1d4ed8;--success-color:#10b981;--danger-color:#ef4444;--warning-color:#f59e0b;--background:#f8fafc;--surface:#ffffff;--text-primary:#1e293b;--text-secondary:#64748b;--border:#e2e8f0;--shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05)}[data-theme=dark]{--primary-color:#3b82f6;--primary-hover:#2563eb;--success-color:#34d399;--danger-color:#f87171;--warning-color:#fbbf24;--background:#0f172a;--surface:#1e293b;--text-primary:#f8fafc;--text-secondary:#cbd5e1;--border:#334155;--shadow:0 1px 3px 0 rgba(0, 0, 0, 0.3),0 1px 2px 0 rgba(0, 0, 0, 0.2);--shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.3),0 4px 6px -2px rgba(0, 0, 0, 0.2)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:var(--background);color:var(--text-primary);line-height:1.6;min-height:100vh}.container{max-width:1200px;margin:0 auto;padding:20px}header{background:var(--surface);border-radius:12px;padding:30px;box-shadow:var(--shadow);margin-bottom:30px}.header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.header-controls{display:flex;align-items:center;gap:10px}.theme-toggle{background:0 0;border:none;font-size:1.2rem;cursor:pointer;padding:8px;border-radius:50%;transition:.2s;color:var(--text-secondary);position:relative;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.theme-toggle:hover{background:var(--background);color:var(--primary-color);transform:scale(1.1)}.theme-toggle i{position:absolute;transition:.3s}.theme-toggle .fa-sun{opacity:1;transform:rotate(0)}.theme-toggle .fa-moon{opacity:0;transform:rotate(180deg)}[data-theme=dark] .theme-toggle .fa-sun{opacity:0;transform:rotate(-180deg)}[data-theme=dark] .theme-toggle .fa-moon{opacity:1;transform:rotate(0)}h1{font-size:2.5rem;margin-bottom:20px;color:var(--text-primary);display:flex;align-items:center;gap:15px}h1 i{color:var(--primary-color)}.search-container{background:var(--surface);padding:20px;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.05);border:1px solid var(--border)}.search-box{position:relative;display:flex;align-items:center;background:var(--background);border-radius:10px;transition:.3s}.search-box:focus-within{box-shadow:0 0 0 3px rgba(37,99,235,.1)}.search-box i{position:absolute;left:16px;color:var(--text-secondary);z-index:1;font-size:1.1rem}#stockSearch{width:100%;padding:14px 50px;font-size:1rem;border:2px solid var(--border);border-radius:10px;outline:0;transition:.3s;background:var(--background);color:var(--text-primary)}#stockSearch:focus{border-color:var(--primary-color)}#stockSearch::placeholder{color:var(--text-secondary);opacity:.7}.clear-btn{position:absolute;right:12px;background:0 0;border:none;color:var(--text-secondary);cursor:pointer;padding:0;font-size:1.8rem;line-height:1;z-index:2;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.clear-btn:hover{color:var(--text-primary)}.search-filter{display:flex;align-items:center;gap:12px;margin-top:16px;padding:0}.search-filter label{font-size:.9rem;font-weight:600;color:var(--text-secondary);display:flex;align-items:center;gap:6px;white-space:nowrap}.search-filter label i{font-size:.9rem}.market-filter-select{flex:1;padding:10px 36px 10px 14px;font-size:16px;border:2px solid var(--border);border-radius:8px;background:var(--background);color:var(--text-primary);cursor:pointer;outline:0;transition:.3s;font-weight:500;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 10px center;background-size:18px}.market-filter-select:hover{border-color:var(--primary-color);background-color:var(--surface)}.market-filter-select:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px rgba(37,99,235,.1)}[data-theme=dark] .market-filter-select{background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e")}.search-results{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-lg);max-height:300px;overflow-y:auto;z-index:1000;margin-top:4px;overscroll-behavior:contain}.search-result{padding:12px 15px;cursor:pointer;border-bottom:1px solid var(--border);transition:.2s;display:flex;flex-direction:column;gap:4px;min-height:48px;font-size:.9rem;line-height:1.3;user-select:none;position:relative;background:var(--surface)}.search-result:hover{background:var(--background);transform:translateX(2px);box-shadow:inset 2px 0 0 var(--primary-color)}.search-result:active{background:var(--border);transform:translateX(1px)}.search-result:last-child{border-bottom:none}.search-result .stock-details{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-result .symbol{font-weight:700;color:var(--primary-color);font-size:1rem;flex-shrink:0;min-width:60px;font-family:'Courier New',monospace}.search-result .name{color:var(--text-secondary);font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.search-result .relevance-badge{font-size:.7rem;padding:2px 6px;border-radius:10px;font-weight:500}.search-result .relevance-badge.high{background:var(--success-color);color:#fff}.search-result .relevance-badge.medium{background:var(--warning-color);color:#fff}.search-result .correction-hint{font-size:.75rem;color:var(--primary-color);font-style:italic;margin-top:2px}.search-result mark{background:var(--warning-color);color:#fff;padding:1px 2px;border-radius:2px}.no-results{background:var(--surface);border-radius:8px}.no-results-icon{font-size:3rem;color:var(--text-secondary);opacity:.5;margin-bottom:20px}.no-results h3{font-size:1.3rem;color:var(--text-primary);margin-bottom:10px;font-weight:600}.no-results p{color:var(--text-secondary);font-size:.95rem;margin-bottom:25px}.no-results-suggestions{background:var(--background);border:1px solid var(--border);border-radius:8px;padding:20px;margin:0 auto;max-width:400px;text-align:left}.no-results-suggestions p{margin-bottom:12px;color:var(--text-primary);font-weight:600}.no-results-suggestions ul{list-style:none;padding:0;margin:0}.no-results-suggestions li{padding:8px 0;color:var(--text-secondary);font-size:.9rem;display:flex;align-items:center;gap:10px}.no-results-suggestions li i{color:var(--success-color);font-size:.8rem}.no-results-suggestions strong{color:var(--primary-color)}.search-suggestions{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-lg);max-height:350px;overflow-y:auto;z-index:1000;margin-top:4px;overscroll-behavior:contain}.search-suggestion{padding:8px 12px;font-size:.8rem;color:var(--text-secondary);border-bottom:1px solid var(--border);background:var(--background)}.search-suggestion:last-child{border-bottom:none}.no-results{padding:20px;text-align:center;color:var(--text-secondary);font-style:italic}.no-results .did-you-mean{margin-top:10px;font-size:.9rem}.no-results .suggestion{color:var(--primary-color);cursor:pointer;text-decoration:underline}.watchlist-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.watchlist-header-left{display:flex;align-items:center;gap:15px}.watchlist-header h2{font-size:1.8rem;color:var(--text-primary)}.watchlist-selector{flex:1;max-width:800px}.watchlist-scroller-container{display:flex;align-items:center;gap:8px;position:relative}.watchlist-scroller{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;padding:4px 0}.watchlist-scroller::-webkit-scrollbar{display:none}.watchlist-scroll-btn{background:var(--surface);border:1px solid var(--border);color:var(--text-secondary);width:32px;height:32px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:.2s;z-index:10}.watchlist-scroll-btn:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.watchlist-tab{display:flex;align-items:center;gap:4px;background:var(--surface);border:2px solid var(--border);border-radius:8px;padding:8px 12px;flex-shrink:0;transition:.2s;position:relative;cursor:pointer;user-select:none}.watchlist-tab:hover:not(.active){border-color:var(--primary-color);background:rgba(37,99,235,.05);transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.1)}.watchlist-tab.active{background:var(--primary-color);border-color:var(--primary-color)}.watchlist-tab.active .watchlist-tab-btn{color:#fff}.watchlist-tab-btn{display:flex;align-items:center;gap:8px;background:0 0;border:none;color:var(--text-primary);font-size:.95rem;font-weight:500;cursor:pointer;padding:0}.watchlist-tab-name{white-space:nowrap;outline:0;border-radius:4px;padding:2px 4px;margin:-2px -4px;transition:.2s}.watchlist-tab-name[contenteditable=true]{cursor:text}.watchlist-tab-name[contenteditable=true]:hover{background:rgba(255,255,255,.1)}.watchlist-tab-name[contenteditable=true]:focus{background:rgba(255,255,255,.2)}.watchlist-tab-count{color:var(--text-secondary);font-size:.8rem;background:rgba(0,0,0,.05);padding:2px 6px;border-radius:10px;cursor:pointer;transition:.2s}.watchlist-tab-count:hover{background:rgba(0,0,0,.1)}.watchlist-tab.active .watchlist-tab-count{color:rgba(255,255,255,.8);background:rgba(255,255,255,.2)}.watchlist-tab.active .watchlist-tab-count:hover{background:rgba(255,255,255,.3)}.watchlist-tab-delete{background:0 0;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;border-radius:4px;transition:.2s;width:24px;height:24px;display:flex;align-items:center;justify-content:center;opacity:0}.watchlist-tab:hover .watchlist-tab-delete{opacity:1}.watchlist-tab.active .watchlist-tab-delete{color:#fff;opacity:1}.watchlist-tab-delete:hover{background:rgba(239,68,68,.2);color:var(--danger-color)}.watchlist-tab.active .watchlist-tab-delete:hover{background:rgba(239,68,68,.3);color:#fff}.watchlist-tab.add-tab{background:rgba(37,99,235,.1);border:2px dashed var(--primary-color);color:var(--primary-color);cursor:pointer;display:flex;align-items:center;gap:6px;padding:8px 12px;font-size:.9rem;font-weight:500}.watchlist-tab.add-tab:hover{background:rgba(37,99,235,.15);border-style:solid}.refresh-container{display:flex;align-items:center;gap:10px}.last-updated{color:var(--text-secondary);font-size:.9rem}.refresh-btn{background:var(--primary-color);color:#fff;border:none;padding:8px 12px;border-radius:6px;cursor:pointer;transition:.3s}.refresh-btn:hover{background:var(--primary-hover);transform:translateY(-1px)}.refresh-btn:disabled{background:var(--text-secondary);cursor:not-allowed;transform:none}.api-status{display:inline-flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:6px 12px;font-size:.75rem;font-weight:500;transition:.2s;box-shadow:var(--shadow)}.api-status:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.1)}.api-status .status-indicator{display:flex;align-items:center;gap:6px}.api-status .status-dot{width:8px;height:8px;border-radius:50%;background:var(--text-secondary);animation:2s ease-in-out infinite pulse;flex-shrink:0}.api-status.healthy .status-dot,.status-indicator.healthy .status-dot{background:var(--success-color);animation:2s infinite pulse}.api-status.demo .status-dot,.status-indicator.demo .status-dot{background:var(--warning-color)}.api-status.limited .status-dot,.status-indicator.limited .status-dot{background:var(--warning-color);animation:1s infinite blink}.api-status.error .status-dot,.status-indicator.error .status-dot{background:var(--danger-color)}.api-status .status-text{color:var(--text-primary);white-space:nowrap;font-size:.75rem;font-weight:500}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}@keyframes blink{0%,50%{opacity:1}100%,51%{opacity:.3}}.watchlist{display:grid;gap:18px}.stock-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;box-shadow:var(--shadow);transition:.3s;display:grid;grid-template-columns:auto 1fr auto auto;gap:15px;align-items:center;position:relative}.stock-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}.stock-card.dragging{opacity:.4;transform:scale(.98);box-shadow:0 8px 20px rgba(0,0,0,.3)}.stock-card.drag-hover{background:rgba(37,99,235,.03);transform:translateY(-1px);transition:.15s}.stock-card.drag-over-top{border-top:3px solid var(--primary-color)}.stock-card.drag-over-bottom{border-bottom:3px solid var(--primary-color)}.stock-card.drag-over-middle{background:rgba(37,99,235,.08);border:2px solid var(--primary-color);box-shadow:0 0 12px rgba(37,99,235,.2);transform:scale(1.01);transition:.15s}.stock-card.drag-group-target{background:rgba(37,99,235,.1);border:2px solid var(--primary-color);box-shadow:0 0 20px rgba(37,99,235,.3);transform:scale(1.02)}.drop-indicator{height:6px;margin:6px 0;position:relative;z-index:1000;pointer-events:none}.drop-line{height:6px;background:var(--primary-color);border-radius:3px;box-shadow:0 0 15px rgba(37,99,235,.8),0 0 30px rgba(37,99,235,.4);animation:.8s ease-in-out infinite dropLinePulse;position:relative}.drop-line::after,.drop-line::before{content:'';position:absolute;width:12px;height:12px;background:var(--primary-color);border-radius:50%;top:50%;transform:translateY(-50%);box-shadow:0 0 10px rgba(37,99,235,.8)}.drop-line::before{left:-6px}.drop-line::after{right:-6px}@keyframes dropLinePulse{0%,100%{opacity:.9;transform:scaleY(1);box-shadow:0 0 15px rgba(37,99,235,.8),0 0 30px rgba(37,99,235,.4)}50%{opacity:1;transform:scaleY(1.3);box-shadow:0 0 20px #2563eb,0 0 40px rgba(37,99,235,.6)}}.drag-handle{color:var(--text-secondary);cursor:grab;padding:8px;display:flex;align-items:center;justify-content:center;transition:.2s;opacity:.6}.drag-handle:hover{color:var(--primary-color);opacity:1}.drag-handle:active{cursor:grabbing}.drag-handle i{font-size:1.1rem}.stock-group{background:var(--background);border:2px solid var(--border);border-radius:16px;margin-bottom:24px;overflow:hidden;transition:.3s}.stock-group.dragging{opacity:.5;transform:scale(.98)}.stock-group.drag-hover{background:rgba(37,99,235,.03);transform:translateY(-2px);transition:.15s}.stock-group.stock-drag-over{background:rgba(37,99,235,.05);transition:background .2s}.stock-group.drag-over-top{border-top:3px solid var(--primary-color)}.stock-group.drag-over-bottom{border-bottom:3px solid var(--primary-color)}.group-header{background:var(--surface);padding:15px 20px;display:flex;justify-content:space-between;align-items:center;cursor:grab;border-bottom:1px solid var(--border);transition:background .2s}.group-header:hover{background:rgba(37,99,235,.05)}.group-header:active{cursor:grabbing}.group-header-left{display:flex;align-items:center;gap:12px}.group-collapse-btn{background:0 0;border:none;color:var(--text-secondary);cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center;transition:.2s;font-size:.9rem}.group-collapse-btn:hover{color:var(--primary-color);transform:scale(1.1)}.group-name{font-weight:600;font-size:1.05rem;color:var(--text-primary);border:2px solid transparent;padding:4px 8px;border-radius:6px;transition:.2s;cursor:text;outline:0}.group-name:hover{background:rgba(37,99,235,.05)}.group-name:focus{border-color:var(--primary-color);background:var(--background)}.group-count{font-size:.9rem;color:var(--text-secondary);font-weight:400}.group-actions{display:flex;gap:8px;align-items:center}.remove-group-btn,.ungroup-btn{background:0 0;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;transition:.2s;border-radius:6px}.ungroup-btn:hover{background:rgba(37,99,235,.1);color:var(--primary-color)}.remove-group-btn:hover{background:rgba(239,68,68,.1);color:#ef4444}.group-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.group-tag{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:14px;font-size:.85rem;font-weight:600;color:#fff;transition:.2s;user-select:none;box-shadow:0 2px 4px rgba(0,0,0,.1);letter-spacing:.3px}.group-tag:hover{filter:brightness(.95);transform:translateY(-1px);box-shadow:0 3px 6px rgba(0,0,0,.15)}.tag-remove-btn{background:rgba(0,0,0,.2);border:none;color:#fff;cursor:pointer;padding:0;width:20px;height:20px;min-width:20px;min-height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;transition:.2s;flex-shrink:0;margin-left:2px}.tag-remove-btn:hover{background:rgba(0,0,0,.35);transform:scale(1.1)}.tag-remove-btn i{font-size:.75rem;line-height:1}.add-tag-btn{background:rgba(37,99,235,.1);border:1px dashed var(--primary-color);color:var(--primary-color);cursor:pointer;padding:4px 8px;border-radius:12px;font-size:.75rem;display:flex;align-items:center;justify-content:center;transition:.2s}.add-tag-btn:hover{background:rgba(37,99,235,.15);transform:scale(1.05)}.add-tag-btn i{font-size:.7rem}.tag-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:10000;animation:.2s fadeIn}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.tag-dialog{background:var(--surface);border-radius:12px;box-shadow:var(--shadow-lg);width:90%;max-width:400px;animation:.3s slideUp}@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.tag-dialog-header{padding:20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.tag-dialog-header h3{margin:0;font-size:1.1rem;color:var(--text-primary)}.tag-dialog-close{background:0 0;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:6px;transition:.2s}.tag-dialog-close:hover{background:rgba(239,68,68,.1);color:var(--danger-color)}.tag-dialog-body{padding:20px;display:flex;flex-direction:column;gap:20px;max-height:70vh;overflow-y:auto}.existing-tags-section h4,.new-tag-section h4{margin:0 0 12px;font-size:.9rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;font-weight:600}.existing-tags-list{display:flex;flex-wrap:wrap;gap:8px}.existing-tag-item{padding:8px 16px;border-radius:16px;font-size:.85rem;font-weight:500;color:#fff;border:none;cursor:pointer;transition:.2s;box-shadow:0 2px 4px rgba(0,0,0,.1)}.existing-tag-item:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.15)}.existing-tag-item:active{transform:translateY(0)}.tag-dialog-divider{display:flex;align-items:center;text-align:center;margin:10px 0}.tag-dialog-divider::after,.tag-dialog-divider::before{content:'';flex:1;border-bottom:1px solid var(--border)}.tag-dialog-divider span{padding:0 15px;color:var(--text-secondary);font-size:.85rem;text-transform:uppercase;font-weight:500}.new-tag-section{display:flex;flex-direction:column;gap:12px}.tag-name-input{width:100%;padding:12px;border:2px solid var(--border);border-radius:8px;font-size:1rem;background:var(--background);color:var(--text-primary);transition:.2s}.tag-name-input:focus{outline:0;border-color:var(--primary-color);background:var(--surface)}.tag-color-picker{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.tag-color-option{width:100%;aspect-ratio:1;border:3px solid transparent;border-radius:8px;cursor:pointer;transition:.2s}.tag-color-option:hover{transform:scale(1.1)}.tag-color-option.selected{border-color:var(--text-primary);transform:scale(1.15);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--text-primary)}.tag-dialog-footer{padding:20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px}.tag-dialog-add,.tag-dialog-cancel{padding:10px 20px;border-radius:8px;font-size:.95rem;cursor:pointer;transition:.2s;border:none;font-weight:500}.tag-dialog-cancel{background:var(--background);color:var(--text-secondary)}.tag-dialog-cancel:hover{background:var(--border)}.tag-dialog-add{background:var(--primary-color);color:#fff}.tag-dialog-add:hover{background:var(--primary-hover)}.btn-primary,.btn-secondary{padding:10px 20px;border-radius:8px;font-size:.95rem;cursor:pointer;transition:.2s;border:none;font-weight:500;display:inline-flex;align-items:center;gap:8px;font-family:inherit}.btn-primary{background:var(--primary-color);color:#fff}.btn-primary:hover{background:var(--primary-hover);transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.3)}.btn-primary:active{transform:translateY(0)}.btn-primary:disabled{background:var(--text-secondary);cursor:not-allowed;transform:none;opacity:.6}.btn-secondary{background:var(--background);color:var(--text-primary);border:1px solid var(--border)}.btn-secondary:hover{background:var(--surface);border-color:var(--primary-color);transform:translateY(-1px)}.btn-secondary:active{transform:translateY(0)}.btn-secondary:disabled{opacity:.5;cursor:not-allowed;transform:none}.group-drag-handle{cursor:grab;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;position:relative;z-index:1}.group-drag-handle:active{cursor:grabbing}.group-drag-handle:hover{color:var(--primary-color);opacity:1}.group-stocks{padding:15px;display:flex;flex-direction:column;gap:16px;transition:.3s}.group-stocks.collapsed{display:none;padding:0}.stock-card.grouped{margin:0;box-shadow:0 2px 8px rgba(0,0,0,.08)}.stock-card.grouped:hover{box-shadow:0 4px 12px rgba(0,0,0,.12)}.stock-info{display:flex;flex-direction:column;gap:5px}.stock-symbol{font-size:1.3rem;font-weight:700;color:var(--text-primary)}.stock-name{color:var(--text-secondary);font-size:.9rem}.stock-price{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.current-price{color:var(--text-primary);line-height:1.2}.price-change{line-height:1.2;display:flex;align-items:center;gap:4px}.data-source-badge{font-size:.7rem;color:var(--text-secondary);margin-top:4px;display:flex;align-items:center;gap:4px;opacity:.8;font-weight:500}.data-source-badge.eod-badge{background:rgba(255,152,0,.1);color:#ff9800;padding:4px 8px;border-radius:6px;font-size:.65rem;font-weight:600;opacity:1;border:1px solid rgba(255,152,0,.2)}[data-theme=dark] .data-source-badge.eod-badge{background:rgba(255,152,0,.15);color:#ffb74d;border:1px solid rgba(255,152,0,.25)}.data-source-badge.crypto-badge{background:rgba(244,143,177,.1);color:#ec407a;padding:4px 8px;border-radius:6px;font-size:.65rem;font-weight:600;opacity:1;border:1px solid rgba(244,143,177,.2)}[data-theme=dark] .data-source-badge.crypto-badge{background:rgba(244,143,177,.15);color:#f48fb1;border:1px solid rgba(244,143,177,.25)}.data-source-badge i{font-size:.65rem}.create-group-btn{background:0 0;border:none;color:var(--primary-color);cursor:pointer;padding:8px;border-radius:50%;transition:.3s;margin-right:4px}.create-group-btn:hover{background:rgba(37,99,235,.1);transform:scale(1.1)}.remove-btn{background:0 0;border:none;color:var(--danger-color);cursor:pointer;padding:8px;border-radius:50%;transition:.3s}.remove-btn:hover{background:rgba(239,68,68,.1)}.empty-state{text-align:center;padding:60px 20px;color:var(--text-secondary)}.empty-state i{font-size:3rem;margin-bottom:20px;opacity:.5}.empty-state h3{font-size:1.5rem;margin-bottom:10px}.loading{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:2000}.spinner{width:40px;height:40px;border:4px solid var(--border);border-top:4px solid var(--primary-color);border-radius:50%;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:2000}.modal-content{background:var(--surface);padding:30px;border-radius:12px;max-width:400px;width:90%;text-align:center;box-shadow:var(--shadow-lg)}.close{float:right;font-size:1.5rem;cursor:pointer;color:var(--text-secondary)}.close:hover{color:var(--text-primary)}@media (max-width:768px){.container{padding:10px}h1{font-size:2rem}.stock-card{grid-template-columns:1fr auto;grid-template-rows:auto;gap:15px;padding:40px 15px 15px;position:relative;box-shadow:0 2px 8px rgba(0,0,0,.08);margin-bottom:12px}.stock-card .drag-handle{display:none}.stock-card .stock-info{grid-column:1;grid-row:1;align-self:center}.stock-card .stock-symbol{font-size:1.2rem;font-weight:700;letter-spacing:.5px}.stock-card .stock-name{margin-top:2px;opacity:.85}.stock-card .stock-price{grid-column:2;grid-row:1;text-align:right;align-self:center;min-width:0;max-width:150px;padding-right:8px;margin-top:6px;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.stock-card .stock-price .current-price{font-size:1.15rem;font-weight:700;line-height:1.2;word-break:break-word;max-width:100%}.stock-card .stock-price .current-price.large-price{font-size:.95rem}.stock-card .stock-price .price-change{font-size:.75rem;font-weight:600;line-height:1.2;word-break:break-word;max-width:100%}.stock-card .data-source-badge.eod-badge{font-size:.6rem;padding:3px 6px;margin-top:4px;white-space:nowrap}.stock-card .data-source-badge.eod-badge i{font-size:.55rem}.stock-card .stock-actions{position:absolute;top:8px;right:8px;display:flex;gap:4px;flex-direction:row}.watchlist .stock-card:last-child{margin-bottom:0}.stock-card .stock-actions button{background:rgba(255,255,255,.95);backdrop-filter:blur(4px);box-shadow:0 1px 3px rgba(0,0,0,.15)}[data-theme=dark] .stock-card .stock-actions button{background:rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.3)}.watchlist-header{flex-direction:column;gap:15px;align-items:flex-start}.refresh-container{align-self:flex-end}}.search-loading{display:flex;align-items:center;justify-content:center;padding:12px;gap:8px;color:var(--text-secondary);font-size:.8rem}.loading-dots{display:flex;gap:3px}.loading-dots span{width:4px;height:4px;background:var(--primary-color);border-radius:50%;animation:1.4s ease-in-out infinite both loadingDots}.loading-dots span:first-child{animation-delay:-.32s}.loading-dots span:nth-child(2){animation-delay:-.16s}@keyframes loadingDots{0%,100%,80%{transform:scale(.8);opacity:.5}40%{transform:scale(1.2);opacity:1}}.loading-text{font-weight:500}.overview-item.full-width{grid-column:1/-1}.overview-item a{color:var(--primary-color);text-decoration:none;word-break:break-all}.overview-item a:hover{text-decoration:underline}.data-limitation-notice{margin-top:20px;padding:12px 16px;background:var(--warning-color);background:rgba(245,158,11,.1);border-left:4px solid var(--warning-color);border-radius:4px;display:flex;align-items:flex-start;gap:10px;font-size:.9rem;color:var(--text-secondary)}.data-limitation-notice i{color:var(--warning-color);margin-top:2px;flex-shrink:0}.tooltip-container{position:relative;display:inline-block;margin-left:4px}.tooltip-icon{font-size:.75rem;color:var(--text-secondary);opacity:.6;cursor:help;transition:opacity .2s}.tooltip-icon:hover{opacity:1;color:var(--primary-color)}.tooltip-text{visibility:hidden;opacity:0;position:absolute;bottom:125%;left:50%;transform:translateX(-50%);width:220px;background-color:var(--surface);color:var(--text-primary);text-align:left;padding:10px 12px;border-radius:8px;border:1px solid var(--border);box-shadow:var(--shadow-lg);z-index:1000;font-size:.8rem;line-height:1.4;font-weight:400;transition:opacity .3s,visibility .3s;pointer-events:none}.tooltip-text::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--surface) transparent transparent transparent}.tooltip-container:hover .tooltip-text{visibility:visible;opacity:1}@media (max-width:768px){.tooltip-text{width:180px;font-size:.75rem;padding:8px 10px}}.detailed-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:center;z-index:3000;padding:20px;overflow-y:auto}.detailed-modal-content{background:var(--surface);border-radius:16px;max-width:900px;width:100%;max-height:90vh;overflow-y:auto;overflow-x:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:.3s ease-out modalSlideIn}@keyframes modalSlideIn{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.detailed-modal-content .modal-header{display:flex;justify-content:space-between;align-items:flex-start;padding:24px 28px 20px;border-bottom:2px solid var(--border);background:linear-gradient(to bottom,var(--surface),transparent);position:sticky;top:0;z-index:10;border-radius:16px 16px 0 0}.stock-header-info h2{font-size:2rem;font-weight:700;color:var(--text-primary);margin:0 0 4px}.stock-subtitle{font-size:1rem;color:var(--text-secondary);font-weight:400}.detailed-modal-content .close{background:0 0;border:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:.2s;flex-shrink:0;margin-left:16px}.detailed-modal-content .close:hover{background:var(--danger-color);color:#fff;transform:scale(1.1)}.detailed-modal-content .close i{font-size:1.2rem}.modal-body{padding:24px 28px 28px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:20px 28px;border-top:1px solid var(--border);background:var(--background);border-radius:0 0 16px 16px}.modal-footer button{padding:10px 18px;font-size:.9rem;white-space:nowrap}.price-section{margin-bottom:28px;padding:20px;background:linear-gradient(135deg,var(--primary-color)15,transparent);border-radius:12px;border:1px solid var(--border)}.current-price-info{display:flex;flex-direction:column;gap:8px}.price-display{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.current-price{font-size:2.5rem;font-weight:700;color:var(--text-primary)}.price-change{font-size:1.1rem;font-weight:600;display:flex;align-items:center;gap:6px}.price-change.positive{color:var(--success-color)}.price-change.negative{color:var(--danger-color)}.market-status{font-size:.85rem;color:var(--text-secondary)}.overview-section{margin-bottom:24px}.overview-section h3,.overview-section h4{font-size:1.3rem;font-weight:600;color:var(--text-primary);margin:0 0 16px;padding-bottom:8px;border-bottom:1px solid var(--border)}.overview-section h4{font-size:1.1rem;margin-top:24px}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:16px;width:100%;max-width:100%}.overview-item{display:flex;flex-direction:column;gap:6px;padding:12px;background:var(--background);border-radius:8px;border:1px solid var(--border);transition:.2s}.overview-item:hover{border-color:var(--primary-color);box-shadow:0 2px 8px rgba(0,0,0,.1)}.overview-item label{font-size:.8rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:4px}.overview-item>span{font-size:1rem;font-weight:600;color:var(--text-primary);word-break:break-word;overflow-wrap:break-word}.description-section{margin-top:20px;padding:16px;background:var(--background);border-radius:8px;border-left:4px solid var(--primary-color)}.description-section h4{font-size:1rem;margin:0 0 12px;border:none;padding:0}.description-section p{font-size:.95rem;line-height:1.6;color:var(--text-secondary);margin:0}@media (max-width:768px){.detailed-modal-overlay{padding:10px}.detailed-modal-content{max-height:95vh}.detailed-modal-content .modal-header{padding:16px 20px}.stock-header-info h2{font-size:1.5rem}.modal-body{padding:16px 20px;width:100%;max-width:100%;overflow-x:hidden}.description-section,.overview-section,.price-section{width:100%;max-width:100%;overflow-x:hidden}.stock-header-info h2,.stock-subtitle{word-break:break-word;overflow-wrap:break-word}.current-price{font-size:2rem}.price-change{font-size:1rem}.overview-grid{grid-template-columns:1fr;gap:12px;width:100%;max-width:100%;overflow-x:hidden}.overview-item{min-width:0;max-width:100%}.overview-item>span{word-break:break-word;overflow-wrap:break-word;max-width:100%}.detailed-modal-content .close{width:36px;height:36px}.modal-footer{padding:16px 20px;gap:10px}.modal-footer button{padding:10px 16px;font-size:.875rem}}.historical-badge{display:inline-flex;align-items:center;gap:6px;background:var(--warning-color);color:#fff;font-size:.8rem;font-weight:600;padding:4px 12px;border-radius:20px;text-transform:uppercase;letter-spacing:.5px}.historical-badge i{font-size:.9rem}.historical-notice{display:flex;align-items:center;gap:10px;margin-bottom:24px;padding:14px 18px;background:rgba(37,99,235,.12);border-left:4px solid var(--primary-color);border-radius:8px;font-size:.95rem;font-weight:500;color:var(--text-primary);box-shadow:0 2px 4px rgba(0,0,0,.05)}.historical-notice i{color:var(--primary-color);font-size:1.1rem;flex-shrink:0}.overview-item span.positive{color:var(--success-color);font-weight:700}.overview-item span.negative{color:var(--danger-color);font-weight:700}.split-notice-item{background:rgba(245,158,11,.1)!important;border-left:4px solid var(--warning-color)!important;padding:14px!important}.split-notice-item label{color:var(--warning-color)!important;font-weight:700;display:flex;align-items:center;gap:8px}.split-notice-item label i{font-size:1rem}.split-notice-item span{color:var(--text-secondary);font-size:.9rem;font-weight:500}.dual-price-item{position:relative}.dual-price-item.comparison-highlight{background:linear-gradient(135deg,rgba(37,99,235,.08),transparent)!important}.btn-warning{background:var(--warning-color);color:#fff;border:none;padding:10px 20px;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:600;display:inline-flex;align-items:center;gap:8px;transition:.3s}.btn-warning:hover{background:#d97706;transform:translateY(-2px);box-shadow:0 4px 12px rgba(245,158,11,.3)}.btn-warning:active{transform:translateY(0)}.btn-warning i{font-size:1rem}.price-section.historical-price-section{background:linear-gradient(135deg,rgba(245,158,11,.15),transparent)}.trading-comparison-section{margin-bottom:24px}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:100%;max-width:100%;overflow-x:hidden}.comparison-column{background:var(--background);border-radius:12px;padding:20px;border:2px solid var(--border)}.comparison-column.historical-column{border-left:4px solid var(--warning-color)}.comparison-column.current-column{border-left:4px solid var(--success-color)}.comparison-column h3{font-size:1.1rem;font-weight:600;color:var(--text-primary);margin:0 0 16px;padding-bottom:12px;border-bottom:2px solid var(--border);display:flex;align-items:center;gap:8px}.comparison-column h3 i{color:var(--primary-color);font-size:1rem}.comparison-column.historical-column h3 i{color:var(--warning-color)}.comparison-column.current-column h3 i{color:var(--success-color)}.comparison-column .overview-grid{grid-template-columns:1fr;gap:12px}.comparison-highlight{background:linear-gradient(135deg,rgba(37,99,235,.05),transparent)!important;border:2px solid var(--primary-color)!important;box-shadow:0 2px 8px rgba(37,99,235,.15)!important}.comparison-highlight label{color:var(--primary-color)!important;font-weight:700}@media (max-width:768px){.historical-badge{font-size:.7rem;padding:3px 10px}.historical-notice{font-size:.85rem;padding:10px 12px}.btn-warning{width:100%;justify-content:center;padding:12px 20px}.comparison-grid{grid-template-columns:1fr;gap:16px;width:100%;max-width:100%;overflow-x:hidden}.comparison-column{padding:16px;min-width:0;max-width:100%;overflow-x:hidden}.comparison-column h3{font-size:1rem;word-break:break-word}header{padding:15px;margin-bottom:15px}.header-top{flex-direction:column;gap:10px;align-items:flex-start}h1{font-size:1.5rem}.header-controls{width:100%;justify-content:flex-end}.search-container{padding:16px;margin-top:10px}.search-box{font-size:.95rem}#stockSearch{padding:12px 45px;font-size:16px}.search-box i{left:14px;font-size:1rem}.clear-btn{right:10px;font-size:1.6rem}.search-filter{flex-direction:column;gap:10px;align-items:stretch;margin-top:14px}.search-filter label{font-size:.85rem}.market-filter-select{width:100%;font-size:16px;padding:10px 36px 10px 12px}.api-status{padding:5px 8px;font-size:.7rem;border-radius:16px}.api-status .status-dot{width:6px;height:6px}.api-status .status-text{font-size:.7rem}.watchlist-header{flex-direction:column;gap:12px;align-items:stretch}.watchlist-header-left{width:100%}.watchlist-selector{max-width:100%}.watchlist-scroller{gap:6px}.watchlist-tab{padding:10px 12px;font-size:.85rem;min-height:44px}.watchlist-tab-name{font-size:.85rem}.watchlist-tab-count{font-size:.75rem;padding:1px 5px}.watchlist-tab-delete{width:20px;height:20px}.watchlist-tab.add-tab{padding:6px 10px;font-size:.85rem}.watchlist-scroll-btn{width:28px;height:28px;font-size:.8rem}.refresh-container{width:100%;justify-content:space-between}.last-updated{font-size:.8rem}.refresh-btn{padding:8px 10px;font-size:.9rem}.stock-card{padding:40px 15px 15px;gap:15px;box-shadow:0 2px 8px rgba(0,0,0,.08);margin-bottom:12px}.drag-handle{display:none}.stock-symbol{font-size:1.2rem;font-weight:700;line-height:1.2;letter-spacing:.5px}.stock-name{font-size:.8rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px;margin-top:2px;opacity:.85}.stock-price{max-width:130px;min-width:0;padding-right:8px;margin-top:6px}.current-price{font-size:1.25rem;font-weight:700;line-height:1.2;word-break:break-word;max-width:100%}.current-price.large-price{font-size:1rem}.price-change{font-size:.8rem;font-weight:600;line-height:1.3;word-break:break-word;max-width:100%}.stock-actions{display:flex;gap:4px}.stock-actions button{padding:5px;min-width:32px;min-height:32px;font-size:.85rem;background:rgba(255,255,255,.95);backdrop-filter:blur(4px);box-shadow:0 1px 3px rgba(0,0,0,.15)}[data-theme=dark] .stock-actions button{background:rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.3)}.group-header{padding:15px 15px 12px;flex-direction:row;align-items:flex-start;cursor:default;position:relative}.group-header:hover{background:var(--surface)}.group-header .group-collapse-btn,.group-header .group-drag-handle{display:none!important}.group-header-left{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;width:100%;padding-right:80px;align-items:center}.group-header-left .group-name{font-size:1.05rem;font-weight:700;padding:0;order:1;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3;color:var(--text-primary)}.group-header-left .group-count{font-size:.75rem;font-weight:700;order:2;flex-shrink:0;padding:3px 8px;background:var(--primary-color);border-radius:12px;color:#fff;margin-left:8px;box-shadow:0 1px 2px rgba(37,99,235,.3);align-self:flex-start}[data-theme=dark] .group-header-left .group-count{background:var(--primary-color)}.group-header-left .group-tags{order:3;width:100%;display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.group-tag{font-size:.72rem;padding:4px 10px;font-weight:600;border-radius:12px;letter-spacing:.3px;box-shadow:0 1px 3px rgba(0,0,0,.12);border:1px solid rgba(0,0,0,.08);display:inline-flex;align-items:center;gap:4px;transition:.2s}[data-theme=dark] .group-tag{border:1px solid rgba(255,255,255,.1);box-shadow:0 1px 3px rgba(0,0,0,.3)}.group-tag:active{transform:scale(.97)}.group-tag .tag-remove-btn{margin-left:4px;padding:0;width:24px;height:24px;min-width:24px;min-height:24px;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,0,0,.15);border-radius:50%;transition:.2s;color:#fff;flex-shrink:0}[data-theme=dark] .group-tag .tag-remove-btn{background:rgba(0,0,0,.3)}.group-tag .tag-remove-btn:hover{background:rgba(0,0,0,.25);transform:scale(1.1)}.group-tag .tag-remove-btn i{font-size:.75rem;line-height:1}.add-tag-btn{padding:4px 10px;font-size:.72rem;min-height:28px;font-weight:600;background:rgba(37,99,235,.1);border:1.5px dashed rgba(37,99,235,.4);color:var(--primary-color);border-radius:12px;transition:.2s;display:inline-flex;align-items:center;gap:4px}.add-tag-btn:hover{background:rgba(37,99,235,.15);border-color:var(--primary-color);transform:translateY(-1px);box-shadow:0 2px 4px rgba(37,99,235,.2)}.add-tag-btn:active{transform:translateY(0)}.group-stocks{display:flex!important}.group-actions{position:absolute;top:12px;right:12px;display:flex;gap:6px;z-index:10}.group-actions button{padding:8px;min-width:36px;min-height:36px;font-size:.9rem;background:rgba(255,255,255,.95);backdrop-filter:blur(4px);box-shadow:0 1px 3px rgba(0,0,0,.15);border-radius:8px}[data-theme=dark] .group-actions button{background:rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.3)}.group-stocks{padding:12px;gap:12px}.tag-dialog{width:95%;max-width:350px}.tag-dialog-header{padding:12px}.tag-dialog-header h3{font-size:.95rem}.tag-dialog-body{padding:15px;gap:15px;max-height:60vh}.existing-tags-section h4,.new-tag-section h4{font-size:.8rem;margin-bottom:10px}.existing-tag-item{padding:6px 12px;font-size:.8rem}.tag-name-input{padding:10px;font-size:16px}.tag-color-picker{grid-template-columns:repeat(4,1fr);gap:8px}.tag-dialog-footer{padding:12px;gap:8px}.btn-primary,.btn-secondary,.tag-dialog-add,.tag-dialog-cancel{padding:10px 16px;font-size:.9rem}.drop-indicator{height:4px;margin:4px 0}.drop-line{height:4px}.drop-line::after,.drop-line::before{width:10px;height:10px}.empty-state{padding:40px 20px}.empty-state i{font-size:3rem}.empty-state h3{font-size:1.2rem}.empty-state p{font-size:.9rem}.search-results{max-height:60vh}.search-result{padding:12px;gap:10px}.search-result-info h4{font-size:.95rem}.search-result-info p{font-size:.8rem}.add-btn{padding:8px 12px;font-size:.85rem}.modal-content{width:95%;max-width:100%;margin:20px;padding:15px;max-height:90vh;overflow-y:auto}.modal-header{padding:15px;margin:-15px -15px 15px}.modal-header h2{font-size:1.2rem}.close{font-size:1.8rem}body{font-size:14px}}@media (max-width:576px){.container{padding:8px}header{padding:12px}h1{font-size:1.3rem}.watchlist-tab{padding:5px 8px;font-size:.8rem}.watchlist-tab-name{font-size:.8rem}.stock-card{padding:36px 12px 12px;gap:12px;box-shadow:0 2px 6px rgba(0,0,0,.08);margin-bottom:10px}.drag-handle{display:none}.stock-symbol{font-size:1.05rem;font-weight:700;letter-spacing:.3px}.stock-name{font-size:.75rem;max-width:140px;margin-top:2px;opacity:.85}.stock-price{max-width:130px;padding-right:6px;margin-top:4px;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.current-price{font-size:1rem;font-weight:700;line-height:1.2;word-break:break-word;max-width:100%}.current-price.large-price{font-size:.85rem}.price-change{font-size:.7rem;font-weight:600;line-height:1.2;word-break:break-word;max-width:100%}.stock-actions button{padding:4px;min-width:28px;min-height:28px;font-size:.8rem;background:rgba(255,255,255,.95);backdrop-filter:blur(4px);box-shadow:0 1px 3px rgba(0,0,0,.15)}[data-theme=dark] .stock-actions button{background:rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.3)}.group-header{padding:12px 12px 10px}.group-header .group-collapse-btn,.group-header .group-drag-handle{display:none!important}.group-header-left{padding-right:70px}.group-header-left .group-name{font-size:.95rem;font-weight:700;max-width:100%;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.group-header-left .group-count{font-size:.7rem;font-weight:700;padding:2px 6px;background:var(--primary-color);border-radius:10px;color:#fff;margin-left:6px;box-shadow:0 1px 2px rgba(37,99,235,.3);align-self:flex-start}.group-header-left .group-tags{margin-top:6px;gap:4px}.group-tag{font-size:.68rem;padding:3px 8px;font-weight:600;border-radius:10px;letter-spacing:.2px;box-shadow:0 1px 2px rgba(0,0,0,.12);border:1px solid rgba(0,0,0,.08);display:inline-flex;align-items:center;gap:3px}[data-theme=dark] .group-tag{border:1px solid rgba(255,255,255,.1);box-shadow:0 1px 2px rgba(0,0,0,.3)}.group-tag .tag-remove-btn{margin-left:3px;padding:0;width:22px;height:22px;min-width:22px;min-height:22px;background:rgba(0,0,0,.15);border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[data-theme=dark] .group-tag .tag-remove-btn{background:rgba(0,0,0,.3)}.group-tag .tag-remove-btn i{font-size:.7rem;line-height:1}.add-tag-btn{padding:3px 8px;font-size:.68rem;min-height:24px;font-weight:600;background:rgba(37,99,235,.1);border:1.5px dashed rgba(37,99,235,.4);color:var(--primary-color);border-radius:10px;display:inline-flex;align-items:center;gap:3px}.group-actions{top:10px;right:10px;gap:4px}.group-actions button{padding:6px;min-width:32px;min-height:32px;font-size:.85rem}.group-stocks{display:flex!important}.tag-color-picker{grid-template-columns:repeat(4,1fr);gap:6px}.modal-content{margin:10px}}@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}.rotating{animation:1s linear infinite spin}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}.search-section{border-bottom:1px solid var(--border)}.section-header{padding:8px 12px;background:var(--background);font-size:.8rem;color:var(--text-secondary);display:flex;justify-content:space-between;align-items:center}.date-picker-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:4000;animation:.2s fadeIn}.date-picker-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px)}.date-picker-content{background:var(--surface);border-radius:12px;max-width:400px;width:90%;box-shadow:0 25px 50px rgba(0,0,0,.5);border:1px solid var(--border);animation:.3s ease-out modalSlideIn}.date-picker-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border)}.date-picker-header h3{margin:0;color:var(--text-primary);font-size:1.3rem;font-weight:600}.close-date-picker{background:0 0;border:none;font-size:28px;cursor:pointer;color:var(--text-secondary);padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:.2s}.close-date-picker:hover{background:var(--danger-color);color:#fff;transform:scale(1.1)}.date-picker-body{padding:32px 24px}.date-picker-hint{margin:0 0 16px;padding:10px 12px;background:rgba(59,130,246,.1);border-left:3px solid var(--primary-color);border-radius:4px;font-size:.85rem;color:var(--text-secondary);display:flex;align-items:center;gap:8px;line-height:1.4}.date-picker-hint i{color:var(--primary-color);font-size:.9rem;flex-shrink:0}[data-theme=dark] .date-picker-hint{background:rgba(59,130,246,.15)}.date-input{width:100%;padding:14px 16px;font-size:1rem;border:2px solid var(--border);border-radius:8px;background:var(--background);color:var(--text-primary);transition:.2s;font-family:inherit}.date-input:focus{outline:0;border-color:var(--primary-color);box-shadow:0 0 0 3px rgba(59,130,246,.1)}.date-input::-webkit-calendar-picker-indicator{cursor:pointer;filter:var(--calendar-icon-filter, invert(.5));font-size:1.2rem;padding:4px}[data-theme=dark] .date-input::-webkit-calendar-picker-indicator{--calendar-icon-filter:invert(0.8)}.date-picker-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:12px}.date-picker-footer .btn-primary,.date-picker-footer .btn-secondary{padding:10px 20px;font-size:.95rem}.historical-modal{animation:.3s fadeIn}.historical-modal .modal-content{background:#fff;border-radius:12px;max-width:400px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 10px 25px rgba(0,0,0,.3)}[data-theme=dark] .historical-modal .modal-content{background:var(--surface);color:var(--text-primary)}.historical-modal .modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border)}.historical-modal .modal-header h3{margin:0;color:var(--text-primary)}.close-modal{background:0 0;border:none;font-size:24px;cursor:pointer;color:var(--text-secondary);padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.close-modal:hover{color:var(--text-primary)}.historical-modal .modal-body{padding:24px}.historical-info h4{margin:0 0 20px;color:var(--primary-color);text-align:center}.price-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.price-item{display:flex;justify-content:space-between;align-items:center;padding:12px;background:var(--background);border-radius:8px}.price-item.full-width{grid-column:1/-1}.price-item label{font-weight:600;color:var(--text-secondary);font-size:.9rem}.price-item .price{font-weight:700;color:var(--text-primary)}.price-item .price.highlight{color:var(--primary-color);font-size:1.1rem}.price-item .volume{color:var(--text-secondary);font-size:.9rem}.price-item .change.positive{color:var(--success-color)}.price-item .change.negative{color:var(--danger-color)}.search-hint{padding:12px 16px;background:var(--background);border-left:4px solid var(--primary-color);margin:8px 0;border-radius:6px;font-size:.9rem;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.search-hint i{color:var(--primary-color);font-size:1rem}.search-hint strong{color:var(--text-primary);font-weight:600}[data-theme=dark] .search-hint{background:var(--surface);border-left-color:var(--primary-color)}.api-search-hint,.min-char-message{animation:.3s slideDown}@keyframes slideDown{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.source-badge{background:var(--success-color);color:#fff;padding:2px 6px;border-radius:10px;font-size:.7rem;font-weight:700}.result-count{font-size:.7rem;opacity:.7}.result-content{padding:12px}.result-content .source{font-size:.7rem;color:var(--text-secondary);text-transform:uppercase}.stats{margin-top:10px;color:var(--text-secondary)}.stats small{font-size:.8rem}.rate-limit-content{display:flex;align-items:center;gap:8px}.stock-details{padding:12px 16px}.stock-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.symbol{font-weight:600;font-size:1.1em;color:var(--primary-color)}.name{display:block;font-size:.9em;color:var(--text-secondary);margin-bottom:4px}.match-type{font-size:.7rem;padding:2px 6px;border-radius:10px;font-weight:500;text-transform:uppercase}.match-type.exact-name{background:#e3f2fd;color:#1976d2}.match-type.keyword{background:#f3e5f5;color:#7b1fa2}.match-type.sector{background:#e8f5e8;color:#388e3c}.match-type.symbol{background:#fff3e0;color:#f57c00}.sector-badge{font-size:.7rem;background:var(--background);color:var(--text-secondary);padding:2px 6px;border-radius:10px;margin-right:4px;border:1px solid var(--border)}.keywords{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.keyword{font-size:.65rem;background:var(--background);color:var(--text-secondary);padding:1px 4px;border-radius:8px;border:1px solid var(--border)}.type-badge{font-size:.7rem;padding:2px 6px;border-radius:10px;font-weight:500;margin-right:4px;display:inline-flex;align-items:center;gap:4px}.type-badge i{font-size:.6rem}.relevance-badge{font-size:.7rem;padding:2px 6px;border-radius:10px;font-weight:500;margin-left:auto}.relevance-badge.high{background:#c8e6c9;color:#2e7d32}.relevance-badge.medium{background:#fff9c4;color:#f57f17}.relevance-badge.low{background:#ffccbc;color:#e64a19}.company-match-hint,.correction-hint{font-size:.75rem;color:var(--text-secondary);font-style:italic;padding:4px 16px;background:var(--background);border-top:1px solid var(--border)}.company-match-hint i,.correction-hint i{margin-right:4px}.search-container{position:relative}.search-filters{position:relative;margin-top:8px;display:flex;align-items:center;gap:8px}.search-type-toggle{background:var(--background);border:1px solid var(--border);border-radius:6px;padding:6px 10px;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:.85rem;color:var(--text-secondary);transition:.2s}.search-type-toggle:hover{background:var(--surface);color:var(--text-primary);border-color:var(--primary-color)}.search-type-toggle.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.filter-count{background:var(--primary-color);color:#fff;border-radius:10px;padding:2px 6px;font-size:.7rem;font-weight:700;min-width:16px;text-align:center}.search-type-dropdown{position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-lg);z-index:1100;min-width:250px;max-width:300px;animation:.2s slideDown}[data-theme=dark] .search-type-dropdown{background:var(--surface);border-color:var(--border)}.dropdown-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border)}.dropdown-header h4{margin:0;font-size:.9rem;color:var(--text-primary)}.clear-filters-btn{background:0 0;border:none;color:var(--danger-color);font-size:.8rem;cursor:pointer;padding:4px 8px;border-radius:4px}.clear-filters-btn:hover{background:var(--background)}.search-type-options{padding:8px 0;max-height:300px;overflow-y:auto}.search-type-option{display:flex;align-items:center;gap:10px;padding:10px 16px;cursor:pointer;transition:background .2s;font-size:.85rem;color:var(--text-primary)}.search-type-option:hover{background:var(--background)}.search-type-checkbox{margin:0;width:16px;height:16px;cursor:pointer}.search-type-option i{width:16px;text-align:center;font-size:.9rem}.search-type-label{flex:1}.dropdown-footer{display:flex;justify-content:flex-end;padding:12px 16px;border-top:1px solid var(--border);gap:8px}.apply-filters-btn{background:var(--primary-color);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:.85rem;cursor:pointer;transition:background .2s}.apply-filters-btn:hover{background:var(--primary-hover)}.typing-indicator{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--border);border-top:none;border-radius:0 0 8px 8px;padding:12px 16px;box-shadow:var(--shadow-lg);z-index:999;animation:.2s slideDown}[data-theme=dark] .typing-indicator{background:var(--surface);border-color:var(--border)}.typing-content{display:flex;align-items:center;gap:10px;font-size:.85rem;color:var(--text-secondary)}.typing-dots{display:flex;gap:4px}.typing-dots span{width:6px;height:6px;background:var(--primary-color);border-radius:50%;animation:1.4s ease-in-out infinite typingDot}.typing-dots span:first-child{animation-delay:-.32s}.typing-dots span:nth-child(2){animation-delay:-.16s}.typing-dots span:nth-child(3){animation-delay:0s}@keyframes typingDot{0%,100%,80%{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}.typing-text{flex:1}.typing-timer{font-size:.75rem;color:var(--text-secondary);opacity:.8}.options-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:1001;padding:20px;backdrop-filter:blur(4px)}.options-modal-content{background:var(--surface);border-radius:12px;max-width:1200px;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px rgba(0,0,0,.5);border:1px solid var(--border);width:100%;animation:.3s ease-out modalSlideIn}.options-header-info h2{margin:0 0 4px;color:var(--text-primary);font-size:1.75rem;font-weight:600}.options-subtitle{color:var(--text-secondary);font-size:1rem;margin-bottom:16px}.options-tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:1px solid var(--border);padding-bottom:16px}.options-tab{background:var(--background);color:var(--text-secondary);border:1px solid var(--border);padding:12px 20px;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:.2s;display:flex;align-items:center;gap:8px}.options-tab:hover{background:var(--surface);color:var(--text-primary)}.options-tab.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.options-tab.active:hover{background:var(--primary-hover)}.options-content{animation:.3s ease-out fadeIn}.options-table-container{background:var(--background);border-radius:8px;overflow:hidden;border:1px solid var(--border);position:relative;max-height:60vh;overflow-y:auto}.options-table{width:100%;border-collapse:collapse;font-size:.85rem}.options-table th{background:var(--surface);color:var(--text-primary);padding:12px 8px;text-align:left;font-weight:600;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.options-table td{padding:10px 8px;border-bottom:1px solid var(--border);color:var(--text-primary)}.options-table tr:hover{background:var(--surface)}.options-table tr.in-the-money{background:rgba(34,197,94,.05);border-left:3px solid var(--success-color)}.options-table tr.in-the-money:hover{background:rgba(34,197,94,.1)}.strike{font-weight:600;color:var(--text-primary)}.greeks{font-size:.75rem;line-height:1.3}.greek-item{padding:2px 0;font-family:'Courier New',monospace}.open-interest,.volume{text-align:right;font-family:'Courier New',monospace}.implied-volatility{color:var(--text-secondary);font-size:.8rem}.intrinsic-value,.time-value{text-align:right;font-weight:500}.change,.last-price,.percent-change{font-weight:500}.options-table-container::after,.options-table-container::before{content:'';position:absolute;left:0;right:0;height:20px;pointer-events:none;z-index:1}.options-table-container::before{top:0;background:linear-gradient(to bottom,var(--background),transparent)}.options-table-container::after{bottom:0;background:linear-gradient(to top,var(--background),transparent)}@media (max-width:768px){.options-modal-overlay{padding:10px}.options-modal-content{max-height:95vh;border-radius:8px}.options-table{font-size:.75rem}.options-table td,.options-table th{padding:8px 4px}.options-tabs{flex-direction:column}.options-tab{justify-content:center}.greeks{font-size:.7rem}.greek-item{padding:1px 0}}