body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.login-container{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}.login-box{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff;border:1px solid #fff3;border-radius:16px;box-shadow:0 20px 40px #0000001a;max-width:420px;padding:2.5rem;width:100%}.login-header{margin-bottom:2rem;text-align:center}.logo{color:#667eea;display:flex;justify-content:center;margin-bottom:1rem}.login-header h2{color:#2d3748;font-size:1.75rem;font-weight:600;margin:0 0 .5rem}.login-header p{color:#718096;font-size:.95rem;margin:0}.login-form{margin-top:1.5rem}.input-field{margin-bottom:1.5rem}.input-field label{color:#2d3748;display:block;font-size:.9rem;font-weight:500;margin-bottom:.5rem}.input-field input{background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;padding:.875rem 1rem;transition:all .2s ease;width:100%}.input-field input:focus{background:#fff;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.password-input-container{align-items:center;display:flex;position:relative}.password-input{padding-right:3rem!important}.password-toggle{align-items:center;background:none;border:none;border-radius:4px;color:#718096;cursor:pointer;display:flex;justify-content:center;padding:.25rem;position:absolute;right:.75rem;transition:all .2s ease}.password-toggle:focus,.password-toggle:hover{background:#667eea1a;color:#667eea}.password-toggle:focus{outline:none}.login-button{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:1rem;font-weight:600;margin-top:.5rem;overflow:hidden;padding:.875rem 1rem;position:relative;transition:all .2s ease;width:100%}.login-button:hover:not(:disabled){box-shadow:0 10px 20px #667eea4d;transform:translateY(-1px)}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{background:#cbd5e0;box-shadow:none;cursor:not-allowed;transform:none}.error-message{color:#e53e3e;font-size:.9rem;padding:.75rem 1rem;text-align:center}.login-button:disabled:after{animation:spin 1s linear infinite;border:2px solid #0000;border-radius:50%;border-top-color:#fff;content:"";height:16px;margin:auto;position:absolute;width:16px}@media (max-width:480px){.login-container{padding:10px}.login-box{padding:2rem 1.5rem}.login-header h2{font-size:1.5rem}}.input-field input:focus,.password-toggle:focus{outline:2px solid #667eea;outline-offset:2px}.login-box{animation:slideUp .5s ease-out}.dashboard-container{background:linear-gradient(135deg,#f5f7fa,#c3cfe2);margin:0 auto;max-width:1200px;min-height:100vh;padding:20px}.dashboard-header{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff;border-bottom:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 6px #0000000d;display:flex;justify-content:space-between;margin-bottom:30px;padding:1.5rem 2rem 20px}.dashboard-header h1{color:#2d3748;font-size:1.75rem;font-weight:600;margin:0}.logout-button{align-items:center;background:linear-gradient(135deg,#e53e3e,#c53030);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:.95rem;font-weight:500;gap:.5rem;padding:.75rem 1.5rem;transition:all .2s ease}.logout-button:hover{box-shadow:0 4px 12px #e53e3e4d;transform:translateY(-1px)}.logout-button:active{transform:translateY(0)}.dashboard-content{padding:2rem}.dashboard-tabs{background:#fff;border-radius:12px;box-shadow:0 2px 4px #0000000d;display:flex;gap:.5rem;margin-bottom:2rem;padding:.5rem}.tab-button{align-items:center;background:#0000;border:none;border-radius:8px;color:#718096;cursor:pointer;display:flex;flex:1 1;font-size:.95rem;font-weight:500;gap:.5rem;justify-content:center;padding:1rem 1.5rem;transition:all .2s ease}.tab-button:hover{background:#f7fafc;color:#4a5568}.tab-button.active{background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 2px 8px #667eea4d;color:#fff}.tab-icon{font-size:1.1rem}.tab-content{min-height:400px}.welcome-section{animation:slideUp .6s ease-out;background:#fff;border-radius:16px;box-shadow:0 10px 25px #0000001a;padding:3rem 2rem;text-align:center}.welcome-icon{color:#48bb78;display:flex;justify-content:center;margin-bottom:1.5rem}.welcome-section h2{color:#2d3748;font-size:2rem;font-weight:600;margin-bottom:1rem}.success-message{color:#48bb78;font-size:1.1rem;font-weight:500;gap:.5rem;margin-bottom:.5rem}.success-message,.success-message:before{align-items:center;display:flex;justify-content:center}.success-message:before{background:#48bb78;border-radius:50%;color:#fff;content:"✓";font-size:.8rem;font-weight:700;height:20px;width:20px}.description{color:#718096;font-size:1rem;line-height:1.6;margin-bottom:2rem}.dashboard-stats{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin-top:2rem}.stat-card{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;box-shadow:0 4px 15px #667eea33;color:#fff;display:flex;gap:1rem;padding:1.5rem;transition:all .3s ease}.stat-card:hover{box-shadow:0 8px 25px #667eea4d;transform:translateY(-2px)}.stat-icon{align-items:center;background:#fff3;border-radius:8px;display:flex;justify-content:center;padding:.75rem}.stat-content h3{font-size:1.1rem;font-weight:600;margin:0 0 .25rem}.stat-content p{font-size:.9rem;margin:0;opacity:.9}body{background:#f7fafc;color:#2d3748;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:1rem;line-height:1.5}h1,h2,h3,h4,h5,h6{color:#2d3748;font-weight:600;margin-bottom:.5em}h2{font-size:1.8rem}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.dashboard-container{padding:10px}.dashboard-header{flex-direction:column;gap:1rem;padding:1.5rem 1rem;text-align:center}.dashboard-header h1{font-size:1.5rem}.welcome-section{padding:2rem 1.5rem}.welcome-section h2{font-size:1.5rem}.dashboard-stats{gap:1rem;grid-template-columns:1fr}.stat-card{padding:1rem}}@media (max-width:480px){.dashboard-content{padding:1rem}.welcome-section{padding:1.5rem 1rem}.stat-card{flex-direction:column;gap:.75rem;text-align:center}}.client-management{--letters-container-height:calc(100vh - 150px);background:#f8fafc;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;height:calc(100vh - 160px);margin:0 auto;max-width:1400px;overflow:hidden;padding:0}@media (max-width:1200px){.client-management{--letters-container-height:calc(100vh - 200px)}}@media (max-width:900px){.client-management{--letters-container-height:calc(100vh - 150px)}}.management-header{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-bottom:1px solid #e2e8f0;border-radius:12px 12px 0 0;color:#fff;display:flex;justify-content:space-between;margin-bottom:0;padding:2rem 2rem 1.5rem}.management-header h2{color:#fff;font-size:1.75rem;font-weight:600;margin:0;text-shadow:0 1px 2px #0000001a}.header-actions{align-items:stretch;display:flex;flex-direction:column;gap:1rem}.search-container{max-width:500px;width:100%}.search-input-wrapper{align-items:center;display:flex;position:relative}.search-icon{color:#718096;left:1rem;position:absolute;z-index:1}.search-input{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffffe6;border:2px solid #ffffff4d;border-radius:12px;color:#2d3748;font-size:1rem;padding:.75rem 1rem .75rem 3rem;transition:all .3s ease;width:100%}.search-input:focus{background:#fff;border-color:#fff;box-shadow:0 0 0 3px #ffffff4d;outline:none;transform:translateY(-1px)}.clear-search{align-items:center;background:none;border:none;border-radius:4px;color:#718096;cursor:pointer;display:flex;font-size:1.25rem;height:24px;justify-content:center;padding:.25rem;position:absolute;right:.75rem;transition:all .2s ease;width:24px}.clear-search:hover{background:#f7fafc;color:#2d3748}.header-info{color:#718096;font-size:.9rem;font-style:italic;margin:0;text-align:center}.btn{align-items:center;border:none;border-radius:12px;box-shadow:0 2px 4px #0000001a;cursor:pointer;display:flex;font-size:.95rem;font-weight:600;gap:.5rem;padding:.75rem 1.5rem;text-decoration:none;transition:all .3s ease}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1);box-shadow:0 8px 20px #667eea66;transform:translateY(-2px)}.btn-secondary{background:linear-gradient(135deg,#48bb78,#38a169);color:#fff}.btn-secondary:hover{background:linear-gradient(135deg,#38a169,#2f855a);box-shadow:0 8px 20px #48bb7866;transform:translateY(-2px)}.btn-small{font-size:.85rem;padding:.5rem 1rem}.btn:disabled{background:#cbd5e0;box-shadow:none;cursor:not-allowed;transform:none}.management-content{height:calc(100vh - 160px);overflow:hidden;padding:0}.content-layout{background:#f8f9fa;display:flex;gap:0;height:100%}.client-sidebar{background:#fff;border-radius:0 0 0 12px;border-right:1px solid #e2e8f0;box-shadow:2px 0 4px #0000000d;display:flex;flex-direction:column;overflow:hidden;width:350px}.sidebar-header{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-bottom:1px solid #e2e8f0;border-radius:0 0 0 12px;padding:24px 20px}.sidebar-header h3{color:#2d3748;font-size:1.3rem;font-weight:600;margin:0 0 8px}.client-count{background:#e9ecef;border-radius:12px;color:#666;display:inline-block;font-size:.85rem;margin-bottom:8px;padding:4px 12px}.show-all-clients-btn{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;box-shadow:0 2px 4px #667eea4d;color:#fff;cursor:pointer;display:flex;font-size:.8rem;font-weight:500;gap:4px;padding:6px 12px;transition:all .3s ease}.show-all-clients-btn:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1);box-shadow:0 4px 8px #667eea66;transform:translateY(-1px)}.client-list{flex:1 1;max-height:calc(100vh - 140px);min-height:300px;outline:none;overflow-y:auto;padding:10px 0 80px;position:relative;scroll-behavior:smooth}.client-list:after{background:linear-gradient(#0000,#f8fafccc);bottom:0}.client-list:after,.client-list:before{content:"";height:20px;left:0;pointer-events:none;position:absolute;right:0;z-index:1}.client-list:before{background:linear-gradient(#f8fafccc,#0000);opacity:0;top:0;transition:opacity .3s ease}.client-list.scrollable-top:before{opacity:1}.scroll-to-bottom{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:2px solid #fff;border-radius:50%;bottom:15px;box-shadow:0 6px 16px #667eea66;color:#fff;cursor:pointer;display:flex;font-size:0;height:45px;justify-content:center;opacity:.9;position:absolute;right:15px;transition:all .3s ease;width:45px;z-index:10}.scroll-to-bottom svg{height:16px;width:16px}.scroll-to-bottom:hover{box-shadow:0 6px 16px #667eea66;opacity:1;transform:translateY(-2px)}.scroll-to-bottom:active{transform:translateY(0)}.scroll-to-bottom.always-visible{animation:bounce 2s infinite;background:linear-gradient(135deg,#48bb78,#38a169);border:2px solid #2f855a;opacity:1}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-3px)}60%{transform:translateY(-2px)}}.scroll-indicator{animation:pulse 2s infinite;background:#667eeae6;border-radius:20px;bottom:5px;box-shadow:0 2px 8px #667eea4d;color:#fff;font-size:.8rem;font-weight:500;left:50%;padding:8px 16px;position:absolute;transform:translateX(-50%);z-index:5}@keyframes pulse{0%,to{opacity:.8}50%{opacity:1}}.client-list::-webkit-scrollbar{width:8px}.client-list::-webkit-scrollbar-track{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:4px}.client-list::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#667eea,#764ba2);border:1px solid #5a67d8;border-radius:4px}.client-list::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1);box-shadow:0 2px 4px #667eea4d}.client-list::-webkit-scrollbar-thumb:active{background:linear-gradient(135deg,#4c51bf,#553c9a)}.client-item{align-items:center;border-bottom:1px solid #f8f9fa;border-radius:8px;cursor:pointer;display:flex;margin:0 8px 4px;min-height:60px;padding:16px 20px;position:relative;transition:all .3s ease;z-index:2}.client-item:last-child{margin-bottom:100px;padding-bottom:30px}.client-list:focus{outline:2px solid #667eea;outline-offset:2px}.client-item:hover{background:linear-gradient(135deg,#f8fafc,#e2e8f0);box-shadow:0 2px 8px #0000001a;transform:translateX(4px)}.client-item.selected{background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-left:4px solid #2196f3;box-shadow:0 4px 12px #2196f333;transform:translateX(4px)}.client-item.focused{background:linear-gradient(135deg,#f0f4ff,#e6f3ff);border-left:4px solid #667eea;box-shadow:0 2px 8px #667eea4d;transform:translateX(2px)}.client-item.focused.selected{background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-left:4px solid #2196f3;box-shadow:0 4px 12px #2196f333;transform:translateX(4px)}.client-avatar{align-items:center;background:#f0f0f0;border-radius:50%;color:#666;display:flex;height:40px;justify-content:center;margin-right:12px;width:40px}.client-item.selected .client-avatar{background:#2196f3;color:#fff}.client-details{flex:1 1;min-width:0}.client-details h4{color:#2d3748;font-size:1rem;font-weight:500;margin:0 0 4px}.client-details .company-name,.client-details h4{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-details .company-name{color:#666;font-size:.85rem;margin:0}.selected-indicator{color:#2196f3;margin-left:8px}.channel-content{background:#fff;border-radius:0 0 12px 0;box-shadow:-2px 0 4px #0000000d;display:flex;flex:1 1;flex-direction:column;overflow:hidden}.channel-management{display:flex;flex-direction:column;height:100%}.channel-header{align-items:center;background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-bottom:1px solid #e2e8f0;border-radius:0 0 0 0;display:flex;justify-content:space-between;padding:24px 30px}.selected-client-info h3{color:#2d3748;font-size:1.4rem;font-weight:600;margin:0 0 4px}.selected-client-info .company-name{color:#666;font-size:.9rem;margin:0}.channels-container{-webkit-overflow-scrolling:touch;flex:1 1;overflow-x:hidden;overflow-y:auto;position:relative;scrollbar-color:#cbd5e1 #f1f5f9;scrollbar-width:thin}.channels-container::-webkit-scrollbar{width:8px}.channels-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.channels-container::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.channels-container::-webkit-scrollbar-thumb:hover{background:#94a3b8}.no-client-selected{align-items:center;color:#666;display:flex;flex:1 1;flex-direction:column;justify-content:center;padding:40px;text-align:center}.no-client-selected svg{color:#ccc;margin-bottom:20px}.no-client-selected h3{color:#2d3748;font-size:1.5rem;margin:0 0 10px}.no-client-selected p{font-size:1rem;line-height:1.5;margin:0}.channels-table-container{border:none;border-radius:0;flex:1 1;max-height:calc(100vh - 180px);min-height:200px;overflow-x:hidden;overflow-y:auto}.channels-table-container::-webkit-scrollbar{width:6px}.channels-table-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.channels-table-container::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:3px}.channels-table-container::-webkit-scrollbar-thumb:hover{background:#a0aec0}.channels-table{background:#fff;border-collapse:initial;border-radius:8px;border-spacing:0;box-shadow:0 1px 3px #0000001a;overflow:hidden;width:100%}.channels-table thead{background:linear-gradient(135deg,#f8fafc,#e2e8f0);position:-webkit-sticky;position:sticky;top:0;z-index:10}.channels-table th{border-bottom:1px solid #e2e8f0;color:#2d3748;font-size:.9rem;font-weight:600;letter-spacing:.05em;padding:1rem;text-align:left;text-transform:uppercase}.channels-table td{border-bottom:1px solid #f1f5f9;padding:1rem;vertical-align:middle}.channel-row{cursor:pointer;transition:all .3s ease}.channel-row:hover{background:linear-gradient(135deg,#f8fafc,#e2e8f0);transform:translateX(2px)}.channel-row.selected{background:linear-gradient(135deg,#667eea26,#764ba226);border-left:4px solid #667eea;box-shadow:0 2px 8px #667eea33}.channel-name{align-items:center;display:flex;gap:.5rem}.channel-name strong{color:#2d3748;font-size:1rem}.dropdown-toggle{align-items:center;background:none;border:none;border-radius:4px;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:all .2s ease}.dropdown-toggle:hover{background:#f1f5f9}.dropdown-arrow{color:#718096;transition:transform .2s ease}.dropdown-arrow.expanded{color:#667eea;transform:rotate(180deg)}.channel-type-badge{background:#667eea;border-radius:12px;color:#fff;display:inline-block;font-size:.75rem;font-weight:500;letter-spacing:.05em;padding:.25rem .75rem;text-transform:uppercase}.channel-description{color:#718096;font-size:.9rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-date{color:#718096;font-size:.85rem}.no-channels{align-items:center;color:#718096;display:flex;flex:1 1;flex-direction:column;justify-content:center;padding:3rem 2rem;text-align:center}.no-channels svg{color:#cbd5e0;margin-bottom:1rem}.no-channels h4{color:#4a5568;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.no-channels p{font-size:.95rem;line-height:1.5;margin:0 0 1.5rem}.no-results{color:#718096;padding:2rem;text-align:center}.no-results svg{color:#cbd5e0;margin-bottom:1rem}.no-results p{font-size:.9rem;line-height:1.5;margin:0 0 1rem}.channel-letters-row{background:#f8fafc;border-top:1px solid #e2e8f0}.channel-letters-container{animation:slideDown .3s ease-out;background:#f8fafc;border-radius:8px;margin:.5rem;max-height:calc(100vh - 150px);max-height:var(--letters-container-height,calc(100vh - 150px));min-height:500px;overflow-x:hidden;overflow-y:auto;padding:1rem}.channel-letters-container::-webkit-scrollbar{width:8px}.channel-letters-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.channel-letters-container::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.channel-letters-container::-webkit-scrollbar-thumb:hover{background:#5a67d8}@keyframes slideDown{0%{max-height:0;opacity:0;padding-bottom:0;padding-top:0}to{max-height:500px;opacity:1;padding-bottom:1.5rem;padding-top:1.5rem}}.letters-header{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 1px 2px #0000000d;display:flex;justify-content:space-between;margin-bottom:1rem;padding:.75rem}.letters-header h4{color:#2d3748;font-size:1.1rem;font-weight:600;margin:0}.letters-count{background:#667eea;border-radius:12px;color:#fff;font-size:.8rem;font-weight:500;padding:.25rem .75rem}.letters-list-inline{display:flex;flex-direction:column;gap:.75rem;min-height:100px;padding:.5rem 0;position:relative}.letters-list-inline:after{background:linear-gradient(#0000,#f8fafc);bottom:0;content:"";height:20px;left:0;pointer-events:none;position:absolute;right:0}.letter-item-inline{align-items:flex-start;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;margin-bottom:.75rem;min-height:120px;padding:.75rem;transition:all .2s ease}.letter-item-inline:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.letter-icon-small{align-items:center;background:#667eea;border-radius:6px;color:#fff;display:flex;flex-shrink:0;height:32px;justify-content:center;margin-right:.75rem;width:32px}.letter-details-inline{flex:1 1;min-width:0}.letter-details-inline h5{border-bottom:1px solid #e2e8f0;color:#2d3748;font-size:1rem;font-weight:600;line-height:1.3;margin:0 0 .5rem;padding-bottom:.25rem}.letter-description-small{background:#f8fafc;border-left:3px solid #667eea;border-radius:4px;color:#4a5568;font-size:.9rem;line-height:1.5;margin:0 0 .75rem;padding:.5rem}.letter-meta-small{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem;padding:.5rem}.letter-meta-small span{background:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#4a5568;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.file-name-small{background:#e6fffa!important;border-color:#81e6d9!important;color:#2d3748!important;font-weight:600}.letter-tags-small{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.tag-small{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;box-shadow:0 1px 3px #667eea4d;color:#fff;font-size:.7rem;font-weight:500;padding:.25rem .75rem}.letter-actions-inline{align-items:center;display:flex;margin-left:.75rem}.no-letters-inline{background:#fff;border:1px solid #e2e8f0;border-radius:8px;color:#718096;margin:.5rem 0;padding:2rem 1rem;text-align:center}.no-letters-inline svg{color:#cbd5e0;margin-bottom:.75rem}.no-letters-inline p{font-size:.9rem;line-height:1.5;margin:0 0 1rem}.upload-modal{max-width:600px}.analyze-modal{max-height:80vh;max-width:800px}.analyze-content{max-height:60vh;overflow-y:auto;padding:0 1.5rem 1.5rem}.analysis-header{align-items:flex-start;background:linear-gradient(135deg,#f8fafc,#e2e8f0);border:1px solid #e2e8f0;border-radius:8px;display:flex;justify-content:space-between;margin-bottom:2rem;padding:1rem}.analysis-header h4{color:#2d3748;font-size:1.25rem;font-weight:600;margin:0}.analysis-meta{display:flex;flex-wrap:wrap;gap:1rem}.analysis-meta span{background:#fff;border:1px solid #e2e8f0;border-radius:12px;color:#4a5568;font-size:.8rem;font-weight:500;padding:.25rem .75rem}.file-type{background:#e6fffa!important;border-color:#81e6d9!important;color:#234e52!important}.channel-type{background:#667eea!important;border-color:#667eea!important;color:#fff!important}.letter-count{background:#fef5e7!important;border-color:#f6e05e!important;color:#744210!important}.analysis-sections{display:flex;flex-direction:column;gap:2rem}.analysis-section{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:1.5rem}.analysis-section h5{border-bottom:2px solid #e2e8f0;color:#2d3748;font-size:1.1rem;font-weight:600;margin:0 0 1rem;padding-bottom:.5rem}.analysis-item{align-items:center;border-bottom:1px solid #f1f5f9;display:flex;justify-content:space-between;padding:.75rem 0}.analysis-item:last-child{border-bottom:none}.analysis-item .label{color:#4a5568;font-weight:500}.analysis-item .value{background:#f8fafc;border-radius:4px;color:#2d3748;font-weight:600;padding:.25rem .5rem}.insights-grid{grid-gap:1rem;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-top:1rem}.insight-card{align-items:center;background:linear-gradient(135deg,#f8fafc,#e2e8f0);border:1px solid #e2e8f0;border-radius:8px;display:flex;padding:1rem;transition:all .3s ease}.insight-card:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.insight-icon{font-size:1.5rem;margin-right:.75rem}.insight-content h6{color:#2d3748;font-size:.9rem;font-weight:600;margin:0 0 .25rem}.insight-content p{color:#4a5568;font-size:.8rem;margin:0}.analysis-loading{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:3rem;text-align:center}.loading-spinner{animation:spin 1s linear infinite;border:4px solid #e2e8f0;border-radius:50%;border-top-color:#667eea;height:40px;margin-bottom:1rem;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.analysis-loading h4{color:#2d3748;font-size:1.25rem;margin:0 0 .5rem}.analysis-loading p{color:#4a5568;font-size:.9rem;margin:0}.api-analysis-results{padding:0}.analysis-text{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-top:1rem;padding:1rem}.analysis-output{word-wrap:break-word;background:#0000;border:none;color:#2d3748;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.9rem;line-height:1.5;margin:0;max-height:400px;outline:none;overflow-y:auto;resize:none;white-space:pre-wrap;width:100%}.analysis-placeholder{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:3rem;text-align:center}.placeholder-icon{font-size:3rem;margin-bottom:1rem;opacity:.6}.analysis-placeholder h4{color:#2d3748;font-size:1.25rem;margin:0 0 .5rem}.analysis-placeholder p{color:#4a5568;font-size:.9rem;margin:0}.letters-modal{max-height:80vh;max-width:800px}.letters-content{max-height:60vh;overflow-y:auto;padding:0 1.5rem 1.5rem}.letters-list{display:flex;flex-direction:column;gap:1rem}.letter-item{align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;display:flex;padding:1rem;transition:all .2s ease}.letter-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.letter-icon{align-items:center;background:#667eea;border-radius:8px;color:#fff;display:flex;flex-shrink:0;height:40px;justify-content:center;margin-right:1rem;width:40px}.letter-details{flex:1 1;min-width:0}.letter-details h4{color:#2d3748;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.letter-description{color:#718096;font-size:.9rem;line-height:1.4;margin:0 0 .75rem}.letter-meta{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:.5rem}.letter-meta span{background:#e2e8f0;border-radius:4px;color:#718096;font-size:.8rem;padding:.25rem .5rem}.file-name{color:#4a5568!important;font-weight:500}.letter-tags{display:flex;flex-wrap:wrap;gap:.5rem}.tag{background:#667eea;border-radius:12px;color:#fff;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.letter-actions{align-items:center;display:flex;margin-left:1rem}.no-letters{color:#718096;padding:3rem 2rem;text-align:center}.no-letters svg{color:#cbd5e0;margin-bottom:1rem}.no-letters h4{color:#4a5568;font-size:1.1rem;font-weight:600;margin:0 0 .5rem}.no-letters p{font-size:.95rem;line-height:1.5;margin:0 0 1.5rem}.upload-info{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:0 1.5rem 1.5rem;padding:1rem 1.5rem}.upload-client-info{display:flex;flex-direction:column;gap:.5rem}.info-item{align-items:center;display:flex;gap:.5rem}.info-item label{color:#4a5568;font-size:.9rem;font-weight:600;min-width:60px}.info-item span{color:#2d3748;font-size:.9rem}.modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:1rem;position:fixed;right:0;top:0;z-index:1000}.modal{animation:modalSlideIn .3s ease-out;background:#fff;border-radius:12px;box-shadow:0 20px 40px #00000026;max-height:90vh;max-width:500px;overflow-y:auto;width:100%}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;margin-bottom:1.5rem;padding:1.5rem 1.5rem 0}.modal-header h3{color:#2d3748;font-size:1.25rem;font-weight:600;margin:0}.close-btn{background:none;border:none;border-radius:4px;color:#718096;cursor:pointer;font-size:1.5rem;padding:.25rem;transition:all .2s ease}.close-btn:hover{background:#f7fafc;color:#2d3748}.modal-form{padding:0 1.5rem 1.5rem}.form-group{margin-bottom:1.5rem}.form-group label{color:#2d3748;display:block;font-size:.9rem;font-weight:500;margin-bottom:.5rem}.form-group input,.form-group select,.form-group textarea{background:#fff;border:2px solid #e2e8f0;border-radius:8px;color:#2d3748;font-size:1rem;padding:.75rem;transition:all .2s ease;width:100%}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{background:#fff;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.form-group textarea{min-height:80px;resize:vertical}.form-group select option{background:#fff;color:#2d3748;font-size:1rem;padding:.5rem}.form-group select:focus option{background:#f8fafc;color:#2d3748}.form-group select{-webkit-appearance:none;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='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;background-size:1rem;padding-right:2.5rem}.form-group select:hover{background-color:#f8fafc;border-color:#cbd5e0}.form-group select option:hover{background-color:#e2e8f0;color:#2d3748}.file-info{background:#e6fffa;border:1px solid #81e6d9;border-radius:4px;color:#234e52;font-size:.85rem;margin-top:.5rem;padding:.5rem}.modal-actions{border-top:1px solid #e2e8f0;display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem;padding-top:1rem}.modal-actions button{border:none;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;padding:.75rem 1.5rem;transition:all .2s ease}.modal-actions button[type=button]{background:#f7fafc;border:1px solid #e2e8f0;color:#4a5568}.modal-actions button[type=button]:hover{background:#edf2f7}.modal-actions button[type=submit]{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.modal-actions button[type=submit]:hover:not(:disabled){box-shadow:0 4px 12px #667eea4d;transform:translateY(-1px)}.error-message{background:#fed7d7;border:1px solid #feb2b2;border-radius:8px;color:#c53030;font-weight:500;margin-bottom:1rem;padding:1rem}.loading{opacity:.6;pointer-events:none}@media (max-width:1024px){.client-sidebar{width:300px}}@media (max-width:768px){.client-management{height:auto;min-height:calc(100vh - 200px)}.management-content{height:auto}.content-layout{flex-direction:column;height:auto}.client-sidebar{border-bottom:1px solid #e2e8f0;border-right:none;height:300px;width:100%}.channel-content{height:auto;min-height:400px}.management-header{padding:1rem}.management-header h2{font-size:1.5rem}.header-actions{align-items:stretch}.search-container{max-width:none}.channel-header{align-items:flex-start;flex-direction:column;gap:10px;padding:15px 20px}.channels-table-container{font-size:.85rem}.channels-table td,.channels-table th{padding:.75rem .5rem}.channel-description{max-width:150px}.modal{margin:1rem;max-width:none}.modal-actions{flex-direction:column}.modal-actions button{width:100%}.letters-modal{margin:1rem;max-width:none}.letter-item{align-items:flex-start;flex-direction:column}.letter-actions{margin-left:0;margin-top:1rem;width:100%}.letter-actions button{width:100%}.letter-meta{flex-direction:column;gap:.5rem}.channel-letters-container{padding:1rem}.letter-item-inline{align-items:flex-start;flex-direction:column}.letter-actions-inline{margin-left:0;margin-top:.5rem;width:100%}.letter-actions-inline button{width:100%}.letter-meta-small{flex-direction:column;gap:.25rem}.channel-letters-container{max-height:calc(100vh - 150px);min-height:400px}}@media (max-width:1200px){.channel-letters-container{max-height:calc(100vh - 200px);min-height:450px}.channels-table-container,.client-list{max-height:calc(100vh - 160px)}}@media (max-width:900px){.channel-letters-container{max-height:calc(100vh - 150px);min-height:400px}.channels-table-container,.client-list{max-height:calc(100vh - 140px)}}@media (zoom:0.25){.client-list{padding:10px 0 60px}.channels-table-container,.client-list{max-height:calc(100vh - 100px);min-height:400px}.client-management,.management-content{height:calc(100vh - 100px)}.client-sidebar{min-height:400px}}@media (zoom:0.5){.channels-table-container,.client-list{max-height:calc(100vh - 140px);min-height:250px}.client-management,.management-content{height:calc(100vh - 140px)}}@media (max-width:480px){.client-management{padding:0}.management-header{padding:1rem}.client-sidebar{height:250px}.client-item{padding:12px 15px}.client-avatar{height:35px;width:35px}.channel-header{padding:12px 15px}.channels-table td,.channels-table th{font-size:.8rem;padding:.5rem .25rem}.modal-header{padding:1rem 1rem 0}.modal-form{padding:0 1rem 1rem}.client-list{max-height:calc(100vh - 100px);min-height:150px}.scroll-to-bottom{bottom:8px;height:35px;right:8px;width:35px}}.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media (prefers-reduced-motion:no-preference){.App-logo{animation:App-logo-spin 20s linear infinite}}.App-header{align-items:center;background-color:#282c34;color:#fff;display:flex;flex-direction:column;font-size:calc(10px + 2vmin);justify-content:center;min-height:100vh}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
/*# sourceMappingURL=main.c2cdddbb.css.map*/