body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Apple SD Gothic Neo,Malgun Gothic,Roboto,sans-serif;margin:0}.auth-page{background:#f9fafb;display:flex;min-height:100vh;align-items:center;justify-content:center}.box{background:#fff;padding:32px;border-radius:12px;box-shadow:0 1px 4px #0000001a;width:320px}.box h1{font-size:20px;margin:0 0 20px}.box input{width:100%;padding:10px;margin-bottom:12px;border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box}.box button{width:100%;padding:10px;background:#1d4ed8;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px}.box button:hover{background:#1e40af}.msg{margin-top:12px;font-size:13px;color:#dc2626}.msg.success{color:#16a34a}.link{margin-top:16px;font-size:13px;text-align:center}.link a{color:#1d4ed8;text-decoration:none}.app-shell{display:flex;height:100vh}.sidebar{width:200px;background:#1e293b;color:#e2e8f0;flex-shrink:0;padding:16px 12px;display:flex;flex-direction:column;box-shadow:2px 0 8px #00000026;user-select:none;-webkit-user-select:none;overflow-y:auto}.sidebar-title{display:flex;align-items:center;justify-content:center;gap:8px;transform:translate(-10px);font-size:20px;font-weight:700;color:#fff;text-align:center;padding:0 8px 16px;margin:0 -12px 8px;border-bottom:1px solid #334155}.menu-category-header{width:100%;background:none;border:none;color:#cbd5e1;text-align:left;padding:18px 12px;border-radius:14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background-color .2s ease,color .2s ease}.menu-category-header:hover{background-color:#334155;color:#fff}.menu-category-header:active{transform:scale(.98)}.category-label{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1}.category-icon{flex-shrink:0;opacity:.9}.category-text{font-size:13px;font-weight:600;letter-spacing:.2px}.chevron{flex-shrink:0;transition:transform .3s cubic-bezier(.22,1,.36,1)}.chevron.open{transform:rotate(180deg)}.menu-items{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .6s cubic-bezier(.22,1,.36,1),opacity .45s ease}.menu-items-inner{overflow:hidden;min-height:0}.menu-items.open{grid-template-rows:1fr;opacity:1;transition:grid-template-rows .6s cubic-bezier(.22,1,.36,1),opacity .5s ease .05s}.menu-item{display:flex;align-items:center;gap:10px;margin:2px 0 2px 22px;padding:8px 14px;border-radius:8px;font-size:13px;color:#94a3b8;text-decoration:none;transition:background-color .2s ease,color .2s ease,transform .15s ease}.item-icon{flex-shrink:0;opacity:.85}.menu-item:hover{background-color:#334155;color:#fff}.menu-item:active{transform:scale(.97)}.menu-item.active{background-color:#6366f1;color:#fff}.logout-button{margin:auto 8px 8px;padding:9px 0;background:none;border:1px solid #475569;border-radius:8px;color:#cbd5e1;font-size:12px;font-weight:600;cursor:pointer;transition:background-color .2s ease,color .2s ease,transform .15s ease}.logout-button:hover{background-color:#dc2626;border-color:#dc2626;color:#fff}.logout-button:active{transform:scale(.96)}.content{flex:1;padding:32px;background:#f9fafb;overflow-y:auto}.placeholder h2{margin-top:0;color:#1e293b}.placeholder p{color:#6b7280;font-size:14px}.loading{display:flex;align-items:center;justify-content:center;min-height:100vh;color:#64748b}@media (max-width: 600px){.app-shell{flex-direction:column;height:auto;min-height:100vh}.sidebar{width:100%;flex-shrink:0;box-shadow:0 2px 8px #00000026;overflow-y:visible}.content{overflow-y:visible;padding:20px 16px}}.watchlist-page,.assets-page{max-width:880px;margin:0 auto}.assets-privacy-note{font-size:12px;color:#94a3b8;margin:0 0 8px}.assets-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.fx-rate-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#475569;background:#f1f5f9;border-radius:999px;padding:6px 14px}.fx-rate-label:before{content:"";width:6px;height:6px;border-radius:50%;background:#16a34a}.currency-toggle{display:flex;gap:6px}.currency-toggle button{padding:6px 14px;font-size:12px;font-weight:700;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:8px;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.currency-toggle button:disabled{opacity:.4;cursor:not-allowed}.currency-toggle button.active{background:#6366f1;border-color:#6366f1;color:#fff}.assets-summary{display:flex;gap:16px;margin-bottom:24px}.assets-summary-card{flex:1;background:#fff;border-radius:16px;padding:24px;text-align:center;box-shadow:0 1px 4px #00000014;display:flex;flex-direction:column;gap:10px}.assets-summary-label{font-size:14px;font-weight:700;color:#475569}.assets-summary-value{font-size:22px;font-weight:700;color:#1e293b}.assets-summary-value.up{color:#16a34a}.assets-summary-value.down{color:#dc2626}.assets-summary-card-highlight .assets-summary-label{color:#6366f1}.assets-summary-card-highlight .assets-summary-value{font-size:26px}.assets-section{background:#fff;border-radius:16px;padding:20px 24px;box-shadow:0 1px 4px #00000014;margin-bottom:24px}.assets-section h3{margin:0 0 16px;font-size:14px;font-weight:700;color:#1e293b}.weight-bars{display:flex;flex-direction:column;gap:10px}.weight-bar-row{display:flex;align-items:center;gap:12px}.weight-bar-label{width:56px;flex-shrink:0;font-size:13px;font-weight:700;color:#1e293b}.weight-bar-label.sector-label{width:160px;font-size:12px;font-weight:600;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.weight-bar-track{flex:1;height:16px;background:#f1f5f9;border-radius:8px;overflow:hidden}.weight-bar-fill{height:100%;border-radius:8px;transition:width .3s ease}.weight-bar-pct{width:50px;flex-shrink:0;text-align:right;font-size:13px;font-weight:600;color:#475569}.assets-table{background:#fff;border-radius:16px;box-shadow:0 1px 4px #00000014;overflow:hidden}.assets-table-header,.assets-table-row{display:grid;grid-template-columns:1fr .8fr 1fr 1.2fr 1.2fr 1.6fr;gap:8px;padding:12px 18px;align-items:center}.assets-table-header{font-size:12px;font-weight:700;color:#94a3b8;border-bottom:1px solid #f1f5f9}.assets-table-row{font-size:13px;color:#475569;border-bottom:1px solid #f3f4f6}.assets-table-row:last-child{border-bottom:none}.assets-table-symbol{font-weight:700;color:#1e293b}.assets-table-row .up{color:#16a34a;font-weight:600}.assets-table-row .down{color:#dc2626;font-weight:600}.holdings-page{display:flex;gap:24px;align-items:flex-start}.holdings-sidebar{width:320px;flex-shrink:0}.holdings-sidebar .search-box{max-width:none;margin:0 0 16px}.add-holding-form{background:#fff;border-radius:12px;box-shadow:0 1px 4px #00000014;padding:14px;margin-bottom:16px;display:flex;flex-direction:column;gap:8px}.add-holding-symbol{font-weight:700;font-size:14px;color:#1e293b}.add-holding-form input{padding:9px 12px;font-size:13px;border:1px solid #d1d5db;border-radius:8px;box-sizing:border-box}.add-holding-actions{display:flex;gap:8px}.add-holding-actions button{flex:1;padding:8px 0;border-radius:8px;border:none;font-size:13px;font-weight:600;cursor:pointer}.add-holding-actions button:first-child{background:#6366f1;color:#fff}.add-holding-actions button:last-child{background:#f1f5f9;color:#475569}.holdings-list{display:flex;flex-direction:column;gap:8px}.holding-row{background:#fff;border-radius:12px;box-shadow:0 1px 4px #00000014;padding:12px 14px;cursor:pointer;border:2px solid transparent;overflow:hidden;transition:border-color .15s ease,background-color .15s ease;animation:dropIn .3s cubic-bezier(.22,1,.36,1)}.holding-row:hover{background-color:#f9fafb}.holding-row.removing{animation:holdingRemove .25s cubic-bezier(.22,1,.36,1) forwards}@keyframes holdingRemove{to{opacity:0;transform:scale(.95) translate(10px);max-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-color:transparent}}.holding-row.active{border-color:#6366f1}.holding-row-top{display:flex;justify-content:space-between;align-items:center}.holding-row-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:6px;font-size:12px;color:#6b7280}.holdings-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:16px}.info-panel{background:#fff;border-radius:16px;box-shadow:0 1px 4px #00000014;padding:18px 20px;display:flex;flex-direction:column;gap:14px}.info-tabs{display:flex;gap:6px;border-bottom:1px solid #f1f5f9;padding-bottom:10px}.info-tabs button{padding:6px 12px;font-size:12px;font-weight:600;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:8px;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.info-tabs button.active{background:#6366f1;border-color:#6366f1;color:#fff}.info-tab-content{height:280px;overflow-y:auto;padding-top:16px}.info-tab-content p{margin:0;font-size:13px;color:#475569}.earnings-tab{display:flex;flex-direction:column;gap:10px}.next-earnings-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-size:13px;font-weight:600;color:#475569;background:#f1f5f9;border-radius:999px;padding:6px 14px}.financials-period-toggle{display:flex;gap:6px}.financials-period-toggle button{padding:4px 10px;font-size:11px;font-weight:600;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:6px;cursor:pointer}.financials-period-toggle button.active{background:#6366f1;border-color:#6366f1;color:#fff}.financials-chart{display:flex;gap:10px;height:170px;padding-top:8px;margin-top:16px}.financials-bar-group{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;min-width:0}.financials-bar-value{font-size:10px;color:#475569;font-weight:600;white-space:nowrap}.financials-bar-track{flex:1;width:100%;display:flex;align-items:flex-end}.financials-bar{width:100%;background:#6366f1;border-radius:4px 4px 0 0;min-height:2px}.financials-bar-label{font-size:10px;color:#9ca3af;white-space:nowrap}.financials-bar-eps{font-size:10px;color:#16a34a;font-weight:600;white-space:nowrap}.analyst-tab{display:flex;flex-direction:column;gap:10px}.analyst-summary{font-weight:700}.analyst-bars{display:flex;flex-direction:column;gap:12px;margin-top:14px}.analyst-bar-row{display:flex;align-items:center;gap:12px}.analyst-bar-label{width:64px;flex-shrink:0;font-size:13px;color:#475569}.analyst-bar-track{flex:1;height:18px;background:#f1f5f9;border-radius:9px;overflow:hidden}.analyst-bar-fill{height:100%;border-radius:7px;transition:width .3s ease}.analyst-bar-count{width:48px;flex-shrink:0;text-align:right;font-size:13px;font-weight:600;color:#1e293b}.news-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.news-list li{display:flex;flex-direction:column}.news-list a{font-size:13px;color:#1e293b;text-decoration:none}.news-list a:hover{text-decoration:underline}.news-meta{font-size:11px;color:#9ca3af}.news-page{max-width:880px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.news-section{background:#fff;border-radius:16px;box-shadow:0 1px 4px #00000014;padding:20px 24px}.news-section h3{margin:0 0 16px}.news-symbol-block{margin-bottom:20px}.news-symbol-block:last-child{margin-bottom:0}.news-symbol-block h4{margin:0 0 8px;font-size:14px;color:#1e293b}.economic-calendar-list{display:flex;flex-direction:column;gap:2px}.economic-calendar-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f3f4f6;font-size:13px}.economic-calendar-row:last-child{border-bottom:none}.economic-calendar-main{display:flex;flex-direction:column;gap:2px;flex:1}.economic-calendar-name{color:#1e293b;font-weight:600}.economic-calendar-previous{color:#9ca3af;font-size:11px}.economic-calendar-date{color:#475569}.economic-calendar-time{color:#9ca3af;font-size:12px}.chart-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.range-buttons,.indicator-buttons{display:flex;flex-wrap:wrap;gap:6px}.range-buttons button,.indicator-buttons button{padding:6px 12px;font-size:12px;font-weight:600;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:8px;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.range-buttons button.active,.indicator-buttons button.active{background:#6366f1;border-color:#6366f1;color:#fff}.indicator-buttons button:disabled{cursor:not-allowed;opacity:.5}.holdings-chart-panel{position:relative;background:#fff;border-radius:16px;box-shadow:0 1px 4px #00000014;padding:16px;box-sizing:border-box}.chart-container{width:100%}.chart-empty-hint{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.chart-resize-handle{position:absolute;bottom:4px;right:4px;width:18px;height:18px;cursor:nwse-resize;opacity:.4;transition:opacity .2s ease;background-image:repeating-linear-gradient(135deg,transparent 0px,transparent 2px,#94a3b8 2px,#94a3b8 3px);border-radius:0 0 8px}.chart-resize-handle:hover{opacity:.9}.search-box{position:relative;max-width:480px;margin:0 auto 28px}.search-box input{width:100%;padding:14px 16px;font-size:14px;border:1.5px solid transparent;border-radius:12px;box-sizing:border-box;background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#6366f1,#06b6d4);background-origin:border-box;background-clip:padding-box,border-box;transition:box-shadow .2s ease}.search-box input:focus{outline:none;box-shadow:0 0 0 3px #6366f126}.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;border:1.5px solid transparent;border-radius:12px;background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#6366f1,#06b6d4);background-origin:border-box;background-clip:padding-box,border-box;box-shadow:0 8px 24px #0000001f;overflow:hidden;z-index:10;max-height:320px;overflow-y:auto}.search-result-row{display:flex;align-items:center;gap:10px;padding:10px 14px;transition:background-color .15s ease}.search-result-row:hover{background-color:#f3f4f6}.result-symbol{font-weight:700;font-size:13px;color:#1e293b;width:64px;flex-shrink:0}.result-name{flex:1;font-size:13px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bookmark-btn{background:none;border:none;cursor:pointer;color:#9ca3af;display:flex;align-items:center;padding:4px;border-radius:6px;transition:color .2s ease,transform .15s ease}.bookmark-btn:hover,.bookmark-btn.active{color:#1d4ed8}.bookmark-btn:active{transform:scale(.85)}.holding-add-btn{background:none;border:none;cursor:pointer;color:#9ca3af;display:flex;align-items:center;padding:4px;border-radius:6px;transition:color .2s ease,transform .15s ease}.holding-add-btn:hover{color:#6366f1}.holding-add-btn:active{transform:scale(.85)}.section{margin-bottom:32px}.section h3{font-size:32px;font-weight:700;color:#1e293b;text-align:center;margin:0 0 16px}.index-cards,.futures-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px}.index-card{position:relative;flex:1;background:#fff;border-radius:20px;padding:32px;text-align:center;box-shadow:0 1px 4px #00000014;animation:dropIn .5s cubic-bezier(.22,1,.36,1)}.index-card-remove{position:absolute;top:8px;right:8px}.futures-cards .index-card{cursor:grab}.futures-cards .index-card:active{cursor:grabbing}.index-label{font-size:15px;font-weight:700;color:#475569;margin-bottom:10px}.index-price{font-size:28px;font-weight:700;color:#1e293b}.change-badge{display:inline-block;margin-top:8px;font-size:14px;font-weight:600}.change-badge.up{color:#16a34a}.change-badge.down{color:#dc2626}.change-badge.neutral{color:#9ca3af}.empty-hint{color:#9ca3af;font-size:13px}.watchlist-list{background:#fff;border-radius:12px;box-shadow:0 1px 4px #00000014;overflow:hidden}@keyframes dropIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.watchlist-row{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid #f3f4f6;overflow:hidden;transition:background-color .15s ease;animation:dropIn .45s cubic-bezier(.22,1,.36,1) .2s backwards}.watchlist-row.removing{animation:holdingRemove .25s cubic-bezier(.22,1,.36,1) forwards}.watchlist-row-main .result-symbol{font-size:38px;width:auto}.watchlist-row-main .result-name{font-size:16px}.sparkline{width:90px;height:32px;flex-shrink:0}.index-card .sparkline{width:100%;margin-top:14px}.sparkline.up polyline{stroke:#16a34a}.sparkline.down polyline{stroke:#dc2626}.watchlist-row:last-child{border-bottom:none}.watchlist-row:hover{background-color:#f9fafb}.drag-handle{color:#cbd5e1;cursor:grab;flex-shrink:0}.watchlist-row:active .drag-handle{cursor:grabbing}.watchlist-row-main{flex:1;display:flex;align-items:center;gap:10px;min-width:0}.watchlist-row-right{display:flex;align-items:center;gap:12px}.holding-row-actions{display:flex;align-items:center;gap:2px}.edit-btn{display:flex;align-items:center;background:none;border:none;cursor:pointer;color:#9ca3af;padding:4px 6px;border-radius:6px;transition:background-color .2s ease,color .2s ease}.edit-btn:hover{background-color:#e0e7ff;color:#4f46e5}.remove-btn{background:none;border:none;cursor:pointer;color:#9ca3af;font-size:18px;line-height:1;padding:2px 6px;border-radius:6px;transition:background-color .2s ease,color .2s ease}.remove-btn:hover{background-color:#fee2e2;color:#dc2626}.finviz-page{max-width:1000px}.finviz-image{width:100%;border-radius:12px;box-shadow:0 1px 4px #00000014}@media (max-width: 1024px){.holdings-page{flex-direction:column}.holdings-sidebar{width:100%}.holdings-list{flex-direction:row;flex-wrap:wrap}.holdings-list .holding-row{flex:1 1 220px}}@media (max-width: 600px){.assets-table-header,.assets-table-row{font-size:12px}.watchlist-row-main .result-symbol{font-size:22px}.watchlist-row .sparkline{display:none}.watchlist-row{flex-wrap:wrap}.watchlist-row-right{margin-left:auto}}.account-page{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:24px}.account-section{background:#fff;border-radius:16px;box-shadow:0 1px 4px #00000014;padding:20px 24px}.account-section h3{margin:0 0 12px}.account-email{font-size:14px;color:#475569;margin:0}.account-hint{font-size:12px;color:#94a3b8;margin:0 0 12px}.account-intro{font-size:13px;color:#475569;line-height:1.5;margin:0 0 10px}.account-form{display:flex;flex-direction:column;gap:8px;max-width:320px}.account-form input{padding:9px 12px;font-size:13px;border:1px solid #d1d5db;border-radius:8px;box-sizing:border-box}.account-form button,.account-section>button{align-self:flex-start;padding:8px 16px;border-radius:8px;border:none;background:#6366f1;color:#fff;font-size:13px;font-weight:600;cursor:pointer;margin-top:4px}.account-msg{font-size:12px;color:#dc2626;margin:8px 0 0}.account-msg.success{color:#16a34a}.account-source-group{margin-bottom:14px}.account-source-group h4{font-size:13px;color:#475569;margin:0 0 6px}.account-source-checkbox{display:flex;align-items:center;gap:8px;font-size:13px;color:#1e293b;padding:4px 0;cursor:pointer}.account-source-checkbox.disabled{color:#94a3b8;cursor:not-allowed}
