:root{font-family:Work Sans,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#17231d;background-color:#f3f5f1;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body{margin:0;min-width:320px;min-height:100vh;background-color:#f3f5f1;background-image:linear-gradient(rgba(31,64,48,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(31,64,48,.035) 1px,transparent 1px);background-size:32px 32px}#app{min-height:100vh}.auth-loading{min-height:100vh;display:grid;place-items:center}.loader{width:44px;height:44px;border-radius:50%;border:4px solid #e2e8f0;border-top-color:#22c55e;animation:spin .8s linear infinite}input,select,textarea,button{font-family:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a3e635;outline-offset:3px}.app{max-width:1400px;margin:0 auto;padding:24px 24px 48px}.page-header{position:relative;overflow:hidden;color:#f8fbf7;background:radial-gradient(circle at 82% 20%,rgba(163,230,53,.14),transparent 28%),#14352a;border:1px solid rgba(255,255,255,.1);border-radius:28px;box-shadow:0 24px 60px #14352a29}.page-header:after{position:absolute;right:-88px;bottom:-132px;width:290px;height:290px;border:1px solid rgba(190,242,100,.14);border-radius:50%;box-shadow:0 0 0 38px #bef26409,0 0 0 78px #bef26406;content:"";pointer-events:none}.header-utility{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-mark{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:inherit;text-decoration:none}.brand-monogram{display:grid;width:38px;height:38px;place-items:center;border:1px solid rgba(190,242,100,.52);border-radius:11px;color:#d9f99d;font-size:.72rem;font-weight:800;letter-spacing:.08em}.brand-copy{display:grid;line-height:1.05}.brand-copy strong{font-size:.88rem;letter-spacing:.01em}.brand-copy small{margin-top:5px;color:#a9bdb4;font-size:.66rem;font-weight:650;letter-spacing:.12em;text-transform:uppercase}.header-hero{position:relative;z-index:1;display:flex;justify-content:flex-end;padding:18px}@keyframes spin{to{transform:rotate(360deg)}}.facebook-status{--signal: #f59e0b;margin-top:14px;display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(140px,1fr));align-items:center;gap:0;padding:0 20px;color:#17231d;background:#fffffff0;border:1px solid #dfe7df;border-radius:18px;box-shadow:0 10px 30px #1937280f}.facebook-status.healthy{--signal: #22c55e}.facebook-status.working{--signal: #38bdf8}.facebook-status.danger{--signal: #fb7185}.status-signal{width:9px;height:9px;flex:0 0 auto;border-radius:999px;background:var(--signal);box-shadow:0 0 0 5px color-mix(in srgb,var(--signal) 16%,transparent)}.status-primary,.status-metric{min-width:0;min-height:74px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:12px 20px;border-left:1px solid #e7ece7}.status-primary{flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;padding-left:4px;border-left:0}.status-primary>span:last-child{display:grid;min-width:0;gap:3px}.status-kicker,.status-metric span{color:#708078;font-size:.66rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.status-primary strong,.status-metric strong{overflow:hidden;color:#17231d;font-size:.86rem;text-overflow:ellipsis;white-space:nowrap}.summary-chips{display:flex;flex-wrap:wrap;gap:6px}.summary-chip{background:#ffffff14;color:#eff8f3;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:600}.summary-empty{background:#ffffff14;color:#eff8f3;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:600}.header-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.utility-action{min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:8px 11px;color:#d7e2dd;background:transparent;border:1px solid transparent;border-radius:10px;font-size:.78rem;font-weight:650;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}.utility-action:hover:not(:disabled){color:#fff;background:#ffffff14;border-color:#ffffff1a}.utility-action:disabled{cursor:not-allowed;opacity:.52}.utility-action.logout{color:#b9c8c1}.spinning{animation:spin .8s linear infinite}.import-action{position:relative;min-height:88px;display:flex;align-items:center;gap:16px;width:min(100%,420px);padding:18px 20px;color:#173122;background:#bef264;border:0;border-radius:19px;box-shadow:0 18px 38px #04100a33;cursor:pointer;text-align:left;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}.import-action:after{position:absolute;top:14px;right:14px;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;content:""}.import-action:hover:not(:disabled){background:#d0f789;box-shadow:0 22px 44px #04100a42;transform:translateY(-2px)}.import-action:active:not(:disabled){transform:translateY(0)}.import-action:disabled{cursor:not-allowed;opacity:.62}.import-icon{display:grid;width:50px;height:50px;flex:0 0 auto;place-items:center;background:#14352a1a;border-radius:15px}.import-copy{display:grid;gap:4px}.import-copy strong{font-size:clamp(1.1rem,2vw,1.35rem);letter-spacing:-.025em}.import-copy small{color:#395544;font-size:.78rem;line-height:1.4}.primary{background:#22c55e;color:#0d1f12;border:none;border-radius:999px;padding:8px 16px;font-weight:600;font-size:.85rem;cursor:pointer}.ghost{background:#fff;border:1px solid #dadada;border-radius:999px;padding:8px 16px;font-size:.85rem;cursor:pointer}.primary:disabled,.ghost:disabled{opacity:.6;cursor:not-allowed}.sync-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.sync-grid label,.filters label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:#4a4a4a}.sync-grid input,.filters input,.filters select,.modal select,.modal input,.modal textarea{border:1px solid #e2e2e2;border-radius:12px;padding:10px 12px;font-size:.95rem}.filters{margin-top:16px;background:#fff;border-radius:16px;padding:12px 16px;display:grid;gap:12px;box-shadow:0 4px 12px #0f172a0f}.filter-row{display:grid;grid-template-columns:minmax(220px,2.2fr) minmax(180px,1fr);gap:16px;align-items:end}.date-filter{display:grid;grid-template-columns:minmax(220px,1fr);gap:16px;align-items:end}.date-filter.custom{grid-template-columns:minmax(220px,1fr) minmax(160px,1fr) minmax(160px,1fr)}.status-filter{display:grid;gap:10px}.campaign-filter{display:grid;gap:12px;padding-top:4px;border-top:1px solid #eef2f7}.campaign-filter-header{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}.campaign-filter-note{font-size:.78rem;color:#64748b}.campaign-buttons{display:flex;flex-wrap:wrap;gap:10px}.campaign-buttons button{border:1px solid #dbe1e7;border-radius:16px;padding:10px 12px;background:#f8fafc;color:#1f2937;cursor:pointer;display:grid;gap:4px;min-width:180px;text-align:left;transition:all .2s ease}.campaign-buttons button.active{background:linear-gradient(135deg,#22c55e,#86efac);border-color:#22c55e;color:#0f172a;box-shadow:0 12px 20px #22c55e38}.campaign-buttons button:hover:not(.active):not(:disabled){background:#fff;border-color:#94a3b8}.campaign-buttons button:disabled{opacity:.6;cursor:not-allowed}.campaign-count,.campaign-meta{font-size:.78rem;color:#64748b}.campaign-buttons button.active .campaign-count,.campaign-buttons button.active .campaign-meta{color:#0f172adb}.filter-label{font-size:.85rem;color:#4a4a4a;font-weight:600}.status-buttons{display:flex;flex-wrap:wrap;gap:8px}.status-buttons button{border:1px solid #dbe1e7;border-radius:999px;padding:8px 12px;background:#f8fafc;color:#1f2937;font-weight:600;font-size:.85rem;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.status-buttons button.active{background:#22c55e;border-color:#22c55e;color:#0f172a;box-shadow:0 10px 18px #22c55e4d}.status-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:2px 8px;border-radius:999px;background:#e2e8f0;color:#0f172a;font-size:.75rem;font-weight:700}.status-buttons button.active .status-count{background:#0f172a29;color:#0f172a}.status-buttons button:hover:not(.active):not(:disabled){border-color:#94a3b8;background:#fff}.status-buttons button:disabled{opacity:.6;cursor:not-allowed}.search{width:100%}.error-banner{margin-top:16px;background:#fee2e2;color:#b91c1c;padding:12px 16px;border-radius:12px}.sync-banner{margin-top:16px;padding:12px 16px;border-radius:12px}.sync-banner.success{background:#dcfce7;color:#166534}.sync-banner.warning{background:#fef3c7;color:#92400e}.grid{margin-top:16px;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:28px;padding:18px;background:#fff;border-radius:16px;box-shadow:0 12px 24px #0f172a0f}.page-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #dbe1e7;border-radius:10px;background:#f8fafc;color:#1f2937;cursor:pointer;transition:all .2s ease}.page-btn:hover:not(:disabled){background:#fff;border-color:#94a3b8}.page-btn:disabled{opacity:.4;cursor:not-allowed}.page-info{font-size:.95rem;font-weight:600;color:#334155}.lead-card{background:#fff;border-radius:12px;padding:12px;box-shadow:0 4px 12px #0f172a0f;display:flex;flex-direction:column;gap:8px}.card-top{display:flex;justify-content:space-between;gap:8px}.card-top h3{margin:4px 0 2px;font-size:1.05rem}.lead-rank{align-self:flex-start;background:#111827;color:#fff;font-weight:700;font-size:.8rem;padding:6px 10px;border-radius:999px;letter-spacing:.08em}.meta{margin:0;font-size:.75rem;color:#6b6b6b}.status-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:600;text-transform:capitalize;background:var(--status-bg, #e2e8f0);color:var(--status-color, #475569)}.status-icon{color:var(--status-color, #475569)}.badge-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.source-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:600;background:#f1f5f9;color:#334155}.source-pill.facebook{background:#dbeafe;color:#1d4ed8}.source-pill.instagram{background:#fce7f3;color:#be185d}.inline-icon{vertical-align:-3px;margin-right:6px}.attempt-row{display:flex;flex-wrap:wrap;gap:10px}.appointment-row{display:flex;align-items:center;gap:6px;padding:6px 10px;background:linear-gradient(135deg,#e0f2fe,#f0f9ff);border-radius:8px;font-size:.8rem;color:#0369a1}.appointment-icon{font-size:1rem}.note-row{padding:6px 10px;background:#fff7ed;border-radius:8px;font-size:.8rem;color:#9a3412}.info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;font-size:.8rem;color:#6b6b6b}.info strong{display:block;color:#111827;font-size:.95rem;margin-top:4px}.actions{display:flex;flex-wrap:wrap;gap:6px}.actions button{padding:4px 8px;font-size:.75rem;font-weight:600;border-radius:999px;cursor:pointer}.chip{text-decoration:none;background:#e0f2fe;color:#0369a1;border-radius:999px;padding:4px 8px;font-weight:600;font-size:.75rem;display:inline-flex;align-items:center;gap:4px}.chip .icon{width:14px;height:14px}.chip.call{background:#dcfce7;color:#15803d}.chip.viber{background:#ede9fe;color:#7c3aed}.chip.messenger{background:#e0e7ff;color:#4f46e5}.chip.whatsapp{background:#dcfce7;color:#166534}.phone-display{font-size:.95rem;color:#1e293b}.empty{padding:36px;text-align:center;background:#fff;border-radius:16px;color:#6b6b6b}.modal-backdrop{position:fixed;inset:0;background:#0f172a4d;display:flex;align-items:center;justify-content:center;padding:12px;z-index:20}.modal{background:#fff;border-radius:20px;max-height:calc(100dvh - 24px);padding:16px 18px;width:min(520px,100%);display:flex;flex-direction:column;gap:12px;overflow:hidden;box-shadow:0 30px 60px #0f172a33}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-header h2{margin:0;font-size:1.25rem;line-height:1.2}.modal-close{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer}.modal-body{display:grid;gap:10px;min-height:0;padding:6px;overflow-y:auto;overscroll-behavior:contain}.sync-hint{margin:0;color:#64748b;font-size:.8rem;line-height:1.4}.sync-guidance{display:grid;gap:2px;padding:8px 10px;border:1px solid #bae6fd;border-left:4px solid #0ea5e9;border-radius:10px;color:#0c4a6e;background:#f0f9ff;font-size:.78rem}.sync-guidance.warning{border-color:#fde68a;border-left-color:#f59e0b;color:#78350f;background:#fffbeb}.sync-period-card{display:grid;gap:8px;padding:10px;border-radius:14px;background:linear-gradient(135deg,#f0fdf4,#f8fafc);border:1px solid #d1fae5}.sync-custom-dates{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.sync-summary-card{background:#f8fafc;border:1px dashed #cbd5f5;border-radius:12px;padding:9px 10px;display:grid;gap:8px}.sync-scope-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:9px 10px;display:grid;gap:8px}.sync-scope-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sync-scope-label{font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#475569}.sync-scope-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:.76rem;font-weight:700;letter-spacing:.01em;border:1px solid transparent}.sync-scope-badge.all_forms{background:#f1f5f9;color:#475569;border-color:#cbd5e1}.sync-scope-badge.form_id{background:#dcfce7;color:#166534;border-color:#86efac}.sync-scope-badge.env_mapping{background:#ecfeff;color:#155e75;border-color:#67e8f9}.sync-scope-badge.marketing_api{background:#fef3c7;color:#92400e;border-color:#fcd34d}.sync-scope-loading,.sync-scope-note{margin:0;font-size:.9rem;color:#334155}.sync-scope-error{margin:0;font-size:.9rem;color:#b91c1c}.attempt-control{background:#f8fafc;border-radius:12px;padding:14px 16px;border:1px solid #e2e8f0}.attempt-control .attempt-label{display:block;font-weight:600;margin-bottom:10px;color:#334155}.attempt-counter{display:flex;align-items:center;gap:12px}.attempt-value{font-size:1.25rem;font-weight:700;color:#1e293b;min-width:60px}.attempt-btn{background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:.85rem;font-weight:600;cursor:pointer;transition:background .2s}.attempt-btn:hover:not(:disabled){background:#2563eb}.attempt-btn:disabled{background:#94a3b8;cursor:not-allowed}.attempt-warning{margin:10px 0 0;padding:8px 12px;background:#fef3c7;color:#92400e;border-radius:8px;font-size:.85rem}.modal-footer{display:flex;justify-content:flex-end;gap:12px}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 20px 40px}.login-card{background:#fff;border-radius:24px;padding:28px 30px;width:min(420px,100%);box-shadow:0 24px 55px #0f172a1f;border:1px solid #eef0f4;display:grid;gap:18px}.login-header h1{margin:0;font-size:2rem;letter-spacing:-.02em}.login-form{display:grid;gap:14px}.login-form label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:#4a4a4a}.login-form input{border:1px solid #e2e2e2;border-radius:12px;padding:12px 14px;font-size:.95rem}.login-actions{display:flex;justify-content:flex-end}.login-error{background:#fee2e2;color:#b91c1c;padding:10px 12px;border-radius:10px;font-size:.85rem}.print-area{display:none}.print-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px}.print-eyebrow{text-transform:uppercase;letter-spacing:.2em;font-size:.7rem;color:#475569;margin:0 0 6px}.print-header h1{margin:0;font-size:1.6rem}.print-meta{display:grid;gap:6px;font-size:.85rem;color:#475569;text-align:right}.print-empty{color:#64748b;font-size:.95rem}.print-table{width:100%;border-collapse:collapse;font-size:.9rem}.print-table th,.print-table td{border:1px solid #cbd5f5;padding:8px 10px;text-align:left}.print-table th{background:#f1f5f9;font-weight:700}.print-table td:first-child,.print-table th:first-child{width:36px;text-align:center}.print-table td:nth-child(3),.print-table th:nth-child(3){width:130px}.print-table td:nth-child(4),.print-table th:nth-child(4){width:100px}.print-table td:nth-child(5),.print-table th:nth-child(5){width:145px}.print-table td:nth-child(6),.print-table th:nth-child(6){width:160px}.login-hint{background:#fef3c7;color:#92400e;padding:10px 12px;border-radius:10px;font-size:.85rem}@media(max-width:900px){.header-hero{padding:18px}.import-action{max-width:440px}.facebook-status{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px}.status-primary,.status-metric{border-bottom:1px solid #e7ece7}.status-primary{padding-left:4px}.status-metric:nth-child(2){border-left:1px solid #e7ece7}.status-metric:nth-last-child(-n+2){border-bottom:0}.filter-row,.date-filter.custom{grid-template-columns:1fr}}@media(max-width:640px){.app{padding:12px 12px 32px}.page-header{border-radius:22px}.header-utility{align-items:flex-start;gap:12px;padding:12px}.brand-copy{display:none}.header-actions{justify-content:flex-end}.utility-action{width:44px;justify-content:center;padding:8px}.utility-action span{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)}.header-hero{padding:12px}.import-action{min-height:84px;padding:14px 16px;border-radius:16px}.import-icon{width:46px;height:46px}.modal-backdrop{align-items:flex-end;padding:8px}.modal{width:100%;max-height:calc(100dvh - 16px);gap:10px;padding:12px 14px;border-radius:18px}.modal-header h2{font-size:1.1rem}.modal-body{gap:8px}.sync-grid{gap:9px}.modal-footer{gap:8px}.modal-footer .primary,.modal-footer .ghost{min-height:44px}.facebook-status{grid-template-columns:1fr;padding:8px 16px}.status-primary,.status-metric,.status-metric:nth-child(2){min-height:62px;padding:10px 4px;border-left:0;border-bottom:1px solid #e7ece7}.status-metric:last-child{border-bottom:0}.filters{padding:16px}.sync-custom-dates,.info{grid-template-columns:1fr}}.resource-label{display:inline-flex;align-items:center;gap:7px;color:#334155;font-weight:650}.resource-label svg{color:#16a34a}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@page{size:A4;margin:16mm}@media print{body{background:#fff}.app{max-width:none;padding:0}.page-header,.facebook-status,.filters,.grid,.pagination,.modal-backdrop,.error-banner,.login-screen{display:none!important}.print-area{display:block}}.attempt-badge.svelte-y2yc3k{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:20px;font-size:10px;font-weight:500}.attempt-label.svelte-y2yc3k{color:inherit;opacity:.8}.attempt-dots.svelte-y2yc3k{display:flex;gap:3px}.dot.svelte-y2yc3k{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.25;transition:opacity .2s}.dot.filled.svelte-y2yc3k{opacity:1}.attempt-count.svelte-y2yc3k{font-weight:600}.attempt-ok.svelte-y2yc3k{background:#3b82f61f;color:#3b82f6}.attempt-warning.svelte-y2yc3k{background:#f59e0b26;color:#d97706}.attempt-urgent.svelte-y2yc3k{background:#ef444426;color:#dc2626;animation:svelte-y2yc3k-pulse 2s infinite}@keyframes svelte-y2yc3k-pulse{0%,to{opacity:1}50%{opacity:.7}}
