:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;--blue:#2563eb;--border:#e2e8f0;--ink:#172033;--muted:#64748b;--navy:#0f172a;--page:#f7f9fc;--surface:#fff;font-family:Manrope,Segoe UI,Inter,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--page);min-width:320px}body{background:var(--page);min-width:320px;min-height:100vh;margin:0}button{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}.auth-screen{background:var(--page);place-items:center;min-height:100vh;padding:24px;display:grid}.configuration-screen{place-items:center;min-height:100vh;padding:24px;display:grid}.configuration-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:min(100%,520px);padding:32px}.configuration-card h1,.configuration-card p{margin:0}.configuration-card p{color:var(--muted);margin-top:12px;line-height:1.6}.auth-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:40px;width:min(100%,440px);padding:40px;display:grid;box-shadow:0 18px 50px #0f172a14}.brand{width:fit-content;color:inherit;align-items:center;gap:12px;text-decoration:none;display:inline-flex}.brand-mark{width:38px;height:38px;color:var(--blue)}.brand-mark path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:5px}.brand-mark path:first-child{stroke-width:6px}.brand strong,.brand small{text-transform:uppercase;display:block}.brand strong{letter-spacing:.18em;font-size:17px;font-weight:800;line-height:1}.brand small{color:#7aa7ff;letter-spacing:.17em;margin-top:5px;font-size:10px;font-weight:750}.auth-copy{gap:10px;display:grid}.eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:750}.auth-copy h1,.page-header h1,.empty-state h2{color:var(--ink);margin:0}.auth-copy h1{font-size:clamp(28px,7vw,38px);line-height:1.15}.auth-copy p,.empty-state p{color:var(--muted);margin:0;line-height:1.6}.auth-card>small{color:var(--muted);line-height:1.5}.loading-card{min-height:280px}.access-icon{width:48px;height:48px;color:var(--blue);background:#eff6ff;border-radius:10px;place-items:center;display:grid}.access-icon svg{width:24px;height:24px}.microsoft-button{background:var(--surface);min-height:48px;color:var(--ink);border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;gap:12px;padding:0 18px;font-weight:700;display:inline-flex}.microsoft-button:hover{background:#f8fafc;border-color:#94a3b8}.microsoft-button:focus-visible,.nav-item:focus-visible,.sign-out:focus-visible{outline-offset:3px;outline:3px solid #2563eb40}.microsoft-mark{grid-template-columns:repeat(2,8px);gap:2px;display:grid}.microsoft-mark span{width:8px;height:8px}.microsoft-mark span:first-child{background:#f25022}.microsoft-mark span:nth-child(2){background:#7fba00}.microsoft-mark span:nth-child(3){background:#00a4ef}.microsoft-mark span:nth-child(4){background:#ffb900}.admin-app{grid-template-columns:224px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--navy);color:#f8fafc;flex-direction:column;height:100vh;padding:28px 20px 20px;display:flex;position:sticky;top:0}.sidebar nav{margin-top:48px}.nav-item,.sign-out{color:#cbd5e1;border-radius:6px;align-items:center;gap:11px;min-height:44px;font-size:14px;font-weight:700;text-decoration:none;display:flex}.nav-item{color:#fff;background:#ffffff14;padding:0 13px}.nav-item svg,.sign-out svg{width:18px;height:18px}.sign-out{background:0 0;border:0;margin-top:auto;padding:0 13px}.staff-identity{color:#f8fafc;gap:4px;margin-top:auto;padding:0 13px 16px;font-size:13px;display:grid}.staff-identity small{color:#94a3b8}.staff-identity+.sign-out{margin-top:0}.sign-out:hover{color:#fff;background:#ffffff0f}.main-content{width:min(100%,1120px);min-width:0;margin:0 auto;padding:64px clamp(24px,6vw,80px)}.page-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:28px;display:flex}.page-header>div{gap:9px;display:grid}.page-header p,.panel p{color:var(--muted);margin:0;line-height:1.55}.secondary-button,.primary-button{border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-weight:700;display:inline-flex}.secondary-button{border:1px solid var(--border);background:var(--surface);color:var(--ink)}.primary-button{border:1px solid var(--blue);background:var(--blue);color:#fff}.secondary-button svg,.primary-button svg,.back-link svg{width:17px;height:17px}button:disabled{cursor:not-allowed;opacity:.58}.lead-list{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin-top:28px;display:grid;overflow:hidden}.lead-row{border-bottom:1px solid var(--border);color:inherit;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:20px 22px;text-decoration:none;display:grid}.lead-row:last-child{border-bottom:0}.lead-row:hover{background:#f8fafc}.lead-main{min-width:0}.lead-name{align-items:baseline;gap:10px;display:flex}.lead-name strong{font-size:16px}.lead-name span,.lead-meta time{color:var(--muted);font-size:12px}.lead-main p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:7px 0 0;font-size:13px;overflow:hidden}.lead-meta{justify-content:flex-end;align-items:center;gap:8px;display:flex}.badge{color:#475569;white-space:nowrap;background:#eef2f7;border-radius:999px;align-items:center;min-height:26px;padding:0 9px;font-size:11px;font-weight:750;display:inline-flex}.priority-high,.priority-urgent,.status-needs_review{color:#be123c;background:#fff1f2}.priority-normal,.status-new,.status-qualified{color:#1d4ed8;background:#eff6ff}.priority-low,.status-contacted{color:#475569;background:#f1f5f9}.status-won{color:#047857;background:#ecfdf5}.status-lost,.status-spam{color:#64748b;background:#f1f5f9}.status-panel,.error-panel{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:10px;align-items:center;gap:12px;margin-top:28px;padding:28px;display:flex}.status-panel.compact{margin:18px 0;padding:18px}.spinner{border:2px solid #bfdbfe;border-top-color:var(--blue);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.error-panel{justify-items:start;display:grid}.error-panel h2,.error-panel p{margin:0}.error-panel p{color:var(--muted)}.back-link{color:var(--muted);align-items:center;gap:7px;margin-bottom:24px;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex}.detail-header{align-items:center}.header-badges{flex-direction:row;gap:8px!important;display:flex!important}.inline-error{color:#be123c;background:#fff1f2;border:1px solid #fecdd3;border-radius:7px;margin-top:20px;padding:13px 15px}.lead-detail-grid{grid-template-columns:minmax(0,.92fr) minmax(340px,1.08fr);gap:24px;margin-top:28px;display:grid}.detail-stack{align-content:start;gap:24px;display:grid}.panel{border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:24px}.panel h2{margin:0 0 18px;font-size:18px}.facts{gap:12px;margin:0 0 20px;display:grid}.facts div{grid-template-columns:85px minmax(0,1fr);gap:12px;font-size:13px;display:grid}.facts dt{color:var(--muted)}.facts dd{overflow-wrap:anywhere;min-width:0;margin:0}.facts a{color:var(--blue)}.lead-message{border-top:1px solid var(--border);white-space:pre-wrap;padding-top:18px;color:var(--ink)!important}.score-line{align-items:baseline;gap:7px;margin-bottom:14px;display:flex}.score-line strong{color:var(--blue);font-size:36px;line-height:1}.score-line span{color:var(--muted);font-size:12px}.muted{font-size:13px;margin-top:12px!important}.recommendation{background:#eff6ff;border-radius:7px;gap:5px;margin-top:18px;padding:14px;font-size:13px;display:grid}.recommendation strong{color:#1d4ed8}.panel-heading{justify-content:space-between;gap:16px;display:flex}.panel-heading h2{margin-bottom:5px}.panel-heading p{font-size:13px}.sent-icon{color:#059669;width:26px}.reply-panel label{color:var(--ink);gap:7px;margin-top:18px;font-size:13px;font-weight:700;display:grid}.reply-panel input,.reply-panel textarea{width:100%;color:var(--ink);font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:7px;padding:11px 12px;font-size:14px;line-height:1.5}.reply-panel textarea{resize:vertical}.reply-panel input:focus,.reply-panel textarea:focus{border-color:var(--blue);outline:3px solid #2563eb2e}.reply-panel input:disabled,.reply-panel textarea:disabled{color:#64748b;background:#f8fafc}.review-note{font-size:12px;margin:14px 0!important}.outcome-actions{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;margin-top:24px;padding-top:18px;display:flex}.outcome-actions span{color:var(--muted);margin-right:4px;font-size:12px;font-weight:700}.outcome-actions button{border:1px solid var(--border);color:var(--muted);background:#fff;border-radius:6px;padding:6px 9px;font-size:11px}.page-header h1{font-size:clamp(28px,4vw,40px);line-height:1.1}.access-badge{border:1px solid var(--border);background:var(--surface);min-height:30px;color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;padding:0 11px;font-size:12px;font-weight:700;display:inline-flex}.empty-state{justify-items:start;max-width:580px;padding-top:clamp(64px,13vh,128px);display:grid}.empty-mark{background:var(--surface);border:1px solid #dbe5f3;border-radius:10px;gap:6px;width:52px;height:52px;margin-bottom:28px;padding:13px;display:grid}.empty-mark span{background:#cbd5e1;border-radius:999px;height:4px}.empty-mark span:nth-child(2){background:var(--blue);width:65%}.empty-state h2{margin-bottom:12px;font-size:clamp(22px,3vw,28px)}.empty-state p{max-width:540px;font-size:16px}@media (width<=720px){.admin-app{grid-template-columns:1fr}.sidebar{flex-direction:row;align-items:center;gap:14px;height:auto;padding:16px 18px;position:static}.sidebar nav{margin:0 0 0 auto}.nav-item,.sign-out{justify-content:center;width:44px;min-height:44px;padding:0}.nav-item span,.sign-out span{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sign-out{margin:0}.staff-identity{display:none}.main-content{padding:40px 24px 64px}.empty-state{padding-top:64px}.lead-row{grid-template-columns:1fr;gap:13px}.lead-meta{flex-wrap:wrap;justify-content:flex-start}.lead-detail-grid{grid-template-columns:1fr}}@media (width<=440px){.auth-card{gap:32px;padding:30px 24px}.brand strong{font-size:15px}.page-header{flex-direction:column;align-items:flex-start;gap:16px}}
