.admin-login{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.admin-login-card{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 10px 40px #0000001a;width:100%;max-width:400px}.admin-login-card h1{margin:0 0 1.5rem;color:#333;text-align:center}.admin-page{min-height:100vh;background:#f5f7fa}.admin-header{background:#fff;padding:1rem 2rem;box-shadow:0 2px 4px #0000001a;display:flex;justify-content:space-between;align-items:center}.admin-header h1{margin:0;color:#333}.logout-button{background:#dc3545;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem}.logout-button:hover{background:#c82333}.admin-tabs{display:flex;gap:0;border-bottom:2px solid #e2e8f0;background:#f8f9fa;padding:0 2rem}.admin-tabs button{background:transparent;border:none;padding:1rem 1.5rem;font-size:1rem;color:#666;cursor:pointer;border-bottom:3px solid transparent;transition:all .2s}.admin-tabs button:hover{color:#333;background:#e9ecef}.admin-tabs button.active{color:#667eea;border-bottom-color:#667eea;background:#fff}.admin-content{max-width:1200px;margin:0 auto;padding:2rem}.admin-section{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:2rem}.admin-section h2{margin:0 0 1.5rem;color:#333;border-bottom:2px solid #667eea;padding-bottom:.5rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#555}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;font-family:inherit}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group small{display:block;margin-top:.25rem;color:#666;font-size:.875rem}.form-group input[type=range]{padding:0}button{background:#667eea;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:4px;cursor:pointer;font-size:1rem;font-weight:600;transition:background .2s}button:hover:not(:disabled){background:#5568d3}button:disabled{background:#ccc;cursor:not-allowed}.config-form button,.instructions-form button{margin-top:1rem}.instructions-form textarea{font-family:Courier New,monospace;resize:vertical;min-height:400px}.success-message{background:#d4edda;color:#155724;padding:1rem;border-radius:4px;margin-bottom:1rem;border:1px solid #c3e6cb}.error-message{background:#f8d7da;color:#721c24;padding:1rem;border-radius:4px;margin-bottom:1rem;border:1px solid #f5c6cb}@media (max-width: 768px){.admin-content,.admin-section{padding:1rem}}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e2e8f0}.section-header h2{margin:0;padding-bottom:0;border-bottom:none;color:#1e293b;font-size:1.75rem}.version-toggle-button{background:#667eea;color:#fff;font-size:.9rem;padding:.6rem 1.2rem;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:all .2s}.version-toggle-button:hover:not(:disabled){background:#5a67d8;transform:translateY(-1px);box-shadow:0 4px 8px #667eea4d}.instructions-editor{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000001a}.editor-header{margin-bottom:1rem}.editor-header label{display:block;font-weight:600;color:#1e293b;font-size:1.1rem;margin-bottom:.5rem}.editor-hint{display:block;color:#64748b;font-size:.9rem;font-style:italic}.instructions-textarea{width:100%;padding:1rem;border:2px solid #cbd5e1;border-radius:6px;font-family:Courier New,monospace;font-size:.95rem;line-height:1.6;resize:vertical;transition:border-color .2s}.instructions-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.editor-footer{margin-top:1rem;display:flex;justify-content:flex-end}.save-button{background:#10b981;color:#fff;padding:.75rem 2rem;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:1rem;transition:all .2s}.save-button:hover:not(:disabled){background:#059669;transform:translateY(-1px);box-shadow:0 4px 8px #10b9814d}.save-button:disabled{background:#cbd5e1;cursor:not-allowed;transform:none}.versions-section{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000001a}.versions-section h3{margin-top:0;margin-bottom:1.5rem;color:#1e293b;font-size:1.3rem}.empty-state{text-align:center;padding:3rem 1rem;color:#64748b;background:#f8fafc;border-radius:6px;border:2px dashed #cbd5e1}.empty-state p{margin:0;font-size:1rem}.versions-table-wrapper{overflow-x:auto}.versions-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}.versions-table thead{background:#f8fafc;border-bottom:2px solid #e2e8f0}.versions-table th{padding:1rem;text-align:left;font-weight:600;color:#475569;font-size:.95rem;text-transform:uppercase;letter-spacing:.5px}.versions-table td{padding:1rem;border-top:1px solid #e2e8f0;font-size:.95rem}.versions-table tbody tr:hover{background:#f8fafc}.version-date{font-weight:600;color:#1e293b;margin-bottom:.25rem}.version-time{color:#64748b;font-size:.85rem;font-family:Courier New,monospace}.version-actions{display:flex;gap:.5rem}.versions-table button{font-size:.85rem;padding:.5rem 1rem;border:none;border-radius:5px;cursor:pointer;font-weight:500;transition:all .2s}.view-button{background:#3b82f6;color:#fff}.view-button:hover:not(:disabled){background:#2563eb;transform:translateY(-1px)}.restore-button{background:#f59e0b;color:#fff}.restore-button:hover:not(:disabled){background:#d97706;transform:translateY(-1px)}.delete-button{background:#ef4444;color:#fff}.delete-button:hover:not(:disabled){background:#dc2626;transform:translateY(-1px)}.version-preview{background:#fff;border:2px solid #667eea;border-radius:8px;overflow:hidden;margin-bottom:2rem;box-shadow:0 4px 12px #667eea26}.version-preview-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.25rem 1.5rem;display:flex;justify-content:space-between;align-items:center}.version-preview-header h3{margin:0;font-size:1.1rem;display:flex;flex-direction:column;gap:.25rem}.version-preview-date{font-size:.85rem;font-weight:400;opacity:.9}.close-preview-button{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1rem;border-radius:5px;cursor:pointer;font-weight:500;transition:all .2s}.close-preview-button:hover{background:#ffffff4d;border-color:#ffffff80}.version-preview-content{padding:1.5rem;background:#f8fafc}.version-content{font-family:Courier New,monospace;background:#fff;border:2px solid #e2e8f0;padding:1rem;width:100%;border-radius:6px;resize:vertical;font-size:.9rem;line-height:1.6;color:#1e293b}.version-content:focus{outline:none;border-color:#667eea}.leads-container{margin-top:1.5rem}.leads-list{display:flex;flex-direction:column;gap:1rem}.lead-day-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s}.lead-day-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a}.lead-day-item.active{border-color:#667eea;background:#f8f9ff}.lead-day-header{display:flex;justify-content:space-between;align-items:center}.lead-count{background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:600}.lead-details{margin-top:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.leads-table{width:100%;border-collapse:collapse;background:#fff;font-size:.9rem}.leads-table th,.leads-table td{padding:.75rem;text-align:left;border-bottom:1px solid #e2e8f0}.leads-table th{background:#f8f9fa;font-weight:600;color:#555}.leads-table tr:last-child td{border-bottom:none}.export-buttons{display:flex;gap:.5rem}.export-button{background:#28a745;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background .2s}.export-button:hover{background:#218838}.export-button:active{transform:translateY(1px)}.day-export-buttons{display:flex;gap:.5rem;margin-bottom:1rem;justify-content:flex-end}.day-export-button{background:#17a2b8;color:#fff;border:none;padding:.4rem .8rem;border-radius:4px;cursor:pointer;font-size:.85rem;transition:background .2s}.day-export-button:hover{background:#138496}.day-export-button:active{transform:translateY(1px)}.sessions-container{margin-top:1.5rem}.sessions-controls{display:flex;gap:1.5rem;margin-bottom:1.5rem;align-items:flex-end;flex-wrap:wrap}.search-box{flex:1;min-width:250px}.search-box input{width:100%;padding:.75rem;border:1px solid #cbd5e1;border-radius:5px;font-size:14px}.search-box input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.sort-box{display:flex;align-items:center;gap:10px}.sort-box label{font-weight:500;color:#64748b}.sort-box select{padding:.75rem;border:1px solid #cbd5e1;border-radius:5px;font-size:14px;cursor:pointer;background:#fff}.sort-box select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.sessions-table{width:100%;border-collapse:collapse;background:#fff;margin-bottom:1rem;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.sessions-table th,.sessions-table td{padding:.75rem;text-align:left;border-bottom:1px solid #e2e8f0}.sessions-table th{background:#f8f9fa;font-weight:600;color:#555}.sessions-table code{background:#f1f3f5;padding:.2rem .4rem;border-radius:3px;font-size:.85rem;font-family:Courier New,monospace}.sessions-table tbody tr:hover{background:#f8f9fa}.sessions-table tbody tr.active{background:#e7f3ff}.session-details-row,.session-details-row:hover{background:#f8f9fa!important}.session-details{padding:1rem;border:2px solid #667eea;border-radius:8px;background:#fff;margin:.5rem}.session-content{max-height:400px;overflow-y:auto;background:#f8f9fa;border-radius:4px;padding:1rem}.session-content pre{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,monospace;font-size:.9rem;line-height:1.5}.pagination{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;border-top:1px solid #e2e8f0}.pagination button{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:5px;cursor:pointer;font-weight:500;transition:background-color .2s}.pagination button:hover:not(:disabled){background:#5a67d8}.pagination button:disabled{background:#cbd5e1;cursor:not-allowed;opacity:.6}.page-info{font-weight:500;color:#64748b;font-size:.95rem}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background-color:#f6f8fb}body{margin:0;min-height:100vh;background:#f6f8fb}.lead-capture-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.lead-capture-modal{background:#fff;border-radius:1rem;padding:3rem;max-width:600px;width:90%;box-shadow:0 20px 60px #0000004d}.lead-capture-modal h1{font-size:2.5rem;margin:0 0 .5rem;font-weight:700}.lead-capture-modal .orange{color:#ea580c}.lead-capture-modal .subtitle{color:#64748b;margin-bottom:2rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.form-field{margin-bottom:1rem}.form-field label{display:block;margin-bottom:.5rem;font-weight:500;color:#0f172a}.form-field input{width:100%;padding:.75rem;border:1px solid #cbd5e1;border-radius:.375rem;font-size:1rem;box-sizing:border-box}.form-field input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.required{color:#ea580c;margin-left:.25rem}.consent-field{display:flex;gap:.75rem;align-items:flex-start;margin:1.5rem 0}.consent-field input[type=checkbox]{margin-top:.25rem;flex-shrink:0}.consent-field label{font-size:.875rem;color:#475569;line-height:1.5}.consent-field a{color:#2563eb;text-decoration:underline}.submit-button{background:#ea580c;color:#fff;border:none;padding:1rem 2rem;font-size:1rem;font-weight:700;border-radius:.375rem;cursor:pointer;transition:background .2s}.submit-button:hover:not(:disabled){background:#c2410c}.submit-button:disabled{background:#cbd5e1;cursor:not-allowed}.app-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:#0f172a;color:#fff;padding:1.5rem;display:flex;flex-direction:column;height:100vh}.sidebar-header{margin-bottom:1rem}.sidebar button{background:none;border:none;color:inherit;cursor:pointer}.sidebar ul{list-style:none;padding:0;flex:1;overflow-y:auto}.sidebar li button{width:100%;text-align:left;padding:.75rem;border-radius:.5rem}.sidebar li button.active{background:#ffffff1f}.sidebar-footer{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.1)}.clear-button{width:100%;padding:.75rem;border-radius:.5rem;background:#ef444433;color:#fca5a5;font-weight:500;transition:all .2s}.clear-button:hover{background:#ef44444d;color:#fecaca}main{padding:2rem;display:flex;flex-direction:column;gap:1.5rem}.discovery-form,.chat-window{background:#fff;border-radius:1rem;border:1px solid #e2e8f0;padding:1.5rem}.discovery-form .group,.discovery-form .two-column,.discovery-form .three-column{display:grid;gap:1rem}.discovery-form .two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-form .three-column{grid-template-columns:repeat(3,minmax(0,1fr))}.discovery-form input,.discovery-form select,.chat-input textarea{width:100%;padding:.75rem;border-radius:.5rem;border:1px solid #cbd5f5;font-size:1rem}.discovery-form button,.chat-input button{margin-top:1rem;padding:.75rem 1.5rem;border-radius:999px;border:none;background:#2563eb;color:#fff;font-weight:600;cursor:pointer}.messages{display:flex;flex-direction:column;gap:1rem}.messages.has-chat{max-height:40vh;overflow-y:auto}.conversation-starters{margin-bottom:2rem}.conversation-starters h2{color:#ea580c;font-size:1rem;font-weight:600;margin-bottom:1rem}.starters-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.starter-button{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;padding:1rem;text-align:left;cursor:pointer;font-size:.9rem;color:#1e293b;transition:all .2s}.starter-button:hover{background:#f8fafc;border-color:#cbd5e1;box-shadow:0 2px 4px #0000000d}.lead-capture-inline{background:#fff;border:2px solid #e2e8f0;border-radius:1rem;padding:2rem;margin-top:2rem}.lead-capture-inline h1{font-size:2rem;margin:0 0 .5rem;font-weight:700}.lead-capture-inline .orange{color:#ea580c}.lead-capture-inline .subtitle{color:#64748b;margin-bottom:1.5rem}.message.user{align-self:flex-end}.message.assistant{align-self:flex-start}.message .bubble{padding:1rem;border-radius:1rem;max-width:420px;background:#eef2ff}.message.user .bubble{background:#2563eb;color:#fff}.message-content{line-height:1.6}.message-content p{margin:0 0 .75rem}.message-content p:last-child{margin-bottom:0}.message-content strong{font-weight:600;color:inherit}.message-content a{color:#2563eb;text-decoration:underline}.message.user .message-content a{color:#93c5fd}.message-content li{margin-left:1.5rem;margin-bottom:.5rem;list-style-type:decimal}.message-content li.bullet{list-style-type:disc}.message-content br{display:block;content:"";margin:.5rem 0}.timestamp{display:block;font-size:.75rem;opacity:.7;margin-top:.5rem}.typing{color:#475569;font-style:italic}.chat-input{margin-top:1rem;display:flex;gap:.75rem;align-items:center}.chat-input input{flex:1;padding:.75rem 1rem;border-radius:999px;border:1px solid #cbd5e1;font-size:1rem}.chat-input button{margin-top:0;padding:.75rem 1.5rem;border-radius:999px;border:none;background:#2563eb;color:#fff;font-weight:600;cursor:pointer}@media (max-width: 900px){.app-shell{grid-template-columns:1fr}.sidebar{grid-row:2}}
