:root,html[data-theme=light]{--bg: #fbf4f2;--bg-elev: rgba(255, 255, 255, .78);--bg-soft: #fbeff0;--line: #efd9db;--text: #3a2530;--muted: #7a5a68;--accent: #8b3a62;--accent-2: #c9a06a;--danger: #9b2340;--warn: #7a5200;--ok: #1f6b45;--shadow: 0 18px 40px rgba(139, 58, 98, .1);--title: #6e2a4b;--input-border: #e6cdd2;font-family:DM Sans,Segoe UI,sans-serif;color-scheme:light}html[data-theme=dark]{--bg: #2a1c24;--bg-elev: rgba(58, 37, 48, .88);--bg-soft: #3a2530;--line: #5a3a48;--text: #f7ecef;--muted: #c9aeb8;--accent: #c97a9d;--accent-2: #d4b07a;--danger: #f0a0b0;--warn: #e6c27a;--ok: #7dcca3;--shadow: 0 18px 40px rgba(0, 0, 0, .35);--title: #f0d5e0;--input-border: #5a3a48;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(900px 520px at 8% -8%,#f6cfd6 0%,transparent 60%),radial-gradient(800px 520px at 100% 0%,#e6d9f0 0%,transparent 58%),radial-gradient(900px 600px at 92% 108%,#f7e3cb 0%,transparent 60%),var(--bg);background-attachment:fixed;color:var(--text);font-family:DM Sans,Segoe UI,sans-serif}html[data-theme=dark],html[data-theme=dark] body{background:radial-gradient(900px 520px at 8% -8%,rgba(139,58,98,.35) 0%,transparent 60%),radial-gradient(800px 520px at 100% 0%,rgba(90,58,120,.28) 0%,transparent 58%),radial-gradient(900px 600px at 92% 108%,rgba(201,160,106,.18) 0%,transparent 60%),var(--bg)}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.92;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280' fill='none'%3E%3Cg%3E%3Cellipse cx='70' cy='42' rx='16' ry='28' fill='%23B5607F' fill-opacity='0.28'/%3E%3Cellipse cx='70' cy='98' rx='16' ry='28' fill='%23B5607F' fill-opacity='0.28'/%3E%3Cellipse cx='42' cy='70' rx='28' ry='16' fill='%23C97A9D' fill-opacity='0.26'/%3E%3Cellipse cx='98' cy='70' rx='28' ry='16' fill='%23C97A9D' fill-opacity='0.26'/%3E%3Cellipse cx='50' cy='50' rx='18' ry='12' transform='rotate(-40 50 50)' fill='%23D48AA8' fill-opacity='0.22'/%3E%3Cellipse cx='90' cy='90' rx='18' ry='12' transform='rotate(-40 90 90)' fill='%23D48AA8' fill-opacity='0.22'/%3E%3Ccircle cx='70' cy='70' r='10' fill='%23C9A06A' fill-opacity='0.45'/%3E%3Ccircle cx='70' cy='70' r='4' fill='%23F7E3CB' fill-opacity='0.7'/%3E%3Cpath d='M70 98 C 62 128, 44 148, 28 164' stroke='%236B8F5E' stroke-opacity='0.35' stroke-width='1.6' fill='none'/%3E%3Cellipse cx='40' cy='138' rx='14' ry='6' transform='rotate(-30 40 138)' fill='%236B8F5E' fill-opacity='0.28'/%3E%3C/g%3E%3Cg transform='translate(170 150) scale(0.72)'%3E%3Cellipse cx='40' cy='14' rx='12' ry='22' fill='%23B5607F' fill-opacity='0.24'/%3E%3Cellipse cx='40' cy='66' rx='12' ry='22' fill='%23B5607F' fill-opacity='0.24'/%3E%3Cellipse cx='14' cy='40' rx='22' ry='12' fill='%23C97A9D' fill-opacity='0.22'/%3E%3Cellipse cx='66' cy='40' rx='22' ry='12' fill='%23C97A9D' fill-opacity='0.22'/%3E%3Ccircle cx='40' cy='40' r='7' fill='%23C9A06A' fill-opacity='0.4'/%3E%3C/g%3E%3Cg transform='translate(190 20) scale(0.55)'%3E%3Cellipse cx='40' cy='14' rx='12' ry='22' fill='%23C9A06A' fill-opacity='0.26'/%3E%3Cellipse cx='40' cy='66' rx='12' ry='22' fill='%23B5607F' fill-opacity='0.2'/%3E%3Cellipse cx='14' cy='40' rx='22' ry='12' fill='%23B5607F' fill-opacity='0.2'/%3E%3Cellipse cx='66' cy='40' rx='22' ry='12' fill='%23D48AA8' fill-opacity='0.22'/%3E%3Ccircle cx='40' cy='40' r='6' fill='%23C9A06A' fill-opacity='0.42'/%3E%3C/g%3E%3Ccircle cx='40' cy='210' r='3' fill='%23B5607F' fill-opacity='0.25'/%3E%3Ccircle cx='240' cy='90' r='2.5' fill='%23C9A06A' fill-opacity='0.3'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='340' viewBox='0 0 520 340' fill='none'%3E%3Cpath d='M-20 250 C 100 160, 180 300, 310 220 S 470 140, 540 200' stroke='%23B5607F' stroke-opacity='0.32' stroke-width='1.4'/%3E%3Cpath d='M-10 280 C 120 200, 200 320, 340 250 S 490 170, 560 230' stroke='%23C9A06A' stroke-opacity='0.36' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:repeat,no-repeat;background-position:12px 24px,left bottom;background-size:260px 260px,min(78vw,520px) auto}body:after{content:"";position:fixed;right:-8px;top:4%;width:min(48vw,340px);height:min(48vw,340px);pointer-events:none;z-index:0;opacity:.88;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340' fill='none'%3E%3Cg%3E%3Cellipse cx='190' cy='78' rx='28' ry='52' fill='%23B5607F' fill-opacity='0.3'/%3E%3Cellipse cx='190' cy='182' rx='28' ry='52' fill='%23B5607F' fill-opacity='0.3'/%3E%3Cellipse cx='138' cy='130' rx='52' ry='28' fill='%23C97A9D' fill-opacity='0.28'/%3E%3Cellipse cx='242' cy='130' rx='52' ry='28' fill='%23C97A9D' fill-opacity='0.28'/%3E%3Cellipse cx='152' cy='96' rx='34' ry='22' transform='rotate(-38 152 96)' fill='%23D48AA8' fill-opacity='0.24'/%3E%3Cellipse cx='228' cy='164' rx='34' ry='22' transform='rotate(-38 228 164)' fill='%23D48AA8' fill-opacity='0.24'/%3E%3Cellipse cx='152' cy='164' rx='34' ry='22' transform='rotate(38 152 164)' fill='%23B5607F' fill-opacity='0.2'/%3E%3Cellipse cx='228' cy='96' rx='34' ry='22' transform='rotate(38 228 96)' fill='%23B5607F' fill-opacity='0.2'/%3E%3Ccircle cx='190' cy='130' r='16' fill='%23C9A06A' fill-opacity='0.5'/%3E%3Ccircle cx='190' cy='130' r='7' fill='%23F7E3CB' fill-opacity='0.75'/%3E%3Cpath d='M190 182 C 176 230, 148 268, 118 298' stroke='%236B8F5E' stroke-opacity='0.4' stroke-width='2' fill='none'/%3E%3Cellipse cx='142' cy='248' rx='22' ry='9' transform='rotate(-32 142 248)' fill='%236B8F5E' fill-opacity='0.32'/%3E%3Cellipse cx='160' cy='278' rx='18' ry='8' transform='rotate(26 160 278)' fill='%236B8F5E' fill-opacity='0.28'/%3E%3C/g%3E%3Cg transform='translate(36 200) scale(0.62)'%3E%3Cellipse cx='50' cy='18' rx='16' ry='30' fill='%23C9A06A' fill-opacity='0.32'/%3E%3Cellipse cx='50' cy='82' rx='16' ry='30' fill='%23B5607F' fill-opacity='0.26'/%3E%3Cellipse cx='18' cy='50' rx='30' ry='16' fill='%23B5607F' fill-opacity='0.26'/%3E%3Cellipse cx='82' cy='50' rx='30' ry='16' fill='%23D48AA8' fill-opacity='0.26'/%3E%3Ccircle cx='50' cy='50' r='9' fill='%23C9A06A' fill-opacity='0.48'/%3E%3C/g%3E%3Cg transform='translate(250 240) scale(0.42)'%3E%3Cellipse cx='40' cy='14' rx='12' ry='22' fill='%23B5607F' fill-opacity='0.28'/%3E%3Cellipse cx='40' cy='66' rx='12' ry='22' fill='%23C97A9D' fill-opacity='0.26'/%3E%3Cellipse cx='14' cy='40' rx='22' ry='12' fill='%23C97A9D' fill-opacity='0.24'/%3E%3Cellipse cx='66' cy='40' rx='22' ry='12' fill='%23B5607F' fill-opacity='0.24'/%3E%3Ccircle cx='40' cy='40' r='6' fill='%23C9A06A' fill-opacity='0.45'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;background-position:center}html[data-theme=dark] body:before{opacity:.55;filter:brightness(1.15) saturate(1.05)}html[data-theme=dark] body:after{opacity:.6;filter:brightness(1.2) saturate(1.08)}#root{position:relative;z-index:1;margin:0;min-height:100%}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{max-width:1100px;margin:0 auto;padding:28px 20px 60px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.brand{display:flex;flex-direction:column;gap:4px}.brand h1,.card h2,.login h1,h1,h2{font-family:"DM Serif Display",Georgia,serif;font-weight:400;color:var(--title)}.brand h1{margin:0;font-size:1.45rem;letter-spacing:.01em}.brand span{color:var(--muted);font-size:.9rem}.tabs{display:flex;flex-wrap:wrap;gap:8px;background:#ffffffb3;padding:4px;border-radius:12px;border:1px solid var(--line)}html[data-theme=dark] .tabs{background:#482a38eb;border-color:#8a5a6c}.tabs button,.tabs a,.ghost,.primary,.danger{border:0;border-radius:12px;padding:8px 14px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.tabs button,.tabs a{background:transparent;color:var(--muted);font-weight:500}html[data-theme=dark] .tabs button,html[data-theme=dark] .tabs a{color:#f0d8e2}.tabs button.active,.tabs a.active{background:#8b3a62;color:#fff;font-weight:500}html[data-theme=dark] .tabs button.active,html[data-theme=dark] .tabs a.active{background:linear-gradient(135deg,#c97a9d,#a24a74);color:#fff;box-shadow:0 0 0 1px #ffd2e140}.primary{background:linear-gradient(135deg,#a24a74,#8b3a62);color:#fff;font-weight:600;border-radius:12px;min-height:44px}.primary:hover{filter:brightness(1.06)}.primary:focus-visible{outline:2px solid #8b3a62;outline-offset:2px}html[data-theme=dark] .primary{background:linear-gradient(135deg,#d489ad,#b05a82);color:#fff;border:1px solid rgba(255,220,230,.35);box-shadow:0 6px 16px #00000047}html[data-theme=dark] .primary:hover{filter:brightness(1.1)}.topbar-actions{align-items:center}.prefs-toggles{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.ghost.compact{padding:6px 10px;font-size:.8rem;min-height:36px}.active-toggle{border-color:var(--accent)!important;color:var(--accent)!important}.history-fold{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--bg-soft)}.history-fold>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:600;color:var(--title)}.history-fold>summary::-webkit-details-marker{display:none}.history-fold[open]{background:var(--bg-elev);margin-top:0}.history-fold .table-wrap{margin-top:12px}.ghost{background:#fffc;color:#6e2a4b;border:1px solid #e6cdd2}html[data-theme=dark] .ghost{background:#4a3040;color:#ffe8f0;border:1px solid #c9a0b0;box-shadow:0 2px 8px #00000038}html[data-theme=dark] .ghost:hover{background:#5a3a4c;border-color:#e8c0d0;color:#fff}html[data-theme=dark] .active-toggle{background:#5e3a50!important;border-color:#f0b8cc!important;color:#ffe8f0!important}.danger{background:#9b23400f;color:#9b2340;border:1px solid rgba(155,35,64,.4);font-weight:600}.danger:hover{background:#9b23401f}html[data-theme=dark] .danger{background:#6e2a3c;color:#ffe0e8;border:1px solid #f0a8bc;box-shadow:0 2px 8px #00000038}html[data-theme=dark] .danger:hover{background:#8a384e;color:#fff;border-color:#ffc0d0}.card{background:var(--bg-elev);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow);margin-bottom:18px}.card h2{margin:0 0 14px;font-size:1.2rem}.grid{display:grid;gap:12px}.grid.two{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.grid.three{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:.82rem;font-weight:500}input,select,textarea{background:#fff;color:var(--text);border:1px solid var(--input-border);border-radius:12px;padding:10px 12px;min-height:44px}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#2a1c24;border-color:var(--input-border)}textarea{min-height:72px;resize:vertical}input:focus,select:focus,textarea:focus{outline:none;border-color:#8b3a62;box-shadow:0 0 0 3px #8b3a622e}input.invalid,select.invalid,textarea.invalid{border-color:var(--danger)}.field-error{color:var(--danger);font-size:.78rem}.banner{white-space:pre-wrap;background:#fadde2;border:1px solid rgba(155,35,64,.28);color:#9b2340;border-radius:12px;padding:10px 12px;margin-bottom:12px}.banner.ok{background:#ddf1e6;border-color:#1f6b4547;color:#1f6b45}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.92rem}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #f4e6e6;vertical-align:top}html[data-theme=dark] th,html[data-theme=dark] td{border-bottom-color:#5a3a48}th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:500;text-transform:none}.badge.pending{background:#fcefd3;color:#7a5200}.badge.running{background:#e9def5;color:#5b3a86}.badge.connected,.badge.sent,.badge.ok{background:#ddf1e6;color:#1f6b45}.badge.error,.badge.failed{background:#fadde2;color:#9b2340}.badge.cancelled{background:#efe7ea;color:#6b5560}.muted{color:var(--muted)}.muted.tiny{font-size:.75rem;margin-top:2px}.count-pill{display:inline-flex;margin-left:8px;min-width:1.4rem;justify-content:center;padding:1px 7px;border-radius:999px;background:var(--bg-soft);border:1px solid var(--line);font-size:.75rem;color:var(--muted);font-weight:600;vertical-align:middle;font-family:DM Sans,Segoe UI,sans-serif}.dest-chip{display:inline-flex;margin-top:6px;padding:4px 10px;border-radius:999px;background:#8b3a621a;border:1px solid rgba(139,58,98,.22);color:var(--accent);font-size:.8rem;font-weight:600}.group-cell{font-weight:600;color:var(--text)}.history-card{opacity:.98}.selected-row{background:#8b3a620f}.clock{color:var(--muted);font-size:.88rem;font-variant-numeric:tabular-nums}.login-wrap{max-width:400px;margin:10vh auto;padding:0 16px;position:relative;z-index:1}.login{max-width:380px;margin:0 auto}.login .clock{display:block;margin-bottom:12px}.login h1{margin-top:0;font-size:1.75rem}.steps{display:flex;gap:8px;margin-bottom:14px;color:var(--muted);font-size:.85rem}.steps b.active{color:var(--accent)}.empty{color:var(--muted);padding:8px 0}.clickable{cursor:pointer}.clickable:hover td{background:#8b3a620f}.detail{margin-top:8px;background:#fbeff0}html[data-theme=dark] .detail{background:var(--bg-soft)}.when-block{display:grid;gap:8px}.quick-times{display:flex;flex-wrap:wrap;gap:8px}.quick-times button{background:#ffffffd9;color:#6e2a4b;border:1px solid #e6cdd2;border-radius:999px;padding:6px 12px;font-size:.85rem;min-height:36px}html[data-theme=dark] .quick-times button{background:#4a3040;color:#ffe8f0;border-color:#c9a0b0}html[data-theme=dark] .quick-times button:hover{background:#5a3a4c;border-color:#f0b8cc;color:#fff}.quick-times button:hover{border-color:var(--accent);color:var(--accent)}.when-preview{margin:0;font-size:.92rem;color:#6e2a4b;font-weight:500}html[data-theme=dark] .when-preview{color:var(--accent-2)}.when-preview.warn{color:var(--warn)}.advanced{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--bg-soft)}.advanced summary{cursor:pointer;color:var(--muted);font-size:.88rem}.advanced .grid{margin-top:12px}.manual{color:var(--muted);padding-left:1.2rem;line-height:1.55}.manual a{color:var(--accent)}.banner a{color:inherit;font-weight:600}@media(max-width:720px){.topbar{flex-direction:column;align-items:stretch}}@media(max-width:640px){.app{padding:16px 12px 40px;max-width:100%}.card{width:100%;border-radius:16px;padding:16px}.tabs{width:100%}.tabs a,.tabs button{flex:1 1 auto}.login-wrap{max-width:100%;margin:6vh auto;padding:0 12px}.login{max-width:100%}}.report-filters{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:end;margin:12px 0 8px}.report-dates{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:end}.report-dates label{min-width:148px}.report-date-sep{padding-bottom:10px;font-size:.9rem}.report-account{min-width:200px;flex:1}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 8px}.report-kpi{background:var(--bg-soft);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}.report-kpi strong{font-size:1.35rem;color:var(--title);font-family:"DM Serif Display",DM Sans,serif}.report-legend{display:flex;align-items:center;gap:8px;margin-top:8px}.legend-sent,.legend-failed{width:12px;height:12px;border-radius:3px;display:inline-block}.legend-sent{background:var(--ok)}.legend-failed{background:var(--danger)}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.report-wide{grid-column:1 / -1}.report-bars{display:flex;flex-direction:column;gap:10px;margin-top:8px}.report-bar-row{display:grid;grid-template-columns:minmax(72px,28%) 1fr auto;gap:8px;align-items:center}.report-bar-label{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-bar-track{display:flex;height:14px;background:var(--bg-soft);border-radius:999px;overflow:hidden;border:1px solid var(--line)}.report-bar-sent{height:100%;background:var(--ok);min-width:0}.report-bar-failed{height:100%;background:var(--danger);min-width:0}.report-bar-nums{min-width:3.2rem;text-align:right}@media(max-width:640px){.report-kpis{grid-template-columns:1fr 1fr}.report-grid{grid-template-columns:1fr}}
