:root{font-size:clamp(14px, 1.5vw, 16px)}html{--bg-color:#4a4a4a;--text-color:#f0f0f0;--primary-color:#0098ff;--primary-hover-color:#0056b3;--section-bg-color:#333;--item-bg-color:#404040;--item-hover-bg-color:#555;--input-bg-color:#555;--input-border-color:#666;--chart-bg-color:black;--grid-line-color:rgb(240 240 240 / 10%);--tooltip-bg-color:#2a2a2a;--tooltip-border-color:#666;--tab-inactive-color:#80a7c5;--positive-color:#28a745;--negative-color:#dc3545;--risk-high-color:#ffc107;--risk-medium-color:#fd7e14;--risk-low-color:#20c997;--market-cap-bg:#2a2a2a}[data-theme=light]{--bg-color:#f4f4f4;--text-color:#333;--primary-color:#007bff;--primary-hover-color:#0056b3;--section-bg-color:#fff;--item-bg-color:#f8f9fa;--item-hover-bg-color:#e9ecef;--input-bg-color:#fff;--input-border-color:#ced4da;--chart-bg-color:#f8f9fa;--grid-line-color:rgb(0 0 0 / 10%);--tooltip-bg-color:#fff;--tooltip-border-color:#ddd;--tab-inactive-color:#6c9ac4;--positive-color:#198754;--negative-color:#dc3545;--risk-high-color:#ffc107;--risk-medium-color:#fd7e14;--risk-low-color:#198754;--market-cap-bg:#fff}body{font-family:Arial,sans-serif;margin:4px;background-color:var(--bg-color);color:var(--text-color)}h1{color:var(--primary-color);font-size:clamp(2rem, 5vw, 2.5rem)}body>h1{margin-top:16px;margin-bottom:4px;padding-left:20px;margin-left:0}h2{color:var(--primary-color);font-size:clamp(1.25rem, 4vw, 1.5rem)}.section{background-color:var(--section-bg-color);padding:4px;border-radius:8px;box-shadow:0 2px 4px rgb(0 0 0 / 10%)}label{display:block;margin-bottom:5px;font-weight:700}label:has(+ [required])::after,label[for]:has(+ * [required])::after{content:" *";color:var(--negative-color);font-weight:700;margin-left:2px}input[type=number],input[type=text],select,textarea{width:100%;padding:10px;margin-bottom:10px;border:1px solid var(--input-border-color);border-radius:4px;background-color:var(--input-bg-color);color:var(--text-color)}button{background-color:var(--primary-color);color:#fff;padding:10px 15px;border:none;border-radius:4px;cursor:pointer;font-size:1rem}button:hover{background-color:var(--primary-hover-color)}button.edit-button{background-color:#ffc107;margin-right:10px}button.delete-button{background-color:#dc3545}button.delete-button:hover{background-color:#c82333}.market-cap-container{text-align:center;margin:-10px 0 20px}.market-cap-container h2{display:inline-block;background-color:var(--market-cap-bg);padding:10px 20px;border-radius:8px;font-size:1.2rem;border:1px solid var(--input-border-color)}.ai-suggestions-list{list-style-type:'💡';padding-left:20px;margin-top:5px}.ai-suggestions-list li{padding-left:10px;margin-bottom:10px;background-color:transparent;align-items:flex-start}.stage-timeline{list-style:none;padding-left:0;margin-top:10px;position:relative;border-left:2px solid var(--input-border-color);margin-left:10px}.stage-timeline li{padding:10px 20px;position:relative;margin-left:20px;margin-bottom:15px}.stage-timeline li::before{content:'';background-color:var(--bg-color);border:3px solid var(--primary-color);border-radius:50%;position:absolute;left:-31px;top:50%;transform:translateY(-50%);width:10px;height:10px;z-index:1}.item-list{list-style:none;padding:0}.item-list li{background-color:var(--item-bg-color);padding:15px;border-radius:4px;cursor:pointer;transition:background-color .2s;display:flex;flex-direction:column;gap:8px}.news-list{max-height:300px;overflow-y:auto}.news-details strong{color:#f0f0f0}.news-details{display:flex;justify-content:space-between;font-size:.85rem;color:#ccc;margin-top:8px;padding-top:8px;border-top:1px solid var(--item-hover-bg-color)}.table-container{width:100%;overflow-x:auto}.idea-table{width:100%;border-collapse:collapse;font-size:.9em;margin-top:2px}.idea-table td,.idea-table th{padding:2px;text-align:left;border-bottom:1px solid var(--input-border-color)}.idea-table th{background-color:var(--item-bg-color);font-size:.9rem;text-align:center;color:var(--primary-color);text-transform:uppercase}.idea-table tbody tr:hover{background-color:var(--item-hover-bg-color)}.idea-ticker-cell{font-family:Impact,'Arial Black',sans-serif;font-weight:700;font-size:1.1em}.item-list li:hover{background-color:var(--item-hover-bg-color)}.score-positive{color:var(--positive-color);font-weight:700}.score-negative{color:var(--negative-color);font-weight:700}.stage-tag{font-size:.8rem;font-weight:700;padding:3px 8px;border-radius:10px;margin-left:10px;white-space:nowrap}.risk-high{color:#ffc107}.risk-medium{color:#fd7e14}.risk-low{color:#20c997}.risk-indicator{display:flex;flex-direction:column;width:20px;height:30px;border:1px solid var(--input-border-color);border-radius:4px;padding:2px;gap:2px}.risk-bar{flex:1;background-color:var(--item-bg-color);border-radius:1px;transition:background-color .3s}.risk-bar.filled.risk-low{background-color:var(--risk-low-color)}.risk-bar.filled.risk-medium{background-color:var(--risk-medium-color)}.risk-bar.filled.risk-high{background-color:var(--risk-high-color)}.risk-bar.filled.risk-critical{background-color:var(--risk-critical-color)}.risk-score-container{position:relative;display:inline-block;cursor:help}.risk-tooltip{visibility:hidden;width:300px;background-color:var(--tooltip-bg-color);color:var(--text-color);text-align:left;border-radius:6px;padding:10px;position:absolute;z-index:10;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;border:1px solid var(--tooltip-border-color)}.risk-score-container:hover{visibility:visible;opacity:1}.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:rgb(0 0 0 / 50%)}.modal-content{background-color:var(--section-bg-color);margin:10% auto;padding:20px;border:1px solid #888;width:80%;max-width:600px;border-radius:8px;box-shadow:0 5px 15px rgb(0 0 0 / 30%);overflow:visible}.modal-content h3{margin-top:0;color:var(--primary-hover-color)}.modal-content p{margin:10px 0}.close-button{color:#aaa;float:right;font-size:1.75rem;font-weight:700;cursor:pointer}.close-button:focus,.close-button:hover{color:var(--text-color)}.dependency-tag{background-color:var(--primary-color);color:#fff;padding:5px 10px;border-radius:15px}.top-right-icons{position:fixed;top:19px;right:21px;z-index:1002;display:flex;gap:10px}.icon-button{font-size:1.25rem;width:50px;height:50px;border-radius:50%}.icon-button.admin-button{background-color:#6f42c1;border:2px solid #fff}.dashboard-container{display:flex;gap:20px;align-items:flex-start;margin-top:20px}#market-section{flex:2;min-width:0}#portfolio-section{flex:0 1 350px}#right-column-container{flex:0 1 350px;display:flex;flex-direction:column;gap:20px;align-self:stretch;padding:4px}#market-and-news-container{flex:2;min-width:0;display:flex;flex-direction:column;gap:20px}#concept-cloud-container{height:200px;width:100%;margin-top:15px;border-radius:4px}.key-movers-container{display:flex;flex-wrap:wrap;gap:8px;margin-top:5px}.key-mover-tag{background-color:#555;padding:5px 10px;border-radius:15px}.portfolio-header{display:flex;justify-content:space-between;align-items:center}.idea-controls{display:flex;align-items:center;gap:8px;margin-top:10px}.search-container{position:relative;flex-grow:1;display:flex;align-items:center}.idea-controls #search-ideas{margin-bottom:0;padding-right:35px}.portfolio-header h2{margin:6px 10px 4px 20px}.clear-button{background:0 0;border:none;color:#aaa;font-size:1.5em;cursor:pointer;padding:0 5px;position:absolute;right:5px;top:50%;transform:translateY(-50%)}#reset-idea-filter-btn{display:none;margin-left:auto;margin-right:10px;background-color:#6c757d}.sort-filter-container,.stage-filter-container{position:relative;display:inline-block}.sort-filter-container{margin-left:4px;margin-right:4px}.filter-button{background-color:var(--item-bg-color);border:1px solid var(--input-border-color);color:var(--text-color);padding:5px 10px;border-radius:4px;cursor:pointer;display:flex;align-items:center;gap:5px}.filter-icon{font-size:1.1em}.filter-button:hover{background-color:var(--item-hover-bg-color)}.filter-arrow{font-size:.7em}.filter-popover{display:none;position:absolute;top:100%;left:0;background-color:var(--section-bg-color);border:1px solid var(--input-border-color);border-radius:6px;padding:8px;z-index:1010;box-shadow:0 4px 12px rgb(0 0 0 / 20%);flex-direction:column;gap:8px;width:200px}.filter-popover.visible{display:flex}.filter-pill{border:1px solid var(--input-border-color);padding:4px 10px;border-radius:15px;font-size:.8em;cursor:pointer;color:var(--text-color);background-color:var(--item-bg-color)}.filter-pill.active{background-color:var(--primary-color)!important;border-color:var(--primary-color)!important;color:#fff;font-weight:700}.suggestion-confidence{font-size:.8rem;color:var(--primary-color);font-weight:700;margin-left:8px;white-space:nowrap}.dismiss-suggestion-btn{background:0 0;border:none;color:#aaa;cursor:pointer;font-size:1.2rem;padding:0 5px;margin-left:10px;line-height:1}.dismiss-suggestion-btn:hover{color:#fff}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;align-items:center}.settings-grid label{margin-bottom:0}.settings-grid input{width:80%}.settings-grid .grid-item{display:contents}.delete-source-btn{background:0 0;border:none;color:#dc3545;cursor:pointer;font-size:1.2rem;padding:0 5px;margin-left:-15px}.delete-source-btn:hover{color:#c82333;font-weight:700}#modal-notes-view{background-color:var(--item-bg-color);padding:10px;border-radius:4px;min-height:80px;border:1px solid var(--input-border-color);white-space:pre-wrap}.kanban-board{display:flex;gap:15px;overflow-x:auto;padding-bottom:15px;min-height:400px}.kanban-column{flex:1;min-width:280px;background-color:var(--item-bg-color);border-radius:8px;padding:10px;display:flex;flex-direction:column}.kanban-column h4{margin-bottom:10px;padding-bottom:10px;border-bottom:2px solid var(--input-border-color);text-align:center}.kanban-cards{flex-grow:1;min-height:100px;border-radius:4px;transition:background-color .2s}.kanban-cards.drag-over{background-color:var(--primary-hover-color)}.kanban-card{background-color:var(--section-bg-color);padding:10px;border-radius:4px;margin-bottom:10px;cursor:grab;border-left:5px solid var(--primary-color);box-shadow:0 1px 3px rgb(0 0 0 / 20%)}.kanban-card.dragging{opacity:.5}.kanban-card:active{cursor:grabbing}.kanban-card-title{font-weight:700;margin-bottom:8px}.kanban-card-metrics{display:flex;justify-content:space-between;font-size:.85rem;color:#ccc}@keyframes fade-in{from{opacity:0}to{opacity:1}}.tab-buttons{display:flex;border-bottom:2px solid var(--input-border-color);margin-bottom:15px}.tab-button{background:0 0;border:none;padding:10px 15px;cursor:pointer;color:var(--tab-inactive-color);border-bottom:3px solid transparent;margin-bottom:-2px}.tab-button.active{color:var(--primary-color);border-bottom-color:var(--primary-color);font-weight:700}.tab-content{display:none;animation:fade-in .4s ease-in-out}.tab-content.active{display:block}