.layout{flex-direction:column;min-height:100vh;display:flex}.header{color:#e0e0e0;background:#1a1a2e;border-bottom:1px solid #333;justify-content:space-between;align-items:center;height:88px;padding:0 1.5rem;display:flex}.header .logo{align-items:center;text-decoration:none;display:flex}.header .logo-img{width:auto;height:76px}.header nav{align-items:center;gap:1rem;display:flex}.header nav a{color:#b0bec5;font-size:.9rem;text-decoration:none}.header nav a:hover{color:#fff}.user-info{color:#78909c;font-size:.85rem}.btn-logout{color:#ef5350;cursor:pointer;background:0 0;border:1px solid #ef5350;border-radius:4px;padding:.3rem .75rem;font-size:.85rem}.btn-logout:hover{color:#fff;background:#ef5350}.main{color:#e0e0e0;background:#0f0f23;flex:1;padding:2rem}.home{background:url(/backing.png) 50%/cover no-repeat fixed;flex-direction:column;justify-content:center;align-items:center;min-height:calc(100vh - 88px);margin:-2rem;padding:2rem;display:flex;position:relative}.home:before{content:"";background:#0f0f23bf;position:absolute;inset:0}.home>*{z-index:1;width:100%;max-width:900px;position:relative}.hero-row{align-items:stretch;gap:3rem;display:flex}.hero-row .hero-blurb{flex:1}.hero-row .login-form{background:#1a1a2ed9;border:1px solid #333;border-radius:8px;flex:0 0 320px;padding:2rem}.login-title{color:#e0e0e0;margin-bottom:.5rem;font-size:1.25rem}@media (width<=768px){.hero-row{flex-direction:column}.hero-row .login-form{flex:none;width:100%}}.home h1{color:#4fc3f7;margin-bottom:.25rem;font-size:2.5rem}.tagline{color:#e0e0e0;margin-bottom:1.5rem;font-size:1.25rem;font-weight:300}.hero-blurb p{color:#b0bec5;margin-bottom:1rem;line-height:1.6}.features{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.features li{color:#cfd8dc;padding-left:1.5rem;font-size:.95rem;position:relative}.features li:before{content:"✓";color:#4fc3f7;font-weight:700;position:absolute;left:0}.login-form{flex-direction:column;gap:1rem;display:flex}.field{flex-direction:column;gap:.3rem;display:flex}.field label{color:#90a4ae;font-size:.85rem}.field input{color:#e0e0e0;background:#1a1a2e;border:1px solid #333;border-radius:4px;padding:.6rem .75rem;font-size:1rem}.field input:focus{border-color:#4fc3f7;outline:none}.login-form button{color:#0f0f23;cursor:pointer;background:#4fc3f7;border:none;border-radius:4px;padding:.7rem;font-size:1rem;font-weight:600}.login-form button:hover{background:#29b6f6}.login-form button:disabled{opacity:.6;cursor:not-allowed}.error{color:#ef5350;font-size:.9rem}.quick-links{gap:1rem;margin-top:1rem;display:flex}.quick-links a{color:#4fc3f7;border:1px solid #4fc3f7;border-radius:4px;padding:.5rem 1rem;text-decoration:none}.quick-links a:hover{color:#0f0f23;background:#4fc3f7}.admin{max-width:700px;margin:0 auto}.admin h1{color:#4fc3f7;margin-bottom:1.5rem}.admin table{border-collapse:collapse;width:100%}.admin th,.admin td{text-align:left;border-bottom:1px solid #333;padding:.75rem}.admin th{color:#90a4ae;text-transform:uppercase;font-size:.85rem}.admin select{color:#e0e0e0;background:#1a1a2e;border:1px solid #333;border-radius:4px;padding:.4rem}.btn-delete:disabled{opacity:.3;cursor:not-allowed}.modal-overlay{z-index:200;background:#000000b3;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#1a1a2e;border:1px solid #333;border-radius:8px;flex-direction:column;width:90vw;max-width:900px;max-height:85vh;display:flex;overflow:hidden}.modal-header{border-bottom:1px solid #333;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex}.modal-header h2{color:#4fc3f7;margin:0;font-size:1.1rem}.modal-body{flex:1;gap:1.5rem;padding:1.5rem;display:flex;overflow-y:auto}.modal-form-section{flex-direction:column;flex:1;gap:1rem;display:flex}.modal-form-section .field{flex-direction:column;gap:.3rem;display:flex}.modal-form-section .field label{color:#90a4ae;font-size:.85rem}.modal-form-section .field input,.modal-form-section .field select{color:#e0e0e0;background:#0f0f23;border:1px solid #333;border-radius:4px;padding:.5rem .6rem;font-size:.95rem}.modal-form-section .field input:disabled{opacity:.5}.modal-form-section .field input:focus,.modal-form-section .field select:focus{border-color:#4fc3f7;outline:none}.modal-actions{gap:.75rem;margin-top:.5rem;display:flex}.btn-send{color:#0f0f23;cursor:pointer;background:#66bb6a;border:none;border-radius:4px;padding:.5rem 1.25rem;font-weight:600}.btn-send:hover:not(:disabled){background:#4caf50}.btn-send:disabled{opacity:.4;cursor:not-allowed}.modal-preview-section{flex-direction:column;flex:1;min-width:0;display:flex}.modal-preview-section h3{color:#4fc3f7;margin:0 0 .75rem;font-size:1rem}.modal-preview-section .preview-content{color:#222;background:#fff;border-radius:6px;flex:1;min-height:100px;padding:1.5rem;overflow-y:auto}.modal-preview-section .preview-text{white-space:pre-wrap;color:#e0e0e0;background:#0f0f23;border:1px solid #333;border-radius:6px;flex:1;margin:0;padding:1.5rem;font-family:inherit}.modal-preview-section .empty{color:#78909c;text-align:center;background:#0f0f23;border:1px solid #333;border-radius:6px;flex:1;padding:2rem}.customers{max-width:900px;margin:0 auto;position:relative}.toast{z-index:100;border-radius:6px;padding:.75rem 1.25rem;font-size:.9rem;font-weight:500;animation:.3s toast-in;position:fixed;top:72px;right:1.5rem}.toast-success{color:#a5d6a7;background:#1b5e20;border:1px solid #388e3c}.toast-error{color:#ef9a9a;background:#b71c1c;border:1px solid #d32f2f}@keyframes toast-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.customers-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.customers-header h1{color:#4fc3f7}.btn-add{color:#0f0f23;cursor:pointer;background:#4fc3f7;border:none;border-radius:4px;padding:.5rem 1rem;font-weight:600}.btn-add:hover{background:#29b6f6}.customer-form{background:#1a1a2e;border:1px solid #333;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.customer-form h2{color:#4fc3f7;margin-bottom:1rem;font-size:1.1rem}.form-grid{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.customer-form .field{flex-direction:column;gap:.3rem;display:flex}.customer-form .field label{color:#90a4ae;font-size:.85rem}.customer-form .field textarea,.customer-form .field input[type=text],.customer-form .field input[type=email],.customer-form .field input[type=date]{color:#e0e0e0;background:#0f0f23;border:1px solid #333;border-radius:4px;padding:.5rem .6rem;font-size:.95rem}.customer-form .field input:focus,.customer-form .field textarea:focus{border-color:#4fc3f7;outline:none}.customer-form .field textarea{resize:vertical;font-family:inherit}.field.checkbox label{color:#e0e0e0;flex-direction:row;align-items:center;gap:.5rem;padding-top:1.2rem;display:flex}.form-actions{gap:.75rem;margin-top:1rem;display:flex}.form-actions button[type=submit]{color:#0f0f23;cursor:pointer;background:#4fc3f7;border:none;border-radius:4px;padding:.5rem 1.25rem;font-weight:600}.form-actions button[type=submit]:hover{background:#29b6f6}.btn-cancel{color:#78909c;cursor:pointer;background:0 0;border:1px solid #78909c;border-radius:4px;padding:.5rem 1rem}.btn-cancel:hover{color:#e0e0e0;border-color:#e0e0e0}.customers table{border-collapse:collapse;width:100%}.customers th,.customers td{text-align:left;border-bottom:1px solid #333;padding:.75rem}.customers th{color:#90a4ae;text-transform:uppercase;font-size:.85rem}.actions{gap:.5rem;display:flex}.btn-edit{color:#4fc3f7;cursor:pointer;background:0 0;border:1px solid #4fc3f7;border-radius:4px;padding:.3rem .6rem;font-size:.8rem}.btn-edit:hover{color:#0f0f23;background:#4fc3f7}.btn-email{color:#66bb6a;cursor:pointer;background:0 0;border:1px solid #66bb6a;border-radius:4px;padding:.3rem .6rem;font-size:.8rem}.btn-email:hover{color:#0f0f23;background:#66bb6a}.btn-delete{color:#ef5350;cursor:pointer;background:0 0;border:1px solid #ef5350;border-radius:4px;padding:.3rem .6rem;font-size:.8rem}.btn-delete:hover{color:#fff;background:#ef5350}.empty{text-align:center;color:#78909c;padding:2rem!important}.templates{max-width:1400px;margin:0 auto;position:relative}.templates-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.templates-header h1{color:#4fc3f7}.template-form{background:#1a1a2e;border:1px solid #333;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.template-form h2{color:#4fc3f7;margin-bottom:1rem;font-size:1.1rem}.form-fields{flex-direction:column;gap:1rem;display:flex}.template-form .field{flex-direction:column;gap:.3rem;display:flex}.template-form .field label{color:#90a4ae;font-size:.85rem}.template-form .field input,.template-form .field textarea{color:#e0e0e0;background:#0f0f23;border:1px solid #333;border-radius:4px;padding:.5rem .6rem;font-size:.95rem}.template-form .field input:focus,.template-form .field textarea:focus{border-color:#4fc3f7;outline:none}.template-form .field textarea{resize:vertical;font-family:inherit}.template-form .field textarea.html-editor{font-family:Consolas,Monaco,monospace;font-size:.85rem}.templates-body{align-items:flex-start;gap:1.5rem;display:flex}.templates-list{flex:1;min-width:0}.templates-body.with-preview .templates-list,.templates-body.with-preview .preview-panel{flex:1}.templates table{border-collapse:collapse;width:100%}.active-row{background:#4fc3f714}.templates th,.templates td{text-align:left;border-bottom:1px solid #333;padding:.75rem}.templates th{color:#90a4ae;text-transform:uppercase;font-size:.85rem}.btn-preview{color:#ab47bc;cursor:pointer;background:0 0;border:1px solid #ab47bc;border-radius:4px;padding:.3rem .6rem;font-size:.8rem}.btn-preview:hover{color:#fff;background:#ab47bc}.preview-panel{background:#1a1a2e;border:1px solid #333;border-radius:8px;position:sticky;top:1rem;overflow:hidden}.preview-header{border-bottom:1px solid #333;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex}.preview-header h3{color:#4fc3f7;margin:0;font-size:1rem}.preview-content{color:#222;background:#fff;min-height:100px;padding:1.5rem}.preview-text{white-space:pre-wrap;color:#e0e0e0;margin:0;padding:1.5rem;font-family:inherit}.variable-hint{background:#4fc3f70d;border:1px solid #263238;border-radius:4px;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:1rem;padding:.75rem;display:flex}.variable-hint .hint-label{color:#78909c;margin-right:.25rem;font-size:.8rem}.variable-hint code{color:#ab47bc;background:#0f0f23;border:1px solid #333;border-radius:3px;padding:.15rem .4rem;font-size:.75rem}.reporting-settings{max-width:900px;margin:0 auto;position:relative}.reporting-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.reporting-header h1{color:#4fc3f7}.reporting-form{background:#1a1a2e;border:1px solid #333;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.reporting-form h2{color:#4fc3f7;margin-bottom:1rem;font-size:1.1rem}.reporting-form .form-grid{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.reporting-form .field{flex-direction:column;gap:.3rem;display:flex}.reporting-form .field label{color:#90a4ae;font-size:.85rem}.reporting-form .field input,.reporting-form .field select{color:#e0e0e0;background:#0f0f23;border:1px solid #333;border-radius:4px;padding:.5rem .6rem;font-size:.95rem}.reporting-form .field input:focus,.reporting-form .field select:focus{border-color:#4fc3f7;outline:none}.reporting-settings table{border-collapse:collapse;width:100%}.reporting-settings th,.reporting-settings td{text-align:left;border-bottom:1px solid #333;padding:.75rem}.reporting-settings th{color:#90a4ae;text-transform:uppercase;font-size:.85rem}.reporting-settings .empty{text-align:center;color:#78909c;padding:2rem!important}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{color:#e0e0e0;background:#0f0f23;font-family:system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.5}a{color:inherit;text-decoration:none}
