.toast-container{position:fixed;bottom:1.5rem;right:1.5rem;z-index:10000;display:flex;flex-direction:column;gap:.75rem;max-width:400px}.toast{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem;border-radius:10px;box-shadow:0 4px 20px #00000026;animation:slideIn .3s ease;background:#fff}@keyframes slideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.toast-icon{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}.toast-message{flex:1;font-size:.95rem;color:#2c3e50;line-height:1.4}.toast-dismiss{background:none;border:none;font-size:1.25rem;color:#95a5a6;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease;flex-shrink:0}.toast-dismiss:hover{background:#f0f0f0;color:#2c3e50}.toast-success{border-left:4px solid #27ae60}.toast-success .toast-icon{background:#27ae60;color:#fff}.toast-error{border-left:4px solid #e74c3c}.toast-error .toast-icon{background:#e74c3c;color:#fff}.toast-info{border-left:4px solid #3498db}.toast-info .toast-icon{background:#3498db;color:#fff}.toast-warning{border-left:4px solid #f39c12}.toast-warning .toast-icon{background:#f39c12;color:#fff}@media(max-width:480px){.toast-container{left:1rem;right:1rem;bottom:1rem;max-width:none}}.modal-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem;animation:fadeIn .2s ease}.modal-container{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:480px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid #e8eef5}.modal-title{margin:0;font-size:1.25rem;color:#2c3e50;font-weight:600}.modal-close{background:none;border:none;font-size:1.5rem;color:#95a5a6;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:all .2s ease}.modal-close:hover{background:#f0f0f0;color:#2c3e50}.modal-body{padding:1.5rem;overflow-y:auto}.modal-confirm-message{margin-bottom:1.5rem}.modal-confirm-message p{margin:0;color:#4a5568;line-height:1.6;font-size:1rem}.modal-confirm-actions{display:flex;gap:.75rem;justify-content:flex-end}.modal-btn{padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s ease;border:none}.modal-btn-secondary{background:#f0f0f0;color:#4a5568}.modal-btn-secondary:hover{background:#e0e0e0}.modal-btn-default{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.modal-btn-default:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.modal-btn-danger{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.modal-btn-danger:hover{transform:translateY(-1px);box-shadow:0 4px 12px #e74c3c66}.modal-btn-warning{background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff}.modal-btn-warning:hover{transform:translateY(-1px);box-shadow:0 4px 12px #f39c1266}.modal-btn-success{background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff}.modal-btn-success:hover{transform:translateY(-1px);box-shadow:0 4px 12px #27ae6066}@media(max-width:480px){.modal-container{max-width:none;margin:1rem;max-height:calc(100vh - 2rem)}.modal-confirm-actions{flex-direction:column-reverse}.modal-btn{width:100%}}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}.modal-content{background:#fff;border-radius:16px;padding:2rem;max-width:480px;width:90%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;font-size:1.5rem;color:#999;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease}.modal-close:hover{background:#f5f5f5;color:#333}.modal-header{text-align:center;margin-bottom:1.5rem}.modal-header h2{font-size:1.5rem;color:#2c3e50;margin:0 0 .5rem}.modal-header p{color:#7f8c8d;margin:0}.modal-body{min-height:200px}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem}.error-state{text-align:center;padding:1rem}.error-state p{color:#c33;margin-bottom:1rem}.suggestion-card{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border-radius:12px;padding:1.5rem;border:1px solid #e0e6ff}.suggestion-header{display:flex;justify-content:center;margin-bottom:1rem}.confidence-badge{background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500}.suggestion-body{text-align:center}.question{color:#7f8c8d;margin:0 0 .5rem;font-size:1rem}.person-name{font-size:1.75rem;color:#2c3e50;margin:0 0 1rem}.match-reason{color:#667eea;font-size:.9rem;margin:0 0 .5rem}.aliases{color:#7f8c8d;font-size:.9rem;margin:0 0 .5rem;font-style:italic}.years{color:#95a5a6;font-size:.85rem;margin:0}.suggestion-actions{display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}.no-suggestion{text-align:center;padding:1rem}.no-suggestion p{color:#7f8c8d;margin:0 0 1rem}.btn-primary{width:100%;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-secondary{width:100%;padding:.75rem 1.5rem;font-size:.95rem;font-weight:500;color:#667eea;background:#fff;border:2px solid #667eea;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-skip{width:100%;padding:.5rem 1rem;margin-top:.5rem;font-size:.9rem;color:#7f8c8d;background:none;border:none;cursor:pointer;transition:color .2s ease}.btn-skip:hover:not(:disabled){color:#2c3e50;text-decoration:underline}.btn-skip:disabled{opacity:.6;cursor:not-allowed}.no-suggestion-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}.identity-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:2rem}.identity-container{max-width:600px;margin:0 auto}.identity-header{text-align:center;margin-bottom:2rem;position:relative}.identity-header h1{font-size:2rem;color:#2c3e50;margin:0 0 .5rem}.identity-header p{color:#7f8c8d;margin:0}.identity-main{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 8px 32px #0000001a}.loading-state{display:flex;flex-direction:column;align-items:center;padding:3rem}.loading-spinner{width:40px;height:40px;border:3px solid #f0f0f0;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}.loading-state p{color:#7f8c8d;margin-top:1rem}.current-identity-section,.people-section{margin-bottom:2rem}.current-identity-section h2,.people-section h2{font-size:1.25rem;color:#2c3e50;border-left:4px solid #667eea;padding-left:1rem;margin:0 0 1rem}.no-identity{background:#f8f9fa;border-radius:8px;padding:1.5rem;text-align:center}.no-identity p{color:#7f8c8d;margin:0 0 .5rem}.no-identity p:last-child{margin-bottom:0}.current-identity-card{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border:1px solid #e0e6ff;border-radius:12px;padding:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.current-identity-card .person-info{flex:1}.current-identity-card h3{font-size:1.25rem;color:#2c3e50;margin:0 0 .25rem}.current-identity-card .aliases{color:#7f8c8d;font-size:.9rem;font-style:italic;margin:0 0 .25rem}.current-identity-card .years{color:#95a5a6;font-size:.85rem;margin:0}.current-identity-card .notes{color:#7f8c8d;font-size:.9rem;margin:.5rem 0 0;padding-top:.5rem;border-top:1px solid #e0e6ff}.identity-actions{display:flex;flex-direction:column;gap:.5rem}.btn-edit{padding:.5rem 1rem;font-size:.9rem;font-weight:500;color:#667eea;background:#fff;border:2px solid #667eea;border-radius:6px;cursor:pointer;transition:all .2s ease}.btn-edit:hover:not(:disabled){background:#667eea;color:#fff}.btn-edit:disabled{opacity:.6;cursor:not-allowed}.edit-form{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border:1px solid #e0e6ff;border-radius:12px;padding:1.5rem}.edit-form h3{font-size:1.25rem;color:#2c3e50;margin:0 0 1.5rem;text-align:center}.search-box{margin-bottom:1rem;position:relative}.search-box input{width:100%;padding:.75rem 1rem;font-size:1rem;border:2px solid #e0e6ff;border-radius:8px;outline:none;transition:border-color .2s ease}.search-box input:focus{border-color:#667eea}.search-indicator{position:absolute;right:1rem;top:50%;transform:translateY(-50%);color:#7f8c8d;font-size:.85rem}.people-list{max-height:400px;overflow-y:auto;border:1px solid #e0e6ff;border-radius:8px}.person-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid #f0f0f0;transition:background .2s ease}.person-item:last-child{border-bottom:none}.person-item:hover{background:#f8f9ff}.person-item.selected{background:#f0f4ff}.person-item .person-info{flex:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem}.person-item .name{font-weight:600;color:#2c3e50}.person-item .person-aliases{color:#7f8c8d;font-size:.9rem;font-style:italic}.person-item .person-years{color:#95a5a6;font-size:.85rem}.btn-select{padding:.5rem 1rem;font-size:.9rem;font-weight:500;color:#667eea;background:#fff;border:2px solid #667eea;border-radius:6px;cursor:pointer;transition:all .2s ease}.btn-select:hover:not(:disabled){background:#667eea;color:#fff}.btn-select:disabled{opacity:.6;cursor:not-allowed}.btn-danger{padding:.5rem 1rem;font-size:.9rem;font-weight:500;color:#c33;background:#fff;border:2px solid #c33;border-radius:6px;cursor:pointer;transition:all .2s ease}.btn-danger:hover:not(:disabled){background:#c33;color:#fff}.btn-danger:disabled{opacity:.6;cursor:not-allowed}.current-badge{background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500}.create-profile-section{margin-bottom:2rem}.create-profile-section h2{font-size:1.25rem;color:#2c3e50;border-left:4px solid #667eea;padding-left:1rem;margin:0 0 1rem}.create-profile-prompt{background:#f8f9fa;border-radius:12px;padding:1.5rem;text-align:center;border:2px dashed #e0e6ff}.create-profile-prompt p{color:#7f8c8d;margin:0 0 1rem}.create-form{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border:1px solid #e0e6ff;border-radius:12px;padding:1.5rem}.create-form h2{border-left:none;padding-left:0;text-align:center}.form-description{text-align:center;color:#7f8c8d;margin:0 0 1.5rem}.form-group input,.form-group textarea{width:100%;padding:.75rem 1rem;font-size:1rem;border:2px solid #e0e6ff;border-radius:8px;outline:none;transition:border-color .2s ease;background:#fff;font-family:inherit}.form-group input:focus,.form-group textarea:focus{border-color:#667eea}.form-group input:disabled,.form-group textarea:disabled{background:#f5f5f5;cursor:not-allowed}.form-group textarea{resize:vertical;min-height:80px}.form-hint{display:block;font-size:.85rem;color:#95a5a6;margin-top:.25rem}.form-actions{display:flex;gap:1rem;margin-top:1.5rem}.btn-primary{flex:1;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-secondary{flex:1;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;color:#667eea;background:#fff;border:2px solid #667eea;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-secondary:hover:not(:disabled){background:#f8f9ff}.settings-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:2rem}.settings-container{max-width:600px;margin:0 auto}.settings-header{text-align:center;margin-bottom:2rem;position:relative}.settings-header h1{font-size:2rem;color:#2c3e50;margin:0 0 .5rem}.settings-header p{color:#7f8c8d;margin:0}.settings-main{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 8px 32px #0000001a}.success-message{background:#efe;color:#363;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border-left:4px solid #3c3}.settings-section{margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid #e0e6ff}.settings-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.settings-section h2{font-size:1.25rem;color:#2c3e50;border-left:4px solid #667eea;padding-left:1rem;margin:0 0 .5rem}.section-description{color:#7f8c8d;margin:0 0 1.5rem;font-size:.95rem;line-height:1.5}.current-timezone{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border:1px solid #e0e6ff;border-radius:8px;padding:1rem;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.current-timezone .label{font-weight:600;color:#2c3e50}.current-timezone .value{color:#667eea;font-weight:500}.current-timezone .current-time{color:#95a5a6;font-weight:400;margin-left:.25rem}.form-group{margin-bottom:1.25rem}.timezone-select-wrapper{position:relative}.timezone-select-wrapper select{width:100%;padding:.75rem 2.5rem .75rem 1rem;font-size:1rem;border:2px solid #e0e6ff;border-radius:8px;outline:none;transition:border-color .2s ease;background:#fff;cursor:pointer;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='%23667eea' 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 1rem center;background-size:1rem}.timezone-select-wrapper select:focus{border-color:#667eea}.timezone-select-wrapper select:disabled{background-color:#f5f5f5;cursor:not-allowed}.preview-time{display:block;font-size:.85rem;color:#667eea;margin-top:.5rem;font-style:italic}.timezone-actions{display:flex;gap:1rem;margin-top:1.5rem}.btn-detect{padding:.75rem 1rem;font-size:.95rem;font-weight:500;color:#667eea;background:#fff;border:2px solid #667eea;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-detect:hover:not(:disabled){background:#f8f9ff}.btn-detect:disabled{opacity:.6;cursor:not-allowed}.btn-primary{flex:1;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.timezone-hint{margin-top:1rem;padding:.75rem 1rem;background:#fffef0;border:1px solid #f0e68c;border-radius:8px;color:#8b7500;font-size:.9rem}.account-info{background:#f8f9fa;border-radius:8px;padding:1rem}.info-row{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e6ff}.info-row:last-child{border-bottom:none}.info-row .label{font-weight:600;color:#2c3e50;width:120px;flex-shrink:0}.info-row .value{color:#7f8c8d}.info-row .value.capitalize{text-transform:capitalize}@media(max-width:480px){.settings-page{padding:1rem}.settings-main{padding:1.5rem}.timezone-actions{flex-direction:column}.btn-detect{order:2}.btn-primary{order:1}.info-row{flex-direction:column;align-items:flex-start;gap:.25rem}.info-row .label{width:auto}}.import-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:2rem}.import-container{max-width:900px;margin:0 auto}.import-header{text-align:center;margin-bottom:2rem;position:relative}.back-btn{position:absolute;left:0;top:0;background:none;border:none;color:#667eea;font-size:1rem;cursor:pointer;padding:.5rem 1rem;border-radius:8px;transition:all .2s ease}.back-btn:hover{background:#667eea1a}.import-header h1{font-size:2rem;color:#2c3e50;margin:0 0 .5rem}.import-header p{color:#7f8c8d;margin:0}.step-indicator{display:flex;justify-content:center;gap:1rem;margin-bottom:2rem}.step-item{display:flex;align-items:center;gap:.5rem;color:#95a5a6;font-size:.9rem}.step-item.active{color:#667eea;font-weight:600}.step-item.completed{color:#27ae60}.step-number{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:600;background:#e0e6ff;color:#667eea}.step-item.active .step-number{background:#667eea;color:#fff}.step-item.completed .step-number{background:#27ae60;color:#fff}.step-connector{width:30px;height:2px;background:#e0e6ff}.step-item.completed+.step-connector,.step-connector.completed{background:#27ae60}.import-main{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 8px 32px #0000001a}.step-section{animation:fadeIn .3s ease}.step-section h2{font-size:1.5rem;color:#2c3e50;margin:0 0 1.5rem;text-align:center}.upload-zone{border:3px dashed #e0e6ff;border-radius:16px;padding:3rem;text-align:center;cursor:pointer;transition:all .3s ease;background:#fafbff}.upload-zone:hover{border-color:#667eea;background:#f5f7ff}.upload-zone.dragging{border-color:#667eea;background:#f0f4ff;transform:scale(1.02)}.upload-zone.has-file{border-style:solid;border-color:#27ae60;background:#f0fff4}.upload-icon{font-size:3rem;margin-bottom:1rem}.upload-zone p{color:#7f8c8d;margin:.5rem 0}.upload-zone .file-name{font-weight:600;color:#2c3e50;font-size:1.1rem}.size-warning{color:#e67e22;font-size:.9rem;margin-top:1rem;padding:.75rem;background:#fff9f0;border-radius:8px}.parse-stats{margin-top:1.5rem;padding:1.5rem;background:#f8f9fa;border-radius:12px}.parse-stats h3{margin:0 0 1rem;color:#2c3e50;font-size:1.1rem}.stat-item{text-align:center;padding:1rem;background:#fff;border-radius:8px}.stat-value{font-size:1.5rem;font-weight:700;color:#667eea}.stat-label{font-size:.8rem;color:#7f8c8d;margin-top:.25rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;font-weight:600;color:#2c3e50;margin-bottom:.5rem;font-size:.95rem}.form-group input,.form-group select{width:100%;padding:.875rem 1rem;font-size:1rem;border:2px solid #e0e6ff;border-radius:8px;outline:none;transition:border-color .2s ease;background:#fff}.form-group input:focus,.form-group select:focus{border-color:#667eea}.form-group input:disabled,.form-group select:disabled{background:#f5f5f5;cursor:not-allowed}.form-hint{font-size:.85rem;color:#95a5a6;margin-top:.5rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.participant-table-wrapper{overflow-x:auto;margin:1.5rem 0}.participant-table{width:100%;border-collapse:collapse;font-size:.95rem}.participant-table th{text-align:left;padding:1rem;background:#f8f9fa;color:#2c3e50;font-weight:600;border-bottom:2px solid #e0e6ff}.participant-table td{padding:.75rem 1rem;border-bottom:1px solid #f0f0f0;vertical-align:middle}.participant-table tr:hover td{background:#fafbff}.participant-table input[type=text],.participant-table select{width:100%;padding:.5rem;border:1px solid #e0e6ff;border-radius:6px;font-size:.9rem}.participant-table input[type=text]:focus,.participant-table select:focus{border-color:#667eea;outline:none}.participant-table input[type=checkbox]{width:18px;height:18px;cursor:pointer}.raw-name{color:#7f8c8d;font-size:.85rem}.message-count{color:#95a5a6;font-size:.85rem}.bulk-actions{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.bulk-actions button{padding:.5rem 1rem;font-size:.85rem;background:#f8f9fa;border:1px solid #e0e6ff;border-radius:6px;color:#667eea;cursor:pointer;transition:all .2s ease}.bulk-actions button:hover{background:#667eea;color:#fff;border-color:#667eea}.cost-estimate{background:#1a1a2e;color:#e0e0e0;font-family:Monaco,Menlo,monospace;padding:1.5rem;border-radius:12px;white-space:pre;line-height:1.6;overflow-x:auto;font-size:.9rem}.cost-estimate .highlight{color:#27ae60;font-weight:700}.message-preview{margin:1.5rem 0}.message-preview h3{font-size:1.1rem;color:#2c3e50;margin:0 0 1rem}.preview-messages{max-height:300px;overflow-y:auto;background:#f8f9fa;border-radius:8px;padding:1rem}.preview-message{padding:.75rem;border-bottom:1px solid #e0e6ff}.preview-message:last-child{border-bottom:none}.preview-header{display:flex;justify-content:space-between;margin-bottom:.5rem}.preview-sender{font-weight:600;color:#667eea}.preview-time{color:#95a5a6;font-size:.85rem}.preview-content{color:#2c3e50}.preview-divider{text-align:center;color:#95a5a6;padding:1rem;font-style:italic}.preview-expand-btn{display:block;width:100%;padding:.75rem;margin-top:1rem;background:none;border:1px solid #e0e6ff;border-radius:8px;color:#667eea;cursor:pointer;transition:all .2s ease}.preview-expand-btn:hover{background:#f0f4ff}.progress-section{padding:2rem 0}.progress-stages{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem}.progress-stage{display:flex;align-items:center;gap:1rem;padding:1rem;background:#f8f9fa;border-radius:8px}.progress-stage.active{background:#f0f4ff}.progress-stage.complete{background:#f0fff4}.progress-stage.error{background:#fff0f0}.stage-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e0e6ff;color:#667eea;font-size:1rem}.progress-stage.active .stage-icon{background:#667eea;color:#fff;animation:pulse 1.5s infinite}.progress-stage.complete .stage-icon{background:#27ae60;color:#fff}.progress-stage.error .stage-icon{background:#e74c3c;color:#fff}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.stage-label{flex:1;color:#2c3e50;font-weight:500}.stage-status{color:#95a5a6;font-size:.9rem}.progress-bar-container{margin-bottom:1.5rem}.progress-bar{height:12px;background:#e0e6ff;border-radius:6px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:6px;transition:width .5s ease}.progress-text{display:flex;justify-content:space-between;margin-top:.5rem;font-size:.9rem;color:#7f8c8d}.step-navigation{display:flex;justify-content:space-between;margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e0e6ff}.btn-prev,.btn-next,.btn-import,.btn-cancel{padding:.875rem 2rem;font-size:1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-prev{color:#667eea;background:#fff;border:2px solid #667eea}.btn-prev:hover:not(:disabled){background:#f0f4ff}.btn-next{color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none}.btn-next:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-import{color:#fff;background:linear-gradient(135deg,#27ae60,#2ecc71);border:none}.btn-import:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #27ae6066}.btn-cancel{color:#e74c3c;background:#fff;border:2px solid #e74c3c}.btn-cancel:hover:not(:disabled){background:#e74c3c;color:#fff}.btn-prev:disabled,.btn-next:disabled,.btn-import:disabled,.btn-cancel:disabled{opacity:.5;cursor:not-allowed;transform:none}.complete-section{text-align:center;padding:3rem}.complete-icon{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff;font-size:2.5rem;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem}.complete-section h2{color:#27ae60}.complete-section p{color:#7f8c8d;margin-bottom:2rem}.btn-view-family{padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-view-family:hover{transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.error-message{background:#fee;color:#c33;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border-left:4px solid #c33}.intern-review-section{max-width:100%}.intern-header{text-align:center;margin-bottom:1.5rem}.intern-header h2{margin-bottom:.5rem}.intern-header p{color:#7f8c8d;margin-bottom:1rem}.btn-run-intern{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-run-intern:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 15px #667eea66}.btn-run-intern:disabled{opacity:.7;cursor:not-allowed}.intern-stats{display:flex;gap:1rem;justify-content:center;margin-bottom:1.5rem;flex-wrap:wrap}.stat-chip{padding:.5rem 1rem;border-radius:20px;font-weight:600;font-size:.9rem}.stat-chip.process{background:#d4edda;color:#155724}.stat-chip.skip{background:#f8d7da;color:#721c24}.stat-chip.overridden{background:#fff3cd;color:#856404}.intern-filter-tabs{display:flex;gap:.5rem;margin-bottom:1rem;border-bottom:2px solid #e8eef5;padding-bottom:.5rem}.intern-filter-tabs button{background:none;border:none;padding:.5rem 1rem;font-size:.95rem;color:#7f8c8d;cursor:pointer;border-radius:4px 4px 0 0;transition:all .2s ease}.intern-filter-tabs button:hover{color:#667eea;background:#667eea1a}.intern-filter-tabs button.active{color:#667eea;font-weight:600;border-bottom:2px solid #667eea;margin-bottom:-2px}.intern-messages-list{max-height:400px;overflow-y:auto;border:1px solid #e8eef5;border-radius:8px;margin-bottom:1.5rem}.intern-message{display:flex;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid #e8eef5;transition:background .2s ease}.intern-message:last-child{border-bottom:none}.intern-message:hover{background:#f8f9fa}.intern-message.decision-process{background:#d4edda4d}.intern-message.decision-skip{background:#f8d7da33}.intern-message.overridden{border-left:3px solid #ffc107}.message-checkbox{display:flex;align-items:flex-start;padding-top:.25rem}.message-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer}.message-content{flex:1;min-width:0}.message-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.25rem}.message-sender{font-weight:600;color:#2c3e50;font-size:.9rem}.message-time{font-size:.75rem;color:#95a5a6}.message-text{color:#4a5568;font-size:.9rem;line-height:1.4;white-space:pre-wrap;word-break:break-word}.message-decision{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.8rem}.decision-badge{padding:.15rem .5rem;border-radius:4px;font-weight:600}.decision-badge.process{background:#d4edda;color:#155724}.decision-badge.skip{background:#e9ecef;color:#6c757d}.decision-reason{color:#95a5a6;font-style:italic}.override-badge{background:#fff3cd;color:#856404;padding:.1rem .4rem;border-radius:3px;font-size:.7rem;font-weight:600}.intern-cost-estimate{background:#f8f9fa;padding:1rem;border-radius:8px;margin-bottom:1.5rem}.revised-estimate{text-align:center}.cost-value{font-size:1.5rem;font-weight:700;color:#667eea;display:block;margin:.5rem 0}.cost-savings{font-size:.85rem;color:#28a745}.intern-actions{display:flex;justify-content:space-between;gap:1rem}.btn-submit-scribe{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-submit-scribe:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 15px #28a74566}.btn-submit-scribe:disabled{opacity:.7;cursor:not-allowed}.duplicate-warning{display:flex;gap:1rem;padding:1.5rem;background:linear-gradient(135deg,#fff3cd,#ffeeba);border:2px solid #ffc107;border-radius:12px;margin-bottom:1.5rem}.duplicate-warning-icon{font-size:2rem;flex-shrink:0}.duplicate-warning-content{flex:1}.duplicate-warning-content h3{margin:0 0 .5rem;color:#856404;font-size:1.1rem}.duplicate-warning-content p{margin:0 0 1rem;color:#664d03;line-height:1.5}.duplicate-warning-actions{display:flex;gap:1rem;flex-wrap:wrap}.duplicate-warning-actions .btn-view-family{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.duplicate-warning-actions .btn-view-family:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.duplicate-warning-actions .btn-view-family:disabled{opacity:.5;cursor:not-allowed}.duplicate-warning-actions .btn-secondary{background:#fff;color:#856404;border:2px solid #ffc107;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.duplicate-warning-actions .btn-secondary:hover{background:#fff3cd}.checking-duplicates{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;background:#f8f9fa;border-radius:8px;margin-bottom:1.5rem;color:#667eea;font-weight:500}@media(max-width:768px){.import-page{padding:1rem}.stats-grid{grid-template-columns:repeat(2,1fr)}.form-row{grid-template-columns:1fr;gap:1rem}.step-indicator{flex-wrap:wrap}.step-label{display:none}.participant-table th,.participant-table td{padding:.5rem}}.app-container{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:2rem}.app-header{text-align:center;margin-bottom:2rem}.app-header h1{font-size:2.5rem;color:#2c3e50;margin:0 0 .5rem}.app-header p{color:#7f8c8d;font-size:1.1rem;margin:0}.app-main{max-width:900px;margin:0 auto}.generate-btn{display:block;margin:0 auto 2rem;padding:.75rem 2rem;font-size:1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea66}.generate-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.generate-btn:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#fee;color:#c33;padding:1rem;border-radius:8px;margin-bottom:2rem;border-left:4px solid #c33}.summary-container{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 32px #0000001a;animation:fadeIn .3s ease}.summary-container h2{font-size:1.8rem;color:#2c3e50;border-bottom:3px solid #667eea;padding-bottom:1rem;margin-top:0}.summary-section{margin:2rem 0}.summary-section h3{font-size:1.3rem;color:#34495e;border-left:4px solid #667eea;padding-left:1rem;margin-top:0;margin-bottom:1rem}.summary-section ul{list-style:none;padding:0;margin:0}.summary-section li{padding:.75rem;margin-bottom:.5rem;background:#f8f9fa;border-radius:6px;border-left:3px solid #ecf0f1;transition:all .2s ease}.summary-section li:hover{background:#e8eef5;border-left-color:#667eea}.summary-section strong{color:#2c3e50}.date{color:#7f8c8d;font-weight:600;margin-right:.5rem}.event-type{color:#764ba2;font-size:.9rem;margin-right:.5rem}.notes{margin:.5rem 0 0;color:#7f8c8d;font-style:italic;font-size:.95rem}.themes{margin:.3rem 0 0;color:#667eea;font-size:.9rem}.status{display:inline-block;margin-right:.5rem;font-size:1.1rem}.summary-footer{margin-top:2rem;padding-top:2rem;border-top:2px solid #ecf0f1;text-align:center}.summary-footer p{color:#7f8c8d;margin:0}.admin-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 32px #0000001a;margin-bottom:2rem}.admin-section h2{font-size:1.8rem;color:#2c3e50;border-bottom:3px solid #e74c3c;padding-bottom:1rem;margin-top:0}.admin-form-container{margin-bottom:2rem}.admin-form-container h3{font-size:1.2rem;color:#34495e;margin-bottom:1rem}.admin-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:600;color:#34495e;font-size:.95rem}.form-group input,.form-group textarea{padding:.75rem;border:2px solid #ecf0f1;border-radius:6px;font-size:1rem;transition:border-color .2s ease}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#667eea}.form-group input:disabled,.form-group textarea:disabled{background:#f8f9fa;cursor:not-allowed}.form-group textarea{resize:vertical;font-family:inherit}.admin-btn{padding:.75rem 2rem;font-size:1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#e74c3c,#c0392b);border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #e74c3c66;align-self:flex-start}.admin-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #e74c3c99}.admin-btn:disabled{opacity:.6;cursor:not-allowed}.success-message{background:#d4edda;color:#155724;padding:1rem;border-radius:8px;margin-top:1rem;border-left:4px solid #28a745}.allowed-chats{margin-top:2rem;padding-top:1.5rem;border-top:2px solid #ecf0f1}.allowed-chats h3{font-size:1.2rem;color:#34495e;margin-bottom:1rem}.allowed-chats ul{list-style:none;padding:0;margin:0}.allowed-chats li{display:flex;align-items:center;padding:.75rem;margin-bottom:.5rem;background:#f8f9fa;border-radius:6px;border-left:3px solid #ecf0f1}.allowed-chats li:hover{background:#e8eef5;border-left-color:#e74c3c}.chat-id{font-family:monospace;font-weight:600;color:#2c3e50}.chat-note{color:#7f8c8d;margin-left:.5rem}.remove-btn{margin-left:auto;padding:.25rem .75rem;font-size:.9rem;font-weight:600;color:#c0392b;background:transparent;border:1px solid #c0392b;border-radius:4px;cursor:pointer;transition:all .2s ease}.remove-btn:hover{background:#c0392b;color:#fff}.section-divider{border:none;border-top:2px solid #ecf0f1;margin:2rem 0}.preview-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 32px #0000001a}.preview-section h2{font-size:1.8rem;color:#2c3e50;border-bottom:3px solid #667eea;padding-bottom:1rem;margin-top:0;margin-bottom:1.5rem}*{margin:0;padding:0;box-sizing:border-box}html,body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;line-height:1.6}body{margin:0;padding:0}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;text-align:center}.loading-spinner{width:48px;height:48px;border:4px solid #ecf0f1;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}@keyframes spin{to{transform:rotate(360deg)}}.btn-primary{display:inline-block;padding:.75rem 2rem;font-size:1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea66;text-decoration:none}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{display:inline-block;padding:.5rem 1.5rem;font-size:.95rem;font-weight:600;color:#667eea;background:transparent;border:2px solid #667eea;border-radius:8px;cursor:pointer;transition:all .3s ease;text-decoration:none}.btn-secondary:hover:not(:disabled){background:#667eea;color:#fff}.btn-secondary:disabled{opacity:.6;cursor:not-allowed}.btn-small{padding:.35rem 1rem;font-size:.85rem}.login-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);display:flex;align-items:center;justify-content:center;padding:2rem}.login-container{width:100%;max-width:480px}.login-header{text-align:center;margin-bottom:2rem}.login-header h1{font-size:2.5rem;color:#2c3e50;margin:0 0 .5rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.login-header p{color:#7f8c8d;font-size:1.1rem;margin:0}.login-main{display:flex;flex-direction:column;gap:1.5rem}.login-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 32px #0000001a;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.login-card h2{font-size:1.5rem;color:#2c3e50;margin:0 0 1rem;text-align:center}.login-description{color:#7f8c8d;text-align:center;margin-bottom:1.5rem}.login-card .error-message{background:#fee;color:#c33;padding:1rem;border-radius:8px;margin-bottom:1rem;border-left:4px solid #c33;font-size:.95rem}.loading-message{text-align:center;color:#667eea;padding:1rem;font-weight:500}.telegram-auth{display:flex;justify-content:center;padding:1rem 0}.login-help{color:#7f8c8d;font-size:.9rem;text-align:center;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #ecf0f1}.login-help a{color:#667eea;text-decoration:none}.login-help a:hover{text-decoration:underline}.login-help code{background:#f8f9fa;padding:.2rem .5rem;border-radius:4px;font-size:.85rem;color:#764ba2}.public-stats{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 16px #00000014}.public-stats h3{font-size:1rem;color:#7f8c8d;text-align:center;margin:0 0 1rem;text-transform:uppercase;letter-spacing:.5px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.stat-item{display:flex;flex-direction:column;align-items:center;text-align:center}.stat-value{font-size:1.8rem;font-weight:700;color:#667eea}.stat-label{font-size:.8rem;color:#7f8c8d;text-transform:uppercase;letter-spacing:.5px}.login-footer{text-align:center;margin-top:2rem}.login-footer p{color:#95a5a6;font-size:.9rem}.access-pass-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);display:flex;align-items:center;justify-content:center;padding:2rem}.access-pass-container{width:100%;max-width:480px}.access-pass-header{text-align:center;margin-bottom:2rem}.access-pass-header h1{font-size:2rem;color:#2c3e50;margin:0;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.access-pass-main{display:flex;flex-direction:column;gap:1.5rem}.access-pass-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 32px #0000001a;text-align:center;animation:fadeIn .3s ease}.access-pass-card h2{font-size:1.5rem;color:#2c3e50;margin:0 0 .5rem}.access-pass-card p{color:#7f8c8d;margin:0}.success-container{padding:1rem 0}.success-icon{width:64px;height:64px;background:linear-gradient(135deg,#27ae60,#2ecc71);color:#fff;font-size:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;box-shadow:0 4px 15px #27ae6066}.error-container{padding:1rem 0}.error-icon{width:64px;height:64px;background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff;font-size:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;box-shadow:0 4px 15px #e74c3c66}.error-container .error-message{background:#fee;color:#c33;padding:.75rem 1rem;border-radius:8px;margin:1rem 0;border-left:4px solid #c33;text-align:left}.error-help{color:#7f8c8d;font-size:.9rem;margin:1rem 0}.error-help code{background:#f8f9fa;padding:.2rem .5rem;border-radius:4px;font-size:.85rem;color:#764ba2}.select-family-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);display:flex;align-items:center;justify-content:center;padding:2rem}.select-family-container{width:100%;max-width:600px}.select-family-header{text-align:center;margin-bottom:2rem}.select-family-header h1{font-size:2rem;color:#2c3e50;margin:0 0 .5rem}.select-family-header p{color:#7f8c8d;font-size:1.1rem;margin:0}.select-family-main{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 8px 32px #0000001a;animation:fadeIn .3s ease}.family-list{display:flex;flex-direction:column;gap:.75rem}.family-card{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1rem 1.25rem;background:#f8f9fa;border:2px solid transparent;border-radius:8px;cursor:pointer;transition:all .2s ease;text-align:left}.family-card:hover{background:#e8eef5;border-color:#667eea;transform:translate(4px)}.family-card.import-card{background:linear-gradient(135deg,#f0f4ff,#e8eef5);border:2px dashed #667eea}.family-card.import-card:hover{background:linear-gradient(135deg,#e8eef5,#dde4f0);border-style:solid}.family-card.import-card .family-name{color:#667eea}.import-family-btn{margin-top:1rem}.family-info{display:flex;flex-direction:column;gap:.25rem}.family-card .family-name{font-size:1.1rem;font-weight:600;color:#2c3e50;margin:0}.family-joined{font-size:.85rem;color:#7f8c8d;margin:0}.family-role{display:flex;align-items:center}.role-badge{padding:.35rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.role-admin{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.role-member{background:#27ae60;color:#fff}.role-viewer{background:#95a5a6;color:#fff}.no-families{text-align:center;padding:2rem;color:#7f8c8d}.no-families code{background:#f8f9fa;padding:.2rem .5rem;border-radius:4px;font-size:.85rem;color:#764ba2}.select-family-footer{text-align:center;margin-top:1.5rem}.app-header{display:flex;justify-content:space-between;align-items:center;text-align:left;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid rgba(255,255,255,.3)}.header-left{display:flex;align-items:center;gap:1rem}.header-left h1{font-size:1.8rem;color:#2c3e50;margin:0}.header-left .family-name{color:#667eea;font-weight:600;font-size:1.1rem}.header-left .role-badge{padding:.25rem .6rem;border-radius:12px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;background:#667eea;color:#fff}.header-right{display:flex;align-items:center;gap:1rem}.header-right .user-name{color:#7f8c8d;font-size:.95rem}@media(max-width:600px){.stats-grid{grid-template-columns:repeat(2,1fr)}.login-header h1{font-size:2rem}.app-header{flex-direction:column;gap:1rem;text-align:center}.header-left{flex-direction:column;gap:.5rem}.header-right{flex-wrap:wrap;justify-content:center}}
