:root{--brand-accent: 217 91% 60%;--background: 0 0% 99%;--foreground: 240 6% 10%;--card: 0 0% 100%;--card-foreground: 240 6% 10%;--popover: 0 0% 100%;--popover-foreground: 240 6% 10%;--primary: 240 6% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 5% 96%;--secondary-foreground: 240 6% 10%;--muted: 240 5% 96%;--muted-foreground: 240 4% 46%;--accent: 240 5% 96%;--accent-foreground: 240 6% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 6% 90%;--input: 240 6% 90%;--ring: var(--brand-accent);--radius: .5rem;--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}.dark{--background: 0 0% 5%;--foreground: 0 0% 98%;--card: 0 0% 7%;--card-foreground: 0 0% 98%;--popover: 0 0% 9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 12%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 12%;--muted-foreground: 0 0% 55%;--accent: 0 0% 12%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14%;--input: 0 0% 14%;--ring: var(--brand-accent)}*{box-sizing:border-box}html,body,#root{height:100%;min-height:0}body{margin:0;font-family:var(--font);color:hsl(var(--foreground));background:hsl(var(--background));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:hsl(var(--brand-accent));text-decoration:none;font-weight:600}a:hover{text-decoration:underline}:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.app-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:hsl(var(--background))}.app-shell.framed{padding:16px}.app-shell.full-bleed{padding:0}.app-shell.standalone{padding:24px;max-width:1120px;margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:0 24px;border-bottom:1px solid hsl(var(--border));background:hsl(var(--background));flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{width:36px;height:36px;border-radius:calc(var(--radius) - 2px);display:grid;place-items:center;background:hsl(var(--brand-accent) / .12);color:hsl(var(--brand-accent));font-size:.75rem;font-weight:700}.brand-title{margin:0;font-size:1.125rem;font-weight:600;color:hsl(var(--foreground))}.brand-sub,.muted,.hint,.eyebrow,.tiny{color:hsl(var(--muted-foreground))}.brand-sub,.hint,.eyebrow,.tiny{margin:.2rem 0 0;font-size:.75rem}.nav{display:flex;gap:8px;flex-wrap:wrap}.nav a{padding:.45rem .85rem;border-radius:calc(var(--radius) - 2px);color:hsl(var(--muted-foreground));text-decoration:none;font-size:.875rem;font-weight:500;border:1px solid transparent}.nav a:hover,.nav a.active{color:hsl(var(--foreground));background:hsl(var(--accent));text-decoration:none}.nav a.active{color:hsl(var(--brand-accent));background:hsl(var(--brand-accent) / .1)}.main{flex:1;min-height:0;overflow:auto;padding:24px}.app-shell.full-bleed .main{padding:16px 20px 24px}.app-shell.framed .main{padding:16px}.page{display:flex;flex-direction:column;gap:24px}.page-header{display:flex;flex-direction:column;gap:8px}@media(min-width:640px){.page-header{flex-direction:row;align-items:center;justify-content:space-between}}.page-title{margin:0;font-size:1.5rem;font-weight:600;line-height:1.25}.section-title{margin:0;font-size:1.125rem;font-weight:600}.card{background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:16px}.card+.card{margin-top:0}.stats-grid,.form-grid,.meta-grid{display:grid;gap:12px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:768px){.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid{grid-template-columns:2fr 1fr}.meta-grid{grid-template-columns:1.4fr 1fr}}.stat-card .label,.tile-label,.eyebrow{margin:0;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground))}.stat-card .value,.tile-value{margin:8px 0 0;font-size:1.75rem;font-weight:600}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid hsl(var(--border));background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));border-radius:calc(var(--radius) - 2px);padding:0 14px;height:36px;font:inherit;font-size:.875rem;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:opacity .15s ease,background .15s ease,border-color .15s ease}.btn:hover{text-decoration:none;opacity:.92}.btn.primary{background:hsl(var(--brand-accent));border-color:hsl(var(--brand-accent));color:#fff}.btn.primary:hover{opacity:.9}.btn.ghost{background:transparent;border-color:transparent;color:hsl(var(--muted-foreground))}.btn.ghost:hover{color:hsl(var(--foreground));background:hsl(var(--secondary));border-color:hsl(var(--border));opacity:1}.btn.small{height:32px;padding:0 10px;font-size:.82rem}.btn:disabled{opacity:.55;cursor:not-allowed}.page-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;background:#00000073}.modal-panel{width:min(440px,100%);background:hsl(var(--card));color:hsl(var(--card-foreground));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:24px;box-shadow:0 16px 48px #0000002e}.modal-title{margin:0;font-size:1.25rem;font-weight:600}.modal-lead{margin:8px 0 20px;font-size:.9rem;line-height:1.45}.modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;align-items:center}.modal-panel .error{margin-top:12px}label{display:flex;flex-direction:column;gap:6px;font-size:.875rem;font-weight:500;color:hsl(var(--foreground))}input,textarea,select{width:100%;border:1px solid hsl(var(--input));background:hsl(var(--background));color:hsl(var(--foreground));border-radius:calc(var(--radius) - 2px);padding:8px 12px;font:inherit;font-size:.875rem}input:focus,textarea:focus,select:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 1px hsl(var(--ring))}textarea{resize:vertical;min-height:120px}.checkbox{flex-direction:row;align-items:center;gap:10px;font-weight:400}.checkbox input{width:auto}.error{margin:0;color:hsl(var(--destructive));font-size:.875rem}.empty{text-align:center;padding:48px 16px;color:hsl(var(--muted-foreground));font-size:.875rem}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:2px 10px;font-size:.75rem;font-weight:500;background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));text-transform:capitalize}.badge.status-done,.pill.ok{background:hsl(var(--brand-accent) / .12);color:hsl(var(--brand-accent))}.badge.status-running,.badge.status-queued{background:hsl(var(--brand-accent) / .1);color:hsl(var(--brand-accent))}.badge.status-paused_credits{background:#f59f0a26;color:#ae5f04}.dark .badge.status-paused_credits{color:#f9c56c}.badge.status-failed,.badge.status-cancelled,.pill.missing{background:hsl(var(--destructive) / .12);color:hsl(var(--destructive))}.banner-info{margin:0 0 16px;padding:12px 14px;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--secondary));color:hsl(var(--muted-foreground));font-size:.875rem}.banner-warn{margin:0 0 16px;padding:12px 14px;border-radius:var(--radius);border:1px solid hsl(38 92% 50% / .35);background:#f59f0a1a;color:hsl(var(--foreground));font-size:.875rem;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:500}.table-wrap{overflow:auto;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--card))}table.data-table{width:100%;border-collapse:collapse}table.data-table th{text-align:left;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--muted-foreground));padding:12px 16px;border-bottom:1px solid hsl(var(--border));background:hsl(var(--background))}table.data-table td{padding:12px 16px;font-size:.875rem;border-bottom:1px solid hsl(var(--border));vertical-align:top}table.data-table tr:hover td{background:hsl(var(--muted) / .5)}.job-list,.key-list{display:flex;flex-direction:column;gap:12px}.job-row,.key-row{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:inherit}.job-row:hover,.key-row:hover{text-decoration:none;background:hsl(var(--muted) / .35)}@media(min-width:720px){.job-row,.key-row{flex-direction:row;align-items:center;justify-content:space-between}}.job-metrics{display:flex;gap:16px}.job-metric span{display:block;font-size:.75rem;color:hsl(var(--muted-foreground))}.job-metric strong{font-size:1rem}.meta-chips{display:flex;flex-wrap:wrap;gap:8px}.meta-chip{border:1px solid hsl(var(--border));background:hsl(var(--secondary));border-radius:999px;padding:4px 10px;font-size:.75rem}.list-combobox{position:relative;margin-top:6px;border:1px solid hsl(var(--border));border-radius:var(--radius, 8px);background:hsl(var(--background));min-height:42px}.list-combobox.open{border-color:hsl(var(--brand-accent))}.list-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 8px}.list-chips input{flex:1;min-width:140px;border:0;outline:none;background:transparent;padding:4px 2px;margin:0;font:inherit;color:inherit}.list-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid hsl(var(--border));background:hsl(var(--secondary));border-radius:999px;padding:2px 8px 2px 10px;font-size:.8rem}.list-chip-remove{border:0;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;font-size:1rem;line-height:1;padding:0 2px}.list-suggestions{list-style:none;margin:0;padding:4px;border-top:1px solid hsl(var(--border));max-height:220px;overflow:auto}.list-suggestions button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:6px;cursor:pointer;font:inherit;color:inherit}.list-suggestions button:hover{background:hsl(var(--secondary))}.sync-badge{display:inline-block;font-size:.7rem;padding:2px 8px;border-radius:999px;border:1px solid hsl(var(--border));color:hsl(var(--muted-foreground))}.sync-badge.sync-synced{color:#2a6f43;border-color:#94d1aa;background:#eaf6ee}.sync-badge.sync-failed{color:hsl(var(--destructive));border-color:hsl(var(--destructive) / .35);background:hsl(var(--destructive) / .08)}.sync-badge.sync-skipped_no_email{color:hsl(var(--muted-foreground))}.timeline{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0;padding:0}.timeline li{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;color:hsl(var(--muted-foreground))}.timeline .dot{width:8px;height:8px;border-radius:999px;background:hsl(var(--border))}.timeline li.done .dot,.timeline li.current .dot{background:hsl(var(--brand-accent))}.timeline li.current{color:hsl(var(--foreground));font-weight:600}.timeline li.failed .dot,.timeline li.failed{color:hsl(var(--destructive))}.timeline li.failed .dot{background:hsl(var(--destructive))}.lead-actions{display:flex;gap:8px;flex-wrap:wrap}.domain-input{margin-top:8px}.panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.panel-head.tight{margin-bottom:0}.auth-gate{height:100%;min-height:0;display:grid;place-items:center;padding:24px;background:hsl(var(--background))}.auth-card{width:min(440px,100%)}.auth-card .page-title{margin-top:4px}.auth-card .muted{margin-top:10px}.auth-card .error{margin-top:14px}.skeleton{background:linear-gradient(90deg,hsl(var(--muted)),hsl(var(--secondary)),hsl(var(--muted)));background-size:200% 100%;animation:shimmer 1.2s linear infinite;border-radius:calc(var(--radius) - 2px)}.skeleton-line{height:14px;margin-bottom:10px}.skeleton-line.lg{height:22px;width:40%}.skeleton-row{height:44px;margin-bottom:8px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.skeleton{background:hsl(var(--muted))}}.log summary{cursor:pointer;font-weight:500}.log pre{margin:12px 0 0;white-space:pre-wrap;word-break:break-word;font-size:.8rem;color:hsl(var(--muted-foreground))}.actions-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.help-helpdesk-link{display:flex;align-items:center}.help-helpdesk-link .link-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;font-weight:600;color:hsl(var(--brand-accent));cursor:pointer;text-decoration:underline;text-underline-offset:3px}.help-helpdesk-link .link-btn:hover{opacity:.85}.help-layout{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr);gap:20px;align-items:start}.help-toc{position:sticky;top:12px;padding:16px}.help-toc ul{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.help-toc a{color:hsl(var(--muted-foreground));text-decoration:none;font-size:.875rem}.help-toc a:hover{color:hsl(var(--foreground))}.help-article{display:flex;flex-direction:column;gap:16px}.help-section{padding:20px}.help-section .section-title{margin:0 0 12px}.help-section p,.help-section li,.help-section dd{color:hsl(var(--muted-foreground));line-height:1.55;font-size:.9375rem}.help-steps,.help-list{margin:0;padding-left:1.25rem;display:flex;flex-direction:column;gap:8px}.help-table{width:100%;border-collapse:collapse;margin-top:12px;font-size:.875rem}.help-table th,.help-table td{text-align:left;padding:8px 10px;border-bottom:1px solid hsl(var(--border))}.help-table th{color:hsl(var(--foreground));font-weight:600}.help-faq{margin:0}.help-faq dt{margin-top:12px;font-weight:600;color:hsl(var(--foreground))}.help-faq dd{margin:4px 0 0}.help-callout{margin-top:14px;padding:12px 14px;border-radius:var(--radius);font-size:.875rem;line-height:1.45;border:1px solid hsl(var(--border))}.help-callout.tip,.help-callout.note{background:hsl(var(--secondary));color:hsl(var(--muted-foreground))}.help-callout.warn{border-color:#f59f0a59;background:#f59f0a1a;color:hsl(var(--foreground))}.help-section code{font-size:.85em;padding:1px 5px;border-radius:4px;background:hsl(var(--muted))}@media(max-width:800px){.help-layout{grid-template-columns:1fr}.help-toc{position:static}.help-toc ul{flex-direction:row;flex-wrap:wrap}}
