:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.6;font-weight:400;color-scheme:light;color:#1a1a1a;background-color:#f5f7fa;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background-color:#f5f7fa}#root{min-height:100vh}.stock-agent{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:0}.container{max-width:1600px;margin:0 auto;padding:0;background:transparent;box-shadow:none}.header{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:1.5rem 2rem;box-shadow:0 2px 10px #0000001a;position:sticky;top:0;z-index:100}.title{margin:0;font-size:1.75rem;font-weight:700;color:#1a1a1a;text-align:center;letter-spacing:-.02em}.error-message{margin:1rem 1.5rem;padding:1rem;background:#fee2e2;border:1px solid #ef4444;border-radius:8px;color:#dc2626;font-size:.9375rem;text-align:center}.loading-message{padding:2rem;text-align:center;color:#6b7280;font-size:.9375rem}.main-layout{display:flex;flex-direction:column;gap:1rem;padding:1rem;min-height:calc(100vh - 80px)}@media(min-width:1025px){.main-layout{display:grid;grid-template-columns:400px 1fr;gap:1.5rem;padding:1.5rem}}.sidebar{display:flex;flex-direction:column;gap:1rem;max-height:none;overflow:visible}@media(min-width:1025px){.sidebar{max-height:calc(100vh - 140px);overflow:hidden}}.selected-stock-summary{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:0 4px 6px #00000012;margin-bottom:1rem}.summary-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.summary-header h3{margin:0;font-size:1.125rem;font-weight:700;color:#1a1a1a;letter-spacing:-.01em}.stock-code-badge{padding:.25rem .625rem;background:#f3f4f6;border-radius:6px;font-size:.75rem;font-weight:600;color:#6b7280;font-family:Courier New,monospace}.summary-price{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.summary-current-price{font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.summary-current-price.up{color:#ef4444}.summary-current-price.down{color:#3b82f6}.summary-change{font-size:.875rem;font-weight:600;padding:.25rem .5rem;border-radius:4px;display:inline-block;width:fit-content}.summary-change.up{color:#ef4444;background:#fee2e2}.summary-change.down{color:#3b82f6;background:#dbeafe}.summary-stats{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding-top:1rem;border-top:1px solid #e5e7eb}.stat-item{display:flex;flex-direction:column;gap:.25rem}.stat-label{font-size:.75rem;color:#6b7280;font-weight:500}.stat-value{font-size:.9375rem;font-weight:600;color:#1a1a1a}.sidebar-tabs{display:flex;gap:.5rem;background:#fff;border-radius:12px;padding:.5rem;box-shadow:0 4px 6px #00000012;margin-bottom:1rem}.tab-button{flex:1;padding:.625rem .75rem;border:none;background:transparent;border-radius:8px;font-size:.875rem;font-weight:600;color:#6b7280;cursor:pointer;transition:all .2s}.tab-button:hover{background:#f9fafb;color:#374151}.tab-button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.sidebar-content{flex:1;overflow-y:auto;display:flex;flex-direction:column}.stock-list-section{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 6px #00000012;flex:1;min-height:0}.empty-state{text-align:center;padding:2rem 1rem;color:#9ca3af;font-size:.9375rem}.main-content{display:flex;flex-direction:column;gap:1.5rem}.search-section{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 6px #00000012;display:flex;flex-direction:column;flex:1;min-height:0}.search-box{display:flex;gap:.75rem;margin-bottom:1rem}.search-input{flex:1;padding:.875rem 1rem;border:2px solid #e5e7eb;border-radius:8px;font-size:.9375rem;transition:all .2s;background:#f9fafb}.search-input:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.search-button{padding:.875rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:.9375rem;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap}.search-button:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.search-button:active{transform:translateY(0)}.chart-header{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #00000012;display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;flex-wrap:wrap}.chart-title{flex:1;min-width:200px}.chart-title h2{margin:0 0 .75rem;color:#1a1a1a;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.period-selector{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#f9fafb;border-radius:8px;flex-shrink:0}.period-selector label{font-weight:600;color:#374151;font-size:.875rem}.period-selector select{flex:1;padding:.625rem .75rem;border:1px solid #e5e7eb;border-radius:6px;font-size:.875rem;background:#fff;cursor:pointer;transition:border-color .2s}.period-selector select:focus{outline:none;border-color:#667eea}.search-results{flex:1;overflow-y:auto;margin-top:1rem}.stock-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.625rem;max-height:100%;overflow-y:auto}.stock-item{display:flex;align-items:center;gap:1rem;padding:.875rem;background:#f9fafb;border-radius:8px;cursor:pointer;transition:all .2s;border:2px solid transparent}.stock-item:hover{background:#fff;border-color:#667eea;transform:translate(4px);box-shadow:0 2px 8px #667eea26}.stock-item.selected{background:linear-gradient(135deg,#667eea1a,#764ba21a);border-color:#667eea;border-width:2px}.stock-code{font-weight:600;color:#6b7280;font-size:.875rem;min-width:70px;font-family:Courier New,monospace}.stock-name{flex:1;font-size:1rem;font-weight:600;color:#1a1a1a}.stock-price{font-size:.9375rem;font-weight:600;text-align:right;min-width:120px}.stock-price.up{color:#ef4444}.stock-price.down{color:#3b82f6}.stock-detail-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #00000012}.stock-info{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid #f3f4f6}.stock-info h2{margin:0 0 .75rem;color:#1a1a1a;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.stock-price-info{display:flex;align-items:baseline;gap:1rem;flex-wrap:wrap}.current-price{font-size:2.25rem;font-weight:700;letter-spacing:-.02em}.current-price.up{color:#ef4444}.current-price.down{color:#3b82f6}.price-change{font-size:1.125rem;font-weight:600;padding:.375rem .75rem;border-radius:6px;background:#f3f4f6}.price-change.up{color:#ef4444;background:#fee2e2}.price-change.down{color:#3b82f6;background:#dbeafe}.chart-container{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #00000012;margin-bottom:1.5rem;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.chart-controls{margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.chart-period-controls{flex:1;min-width:200px}.period-selector-inline{display:flex;align-items:center;gap:.75rem}.period-selector-inline label{font-weight:600;color:#374151;font-size:.875rem;white-space:nowrap}.period-selector-inline select{padding:.5rem .75rem;border:1px solid #e5e7eb;border-radius:6px;font-size:.875rem;background:#fff;cursor:pointer;transition:border-color .2s}.period-selector-inline select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.chart-zoom-controls{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.zoom-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#374151;cursor:pointer;transition:all .2s}.zoom-button:hover:not(:disabled){background:#f9fafb;border-color:#667eea;color:#667eea}.zoom-button:active:not(:disabled){transform:scale(.95)}.zoom-button:disabled{opacity:.4;cursor:not-allowed}.zoom-level{min-width:50px;text-align:center;font-size:.875rem;font-weight:600;color:#374151}.zoom-reset-button{padding:.5rem .75rem;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#374151;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;margin-left:.5rem}.zoom-reset-button:hover{background:#f9fafb;border-color:#667eea;color:#667eea}.zoom-reset-button:active{transform:scale(.95)}.chart-wrapper{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#cbd5e1 #f1f1f1}.chart-wrapper::-webkit-scrollbar{height:8px}.chart-wrapper::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.chart-wrapper::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.chart-wrapper::-webkit-scrollbar-thumb:hover{background:#94a3b8}.chart-content{min-width:100%;transition:width .3s ease}.analysis-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #00000012}.analysis-section h3{margin:0 0 1.5rem;color:#1a1a1a;font-size:1.25rem;font-weight:700;letter-spacing:-.01em}.indicators-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;margin-bottom:1.5rem}.indicator-category{background:#f9fafb;padding:1.25rem;border-radius:10px;border:1px solid #e5e7eb;transition:all .2s}.indicator-category:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.indicator-category h4{margin:0 0 1rem;color:#667eea;font-size:1rem;font-weight:600;padding-bottom:.75rem;border-bottom:2px solid #667eea}.indicators-list{display:flex;flex-direction:column;gap:.625rem}.indicator-item{display:flex;align-items:center;gap:.75rem;cursor:pointer;padding:.625rem;border-radius:6px;transition:background .2s;font-size:.9375rem}.indicator-item:hover{background:#e5e7eb}.indicator-item input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.analysis-button{width:100%;padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;margin-top:1rem}.analysis-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.analysis-button:active:not(:disabled){transform:translateY(0)}.analysis-button:disabled{background:#d1d5db;cursor:not-allowed;transform:none}.analysis-result{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #00000012;border-left:4px solid #667eea;margin-bottom:1.5rem;scroll-margin-top:20px}.analysis-result h3{margin:0 0 1.5rem;color:#1a1a1a;font-size:1.25rem;font-weight:700;letter-spacing:-.01em}.report-section{margin-bottom:1.75rem}.report-section:last-of-type{margin-bottom:0}.report-section h4{color:#667eea;margin:0 0 .75rem;font-size:1.0625rem;font-weight:600}.report-section p{color:#4b5563;line-height:1.7;margin:0;font-size:.9375rem}.selected-indicators{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.selected-indicators h4{margin:0 0 1rem;color:#374151;font-size:1rem;font-weight:600}.indicator-tags{display:flex;flex-wrap:wrap;gap:.625rem}.indicator-tag{padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-size:.875rem;font-weight:500}@media(min-width:769px)and (max-width:1024px){.main-layout{padding:1.25rem;gap:1.25rem}.chart-header{flex-direction:column;align-items:stretch}.period-selector{width:100%;justify-content:space-between}}@media(max-width:768px){.header{padding:1rem 1.25rem}.title{font-size:1.5rem}.main-layout{padding:.75rem;gap:.75rem}.sidebar,.main-content{width:100%;max-width:100%}.search-section,.stock-detail-card,.chart-container,.chart-header,.analysis-section,.analysis-result,.selected-stock-summary,.stock-list-section{padding:1.25rem}.chart-container{padding:1rem;margin-bottom:1rem}.chart-controls{flex-direction:column;align-items:stretch;gap:1rem}.chart-period-controls{width:100%}.chart-zoom-controls{width:100%;justify-content:space-between}.chart-wrapper{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.period-selector-inline{flex-wrap:wrap}.period-selector-inline select{flex:1;min-width:100px}.selected-stock-summary{margin-bottom:1rem}.sidebar-tabs{padding:.375rem}.tab-button{padding:.5rem .625rem;font-size:.8125rem}.search-box{flex-direction:column}.search-button{width:100%}.stock-item{flex-direction:column;align-items:flex-start;gap:.5rem}.stock-price{text-align:left;width:100%}.stock-info h2{font-size:1.25rem}.current-price{font-size:1.75rem}.price-change{font-size:1rem}.indicators-grid{grid-template-columns:1fr}}@media(max-width:480px){.header{padding:.875rem 1rem}.title{font-size:1.25rem}.main-layout{padding:.75rem}.search-section,.stock-detail-card,.chart-container,.analysis-section,.analysis-result{padding:1rem;border-radius:10px}.stock-info h2{font-size:1.125rem}.current-price{font-size:1.5rem}.analysis-section h3,.analysis-result h3{font-size:1.125rem}}.search-results::-webkit-scrollbar,.stock-list::-webkit-scrollbar,.sidebar-content::-webkit-scrollbar{width:6px}.search-results::-webkit-scrollbar-track,.stock-list::-webkit-scrollbar-track,.sidebar-content::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.search-results::-webkit-scrollbar-thumb,.stock-list::-webkit-scrollbar-thumb,.sidebar-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.search-results::-webkit-scrollbar-thumb:hover,.stock-list::-webkit-scrollbar-thumb:hover,.sidebar-content::-webkit-scrollbar-thumb:hover{background:#94a3b8}
