*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f7f5f3;color:#2a2320}a{color:inherit}button{font-family:inherit;cursor:pointer;border:none;border-radius:8px;padding:.65rem 1.1rem;background:#8a4b3b;color:#fff;font-size:.95rem}button:disabled{opacity:.6;cursor:not-allowed}.link-button{background:none;color:#8a4b3b;padding:.4rem}input,select,textarea{font-family:inherit;font-size:1rem;padding:.6rem .7rem;border:1px solid #d9cfc7;border-radius:8px;width:100%}label{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;color:#5c5049;margin-bottom:.8rem}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem}.auth-card{background:#fff;border-radius:16px;padding:2rem;width:100%;max-width:380px;box-shadow:0 10px 30px #0000000f}.auth-card h1{margin:0 0 .3rem;font-size:1.4rem}.auth-subtitle{color:#8a7d73;margin:0 0 1.2rem;font-size:.9rem}.auth-error{background:#fbe6e2;color:#a3372a;padding:.6rem .8rem;border-radius:8px;font-size:.85rem;margin-bottom:1rem}.auth-footer{margin-top:1.25rem;padding-top:1.1rem;border-top:1px solid #ece4dc;font-size:.95rem;text-align:center;color:#5c5049}.auth-footer a{color:#8a4b3b;font-weight:700;text-decoration:underline}.app-shell{min-height:100vh}.app-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;background:#fff;border-bottom:1px solid #ece4dc;position:sticky;top:0}.app-title{font-weight:700;color:#8a4b3b}.app-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;font-size:.9rem}.app-main{padding:1.25rem;max-width:720px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.page-header h2{margin:0}.view-toggle{display:flex;gap:.4rem;margin-bottom:1rem}.toggle-btn{background:#fff;color:#5c5049;border:1px solid #d9cfc7;padding:.4rem .9rem;border-radius:8px;font-size:.85rem}.toggle-btn-active{background:#8a4b3b;color:#fff;border-color:#8a4b3b}.kanban-board{display:grid;grid-template-columns:repeat(4,minmax(200px,1fr));gap:.75rem;overflow-x:auto}.kanban-column{background:#f2ece6;border-radius:12px;padding:.75rem;min-height:200px;border:2px solid transparent}.kanban-column-over{border-color:#8a4b3b}.kanban-column-title{margin:0 0 .6rem;font-size:.85rem;color:#5c5049}.kanban-cards{display:flex;flex-direction:column;gap:.5rem}.kanban-card{display:flex;flex-direction:column;background:#fff;border-radius:8px;padding:.6rem .7rem;text-decoration:none;cursor:grab}.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;background:#fff;padding:1rem;border-radius:12px;margin-bottom:1.25rem}.filters label{margin-bottom:0}.inline-form{background:#fff;padding:1rem;border-radius:12px;margin-bottom:1.25rem}.inline-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}.lead-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.6rem}.lead-list li a{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:.9rem 1rem;border-radius:12px;text-decoration:none;gap:1rem}.lead-name{font-weight:600}.lead-meta{color:#8a7d73;font-size:.8rem;white-space:nowrap}.widget-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}.widget-list li{border-bottom:1px solid #ece4dc}.widget-list li:last-child{border-bottom:none}.widget-list li a{display:flex;justify-content:space-between;align-items:center;padding:.6rem 0;text-decoration:none;gap:1rem}.due-badge{background:#f2ece6;color:#5c5049;font-size:.75rem;padding:.25rem .6rem;border-radius:999px;white-space:nowrap}.due-badge-overdue{background:#fbe6e2;color:#a3372a}.empty-state{color:#8a7d73;text-align:center;padding:2rem 0}.lead-detail{background:#fff;padding:1.25rem;border-radius:12px}.lead-fields p{margin:.35rem 0}.timeline{list-style:none;padding:0;margin:.5rem 0 1.25rem;display:flex;flex-direction:column;gap:.6rem}.timeline li{border-left:2px solid #e4d9cf;padding-left:.8rem}.timeline-date{display:block;font-size:.75rem;color:#8a7d73}.note-form{display:flex;flex-direction:column;gap:.6rem}.note-form textarea{min-height:80px;resize:vertical}.status-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.25rem}.status-btn{background:#fff;color:#5c5049;border:1px solid #d9cfc7;padding:.45rem .9rem;border-radius:999px;font-size:.85rem}.status-btn-active{background:#8a4b3b;color:#fff;border-color:#8a4b3b}.card-section{background:#fff;padding:1.25rem;border-radius:12px;margin-bottom:1.25rem}.card-section h3{margin-top:0}.section-hint{color:#8a7d73;font-size:.85rem;margin-top:-.5rem}.status-ok{color:#2f6e3c;font-weight:600}.status-pending{color:#8a7d73}.qr-image{display:block;width:220px;max-width:100%;margin:1rem 0;border-radius:8px;border:1px solid #ece4dc}.qr-hint{font-size:.85rem;color:#8a7d73}.service-type-list{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-direction:column;gap:.5rem}.service-type-list li{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #ece4dc}.conversation-preview{display:block;font-size:.8rem;color:#8a7d73;margin-top:.15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.conversation-detail{background:#fff;padding:1.25rem;border-radius:12px;display:flex;flex-direction:column;height:calc(100vh - 8rem)}.message-thread{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem;padding:.5rem 0}.message-bubble{max-width:75%;padding:.5rem .8rem;border-radius:12px;font-size:.9rem}.message-bubble p{margin:0}.message-in{align-self:flex-start;background:#f2ece6}.message-out{align-self:flex-end;background:#8a4b3b;color:#fff}.message-time{display:block;font-size:.7rem;opacity:.7;margin-top:.2rem}.message-form{display:flex;gap:.6rem;margin-top:.75rem}.message-form input{flex:1}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin-bottom:1.25rem}.stat-tile{background:#fff;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.25rem}.stat-value{font-size:1.7rem;font-weight:700;color:#8a4b3b}.stat-label{font-size:.8rem;color:#8a7d73}.bar-list{display:flex;flex-direction:column;gap:.6rem}.bar-row{display:grid;grid-template-columns:8.5rem 1fr 2.5rem;align-items:center;gap:.6rem;font-size:.85rem}.bar-label{color:#5c5049;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{background:#f2ece6;border-radius:999px;height:10px;overflow:hidden}.bar-fill{height:100%;border-radius:999px;min-width:4px}.bar-value{text-align:right;color:#5c5049;font-variant-numeric:tabular-nums}.bar-brand{background:#8a4b3b}.bar-neutral{background:#a89c92}.goal-list{display:flex;flex-direction:column;gap:.9rem}.goal-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.3rem;font-size:.85rem}.funnel{display:flex;flex-direction:column;gap:.9rem}.funnel-bar-track{background:#f2ece6;border-radius:8px;height:14px;overflow:hidden}.funnel-bar-fill{height:100%;background:#8a4b3b;border-radius:8px;min-width:4px}.funnel-stage-label{display:flex;justify-content:space-between;font-size:.85rem;margin-top:.3rem;color:#5c5049}.timeline-chart{display:flex;align-items:flex-end;gap:3px;height:100px}.timeline-bar{flex:1;background:#8a4b3b;border-radius:2px 2px 0 0;min-height:3px}.bar-warning{background:#c68a3d}.bar-good{background:#2f6e3c}.bar-critical{background:#a3372a}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);background:#2a2320;color:#fff;padding:.75rem 1.25rem;border-radius:999px;font-size:.9rem;box-shadow:0 10px 30px #00000026;animation:toast-in .22s ease-out;z-index:50;max-width:calc(100vw - 2rem);text-align:center}.toast-success{background:#2f6e3c}.toast-error{background:#a3372a}.toast-celebration{background:#8a4b3b;font-weight:600;animation:toast-in .22s ease-out,toast-pop .4s ease-out}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}@keyframes toast-pop{0%{transform:translate(-50%) scale(1)}30%{transform:translate(-50%) scale(1.06)}to{transform:translate(-50%) scale(1)}}.onboarding-progress{margin-bottom:.75rem}.onboarding-steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.onboarding-step{display:flex;align-items:center;gap:.6rem;font-size:.9rem}.onboarding-step a{color:#8a4b3b;font-weight:600;text-decoration:none}.onboarding-step-done{color:#8a7d73;text-decoration:line-through}.onboarding-check{display:inline-flex;align-items:center;justify-content:center;width:1.3rem;height:1.3rem;border-radius:50%;border:1px solid #d9cfc7;font-size:.75rem;flex-shrink:0}.onboarding-step-done .onboarding-check{background:#2f6e3c;border-color:#2f6e3c;color:#fff}.recurrence-preview{display:block}.kanban-card{transition:box-shadow .15s ease}.kanban-card-landed{animation:kanban-land .22s ease-out}@keyframes kanban-land{0%{transform:scale(.94);opacity:.6}60%{transform:scale(1.03)}to{transform:scale(1);opacity:1}}.status-ok-animated{animation:connect-in .4s ease-out}@keyframes connect-in{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8a4b3b;margin-right:.4rem;animation:unread-pulse 1.6s ease-in-out infinite}@keyframes unread-pulse{0%,to{opacity:1}50%{opacity:.4}}@media (prefers-reduced-motion: reduce){.toast,.toast-celebration,.kanban-card-landed,.status-ok-animated,.unread-dot{animation:none}}@media (max-width: 480px){.app-main{padding:1rem .85rem}.app-header{flex-direction:column;align-items:flex-start;gap:.5rem}.app-header nav{font-size:.82rem;gap:.4rem .7rem}.kanban-board{grid-template-columns:repeat(4,minmax(160px,1fr))}}
