*{box-sizing:border-box}html{background:#0a1721}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;max-width:600px;margin:0 auto;padding:20px;background:transparent}h1{color:#333;margin-bottom:5px}.subtitle{color:#666;margin-bottom:20px}#appContainer .subtitle{color:#fff;text-align:center}.logo{display:block;max-width:325px;height:auto;margin:0 auto 10px}.footer-logo{display:block;max-width:235px;height:auto;margin:30px auto 10px;opacity:1}.footer-links{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:10px}.footer-divider{color:#666}#appContainer .footer-divider{color:#ffffff80}.contact-link{display:block;text-align:center;color:#666;font-size:14px;text-decoration:none}#appContainer .contact-link{color:#fff}.contact-link:hover{color:#2563eb}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;margin:-20px;padding:20px}.auth-card{background:#fff;border-radius:12px;padding:40px;width:100%;max-width:400px;box-shadow:0 4px 12px #00000026;text-align:center}.auth-card h1{margin-bottom:8px}.auth-card .logo{max-width:100%;margin-left:auto;margin-right:auto}.auth-card h2{margin-top:20px;margin-bottom:20px;font-size:20px;color:#333}.auth-card input[type=email],.auth-card input[type=password]{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:16px;margin-bottom:15px}.auth-card input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.auth-card button[type=submit]{width:100%;padding:14px;background:#2563eb;color:#fff;border:none;border-radius:6px;font-size:16px;font-weight:600;cursor:pointer;margin-top:10px}.auth-card button[type=submit]:hover{background:#1d4ed8}.auth-card button[type=submit]:disabled{background:#93c5fd;cursor:not-allowed}.auth-error{color:#ef4444;font-size:14px;margin-top:15px;min-height:20px}.auth-toggle-text{margin-top:20px;font-size:14px;color:#666}.auth-toggle-text a{color:#2563eb;text-decoration:none}.auth-toggle-text a:hover{text-decoration:underline}.forgot-password-link{text-align:right;margin:-5px 0 15px;font-size:13px}.forgot-password-link a{color:#6b7280;text-decoration:none}.forgot-password-link a:hover{color:#2563eb;text-decoration:underline}.forgot-password-description{color:#6b7280;font-size:14px;margin-bottom:20px}.auth-success{color:#10b981;font-size:14px;margin-top:15px}.terms-checkbox{margin:15px 0;text-align:left}.terms-label{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:14px;color:#555;cursor:pointer}.terms-label input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;cursor:pointer}.terms-label a{color:#2563eb;text-decoration:none}.terms-label a:hover{text-decoration:underline}.user-header{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-bottom:15px;padding:10px 0;border-bottom:1px solid #e5e7eb}#appContainer .user-header{border-bottom-color:#000}.user-header span{color:#666;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex-shrink:1}#appContainer .user-header span{color:#fff}.logout-btn{padding:6px 12px;background:transparent;color:#666;border:1px solid #ddd;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;width:auto}#appContainer .logout-btn{background:#dc2626;border-color:#dc2626;color:#fff}#appContainer .logout-btn:hover{background:#b91c1c;border-color:#b91c1c;color:#fff}.logout-btn:hover{background:#f5f5f5;color:#333;border-color:#ccc}.header-icons{display:flex;gap:8px}.header-icon-btn{width:36px;height:36px;padding:8px;background:transparent;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#ffffffb3;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.header-icon-btn:hover{background:#ffffff1a;border-color:#ffffff4d;color:#fff}.header-icon-btn.active{background:#2563eb;border-color:#2563eb;color:#fff}.header-icon-btn svg{width:20px;height:20px}.messages-layout{display:flex;gap:20px;min-height:500px}.vendor-threads{width:220px;flex-shrink:0;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;display:flex;flex-direction:column}.vendor-threads h3{padding:15px;margin:0;background:#f8f8f8;border-bottom:1px solid #eee;font-size:14px;color:#333}.thread-list{flex:1;overflow-y:auto}.thread-item{display:flex;flex-direction:column;width:100%;padding:12px 15px;border:none;border-bottom:1px solid #eee;background:#fff;cursor:pointer;text-align:left}.thread-item:hover{background:#f5f5f5}.thread-item.active{background:#eff6ff;border-left:3px solid #2563eb}.thread-name{font-weight:600;color:#333;font-size:14px}.thread-type{font-size:12px;color:#666;margin-top:2px}.conversation-area{flex:1;display:flex;flex-direction:column;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden}.conversation-header{padding:15px;background:#f8f8f8;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center;color:#333}.conversation-header strong{font-size:15px}.conversation-header span{color:#666;font-size:13px}.message-list{flex:1;padding:15px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;min-height:300px}.message{max-width:75%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.4}.message.outbound{align-self:flex-end;background:#2563eb;color:#fff}.message.inbound{align-self:flex-start;background:#e5e7eb;color:#333}.message-time{font-size:11px;opacity:.7;margin-top:4px}.message-input-area{display:flex;gap:10px;padding:15px;border-top:1px solid #eee}.message-input-area textarea{flex:1;padding:10px;border:1px solid #ddd;border-radius:6px;resize:none;height:44px;font-size:14px;margin:0}.message-input-area .send-btn{width:auto;padding:10px 20px;height:44px}.message-input-area .call-btn{width:44px;height:44px;padding:0;background:#10b981;border:none;border-radius:6px;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;text-decoration:none;flex-shrink:0}.message-input-area .call-btn:hover{background:#059669}@media(max-width:600px){.logo{max-width:275px}.user-header{gap:8px}.user-header span{font-size:12px;max-width:120px}.header-icons{gap:4px}.header-icon-btn{width:32px;height:32px;padding:6px}.header-icon-btn svg{width:18px;height:18px}.logout-btn{padding:4px 8px;font-size:12px}.messages-layout{flex-direction:column;min-height:auto}.vendor-threads{width:100%;max-height:200px}.conversation-area{min-height:400px}}.card{background:#fff;border-radius:8px;padding:20px;margin-bottom:20px;box-shadow:0 2px 4px #0000001a}label{display:block;margin-bottom:5px;font-weight:600;color:#333}input[type=text],input[type=date],input[type=number]{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:16px;margin-bottom:15px}.field-row{display:flex;gap:15px}.field-row .field-group{flex:1}.vendor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.vendor-option{display:flex;align-items:center;padding:10px;background:#f8f8f8;border-radius:4px;cursor:pointer}.vendor-option:hover{background:#e8f4e8}.vendor-option input{margin-right:10px;width:18px;height:18px}button{width:100%;padding:15px;background:#2563eb;color:#fff;border:none;border-radius:4px;font-size:16px;font-weight:600;cursor:pointer}button:hover{background:#1d4ed8}#results{display:none}.schedule-item{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #eee}.schedule-item:last-child{border-bottom:none}.schedule-day{font-weight:600;color:#2563eb}.schedule-task{color:#333}.schedule-date{color:#666;font-size:14px}.schedule-vendor-info{font-size:13px;color:#666;margin-top:2px}.copy-section{margin-top:15px}textarea{width:100%;height:150px;padding:10px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;resize:vertical}.copy-btn{margin-top:10px;background:#10b981}.copy-btn:hover{background:#059669}.reset-btn{margin-top:10px;background:#6b7280}.reset-btn:hover{background:#4b5563}.btn-danger{background:#ef4444}.btn-danger:hover{background:#dc2626}.nav-tabs{display:flex;gap:10px;margin-bottom:20px}.nav-tab{flex:1 1 0;min-width:0;padding:12px 4px;background:#fff;border:2px solid #e5e7eb;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;color:#666;text-align:center;display:flex;justify-content:center;align-items:center}#appContainer .nav-tab:not(.active){color:#333}.nav-tab:hover{border-color:#2563eb;color:#2563eb}.nav-tab.active{background:#2563eb;border-color:#2563eb;color:#fff}.vendor-list{margin-top:15px}.vendor-item{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#f8f8f8;border-radius:4px;margin-bottom:8px}.vendor-item:last-child{margin-bottom:0}.vendor-info{flex:1}.vendor-name{font-weight:600;color:#333}.vendor-phone{font-size:14px;color:#666}.vendor-type-badge{font-size:11px;padding:2px 8px;background:#e5e7eb;border-radius:12px;color:#666;margin-left:8px}.vendor-actions{display:flex;gap:8px}.vendor-actions button{width:auto;padding:6px 12px;font-size:12px}.delete-btn{background:#ef4444}.delete-btn:hover{background:#dc2626}.edit-btn{background:#f59e0b}.edit-btn:hover{background:#d97706}select{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:16px;margin-bottom:15px;background:#fff}input[type=tel]{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:16px;margin-bottom:15px}.empty-state{text-align:center;padding:30px;color:#666}.schedule-vendor-contact{font-size:12px;color:#666;margin-left:10px}.lead-time{font-size:12px;color:#10b981;margin-left:10px}.timeline-bar{display:flex;margin-bottom:20px;background:#e5e7eb;border-radius:4px;overflow:hidden;height:30px}.timeline-segment{display:flex;align-items:center;justify-content:center;font-size:11px;color:#fff;font-weight:500}.history-card{background:#f8f8f8;border-radius:4px;padding:15px;margin-bottom:12px}.history-card:last-child{margin-bottom:0}.history-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.history-unit{font-size:18px;font-weight:600;color:#2563eb}.history-property{color:#666;font-weight:500}.history-created{font-size:12px;color:#999}.history-dates{font-size:14px;color:#666;margin-bottom:8px}.history-vendors{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.history-vendor-tag{font-size:11px;padding:3px 8px;background:#e5e7eb;border-radius:12px;color:#666}.history-actions{display:flex;gap:8px}.history-actions button{flex:1;padding:8px 12px;font-size:13px}.view-btn{background:#2563eb}.view-btn:hover{background:#1d4ed8}.sort-toggle-btn{width:auto;padding:6px 12px;background:#fff;color:#666;border:1px solid #ddd;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;margin-bottom:15px}.sort-toggle-btn:hover{background:#f8f8f8;border-color:#ccc;color:#333}.history-controls{display:flex;gap:10px;margin-bottom:15px;align-items:center}.history-controls select{flex:1;padding:8px 12px;margin-bottom:0}.history-controls .sort-toggle-btn{margin-bottom:0}.punchlist-textarea{width:100%;min-height:150px;padding:12px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:15px;resize:vertical;line-height:1.5}.punchlist-checklist{margin-top:10px}.punchlist-item{display:flex;align-items:flex-start;padding:10px 12px;background:#f8f8f8;border-radius:4px;margin-bottom:8px;cursor:pointer}.punchlist-item:hover{background:#f0f0f0}.punchlist-item.completed{background:#e8f5e9}.punchlist-item.completed .punchlist-text{text-decoration:line-through;color:#888}.punchlist-item input[type=checkbox]{width:20px;height:20px;margin-right:12px;flex-shrink:0;cursor:pointer}.punchlist-text{flex:1;font-size:15px;color:#333;line-height:1.4}.schedule-edit-item{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #eee;gap:15px}.schedule-edit-item:last-child{border-bottom:none}.schedule-edit-task{flex:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.schedule-task-select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;min-width:180px}.schedule-task-select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.schedule-date-input{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;min-width:150px}.schedule-date-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.schedule-edit-controls{display:flex;align-items:center;gap:10px}.schedule-delete-btn{padding:8px 12px;background:#ef4444;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:12px}.schedule-delete-btn:hover{background:#dc2626}.punchlist-edit-item{display:flex;align-items:center;gap:10px;margin-bottom:10px}input.punchlist-edit-input[type=text]{flex:1 1 auto;width:auto;min-width:200px;padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;box-sizing:border-box}input.punchlist-edit-input[type=text]:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.punchlist-delete-btn{width:28px;height:28px;min-width:28px;max-width:28px;padding:0;background:#ef4444;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:600;font-size:14px;flex:0 0 28px;display:flex;align-items:center;justify-content:center;line-height:1}.punchlist-delete-btn:hover{background:#dc2626}.resurface-details{margin-left:28px;margin-top:8px;padding:10px;background:#f0f0f0;border-radius:4px;display:none}.resurface-details.show{display:block}.resurface-details label{font-size:14px;font-weight:500;margin-bottom:8px}.resurface-details input[type=number]{margin-bottom:8px}.resurface-checkbox-group{display:flex;gap:15px;margin-top:8px}.resurface-checkbox-group label{display:flex;align-items:center;font-weight:400;margin-bottom:0}.resurface-checkbox-group input[type=checkbox]{margin-right:6px;width:16px;height:16px}.modal-overlay{display:none;position:fixed;inset:0;background:#00000080;z-index:1000;padding:20px;overflow-y:auto}.modal-content{max-width:600px;margin:20px auto}.sms-section{margin-top:20px}.send-sms-btn{width:100%;padding:14px;background:#10b981;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s}.send-sms-btn:hover:not(:disabled){background:#059669;transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.send-sms-btn:disabled{background:#9ca3af;cursor:not-allowed;transform:none}.send-sms-btn.success{background:#10b981;cursor:default}.send-sms-btn.error{background:#ef4444}.send-sms-btn.error:hover:not(:disabled){background:#dc2626}.send-sms-btn.partial{background:#f59e0b}.send-sms-btn.partial:hover:not(:disabled){background:#d97706}#smsStatusList{margin-bottom:15px}.sms-status-item{display:flex;justify-content:space-between;align-items:center;padding:12px;margin-bottom:8px;background:#f9fafb;border-radius:6px;border-left:4px solid #e5e7eb;transition:all .3s}.sms-status-item.pending{border-left-color:#9ca3af}.sms-status-item.sending{border-left-color:#3b82f6;background:#eff6ff}.sms-status-item.sent{border-left-color:#10b981;background:#ecfdf5}.sms-status-item.failed{border-left-color:#ef4444;background:#fef2f2}.sms-status-item.skipped{border-left-color:#f59e0b;background:#fffbeb}.sms-status-item .vendor-name{font-weight:600;color:#374151}.sms-status-item .status-badge{font-size:13px;padding:4px 10px;border-radius:12px;background:#e5e7eb;color:#6b7280;font-weight:500}.sms-status-item.sending .status-badge{background:#dbeafe;color:#1e40af}.sms-status-item.sent .status-badge{background:#d1fae5;color:#065f46}.sms-status-item.failed .status-badge{background:#fee2e2;color:#991b1b}.sms-status-item.skipped .status-badge{background:#fef3c7;color:#92400e}.sms-error{padding:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;color:#991b1b;font-size:14px;margin-top:10px}.btn-loading{position:relative;color:transparent!important;pointer-events:none}.btn-loading:after{content:"";position:absolute;width:18px;height:18px;top:50%;left:50%;margin-left:-9px;margin-top:-9px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:btn-spin .7s linear infinite}@keyframes btn-spin{to{transform:rotate(360deg)}}@media(max-width:480px){.punchlist-edit-item{flex-wrap:nowrap}input.punchlist-edit-input[type=text]{min-width:0;flex:1 1 0}.schedule-edit-item{flex-direction:column;align-items:stretch;gap:10px}.schedule-edit-task{flex-direction:column;align-items:stretch;gap:8px}.schedule-task-select,.schedule-date-input{min-width:0;width:100%}.schedule-edit-controls{justify-content:flex-end}}
