:root{color:#17211b;font-synthesis:none;background:#f4f6f2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{color:#fff;cursor:pointer;background:#166534;border:0;border-radius:10px;padding:11px 16px;font-weight:650}button:hover:not(:disabled){filter:brightness(.94)}button:disabled{cursor:wait;opacity:.65}button.secondary{color:#26342b;background:#e7ece6}button.danger{background:#a82c22}.auth-wrap{background:radial-gradient(circle at top,#dceadb,#f4f6f2 55%);place-items:center;min-height:100vh;padding:24px;display:grid}.panel{background:#fff;border:1px solid #e0e5df;border-radius:16px;padding:24px;box-shadow:0 8px 35px #1c30230e}.auth-card{gap:16px;width:min(420px,100%);display:grid}.auth-card h1{margin:0}.brand-mark{color:#fff;background:#166534;border-radius:12px;place-items:center;width:42px;height:42px;font-weight:800;display:inline-grid}.muted,.hint{color:#667269}.error{color:#b42318;min-height:20px}.app-shell{grid-template-columns:240px 1fr;min-height:100vh;display:grid}aside{color:#fff;background:#102219;flex-direction:column;height:100vh;padding:24px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;margin-bottom:35px;display:flex}nav{gap:6px;display:grid}nav a{color:#c8d3cc;border-radius:10px;padding:11px 16px;font-weight:650;text-decoration:none}nav a.router-link-active{color:#fff;background:#244132}.profile{overflow-wrap:anywhere;gap:4px;margin-top:auto;display:grid}.profile small{color:#91a49a}.link-button{text-align:left;color:#b7c8bd;background:0 0;padding:8px 0}.content{width:100%;max-width:1300px;margin:0 auto;padding:44px}.content header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.content h1{margin:2px 0;font-size:34px}.content h2{margin-top:0}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:#36704c;margin:0;font-size:12px;font-weight:750}.stats{grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px;display:grid}.stat{color:#fff;background:#173e29;border-radius:16px;padding:22px}.stat strong{font-size:32px;display:block}.stat span{color:#bcd0c2}.steps{line-height:1.9}.dashboard-lead{color:#667269;max-width:760px;margin:8px 0 0;line-height:1.55}.dashboard-section{margin-top:20px}.stats-explanations{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.stats-explanations article{background:#f8faf8;border:1px solid #dfe5de;border-radius:12px;padding:16px}.stats-explanations p{color:#667269;margin:6px 0 0;line-height:1.55}.setup-steps{gap:20px;margin:24px 0;padding-left:28px;display:grid}.setup-steps>li{padding-left:6px}.setup-steps>li::marker{color:#166534;font-weight:800}.setup-steps p{margin:7px 0;line-height:1.6}.setup-steps ul{color:#526158;margin:8px 0 0;padding-left:22px;line-height:1.65}.setup-steps a,.primary-link{color:#166534;font-weight:700}.primary-link{color:#fff;background:#166534;border-radius:10px;padding:11px 16px;text-decoration:none;display:inline-block}.warning,.flash{border-radius:10px;margin-bottom:18px;padding:14px 17px}.warning{color:#694c00;background:#fff3ce}.flash{color:#125a31;background:#d9f7e4}.flash.bad{color:#912018;background:#fee4e2}.cards{gap:14px;margin:20px 0;display:grid}.card{background:#fff;border:1px solid #dfe6df;border-radius:14px;justify-content:space-between;align-items:center;gap:18px;padding:20px;display:flex}.card h3{margin:0 0 5px}.card p{color:#637067;margin:3px 0}.actions{flex-wrap:wrap;gap:8px;display:flex}.actions button{padding:8px 12px}.form-head,.message-title,.user-row{justify-content:space-between;align-items:center;gap:14px;display:flex}.grid{gap:16px;display:grid}.grid.two{grid-template-columns:1fr 1fr}.delay-subject{grid-template-columns:180px 1fr}label{gap:7px;margin-bottom:15px;font-size:14px;font-weight:650;display:grid}input,textarea,select{color:#18241c;background:#fff;border:1px solid #cdd6ce;border-radius:9px;width:100%;padding:11px 12px}textarea{resize:vertical;font-family:ui-monospace,SFMono-Regular,monospace;line-height:1.45}.site-form,.integration-panel{margin-top:20px}.integration-panel button,.integration-panel .integration-actions{margin:-4px 0 18px}.integration-panel .integration-actions button{margin:0}.message-card{border:1px solid #dfe5de;border-radius:12px;margin:18px 0;padding:18px}.message-title>div{gap:2px;display:grid}.message-title span{color:#728078;font-size:12px}.preview-button{padding:8px 12px}.template-help{background:#f7faf7;border:1px solid #dbe4dc;border-radius:12px;margin:20px 0;padding:16px}.template-help summary{color:#24633d;cursor:pointer;font-weight:750}.template-variable-group{margin-top:16px}.template-variable-group h4{margin:0 0 8px}.template-variable-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.template-variable{color:#26342b;text-align:left;background:#fff;border:1px solid #d8dfd9;gap:4px;min-width:0;padding:10px 12px;font-weight:500;display:grid}.template-variable:hover:not(:disabled){filter:none;border-color:#5c9a70}.template-variable code{color:#126436;overflow-wrap:anywhere;width:fit-content;font-weight:750}.template-variable span{color:#667269;font-size:12px;line-height:1.4}.email-preview-modal{width:min(900px,100%)}.email-preview-modal h2{margin:2px 0 0}.preview-loading{text-align:center;color:#667269;padding:40px}.mail-client-mockup{background:#fff;border:1px solid #dcdfdc;border-radius:12px;flex-direction:column;margin-top:16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;overflow:hidden;box-shadow:0 8px 30px #00000014}.mail-client-header{background:#f1f4f1;border-bottom:1px solid #e1e5e1;align-items:center;gap:8px;padding:12px 16px;display:flex}.window-dot{border-radius:50%;width:10px;height:10px}.window-dot.red{background:#ff5f56}.window-dot.yellow{background:#ffbd2e}.window-dot.green{background:#27c93f}.mail-client-title{color:#556257;margin-left:8px;font-size:12px;font-weight:500}.mail-message-envelope{background:#fafcfa;border-bottom:1px solid #f0f3f0;padding:18px 24px}.envelope-subject-line{align-items:center;gap:10px;margin-bottom:12px;display:flex}.envelope-badge{color:#1b5e20;letter-spacing:.3px;background:#e2ede2;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:600}.envelope-subject{color:#1a1a1a;flex:1;margin:0;font-size:18px;font-weight:700}.sender-info-row{align-items:center;gap:12px;display:flex}.sender-avatar{color:#fff;background:#4f46e5;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:16px;font-weight:700;display:flex;box-shadow:inset 0 -2px #0000001a}.sender-details{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.sender-name-container{align-items:baseline;gap:6px;min-width:0;display:flex}.sender-name{color:#222;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;overflow:hidden}.sender-email{color:#6c756d;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.recipient-line{color:#6c756d;font-size:12px}.recipient-email{color:#333;font-weight:500}.message-meta{align-items:center;gap:12px;display:flex}.message-time{color:#728075;font-size:12px}.message-star{color:#f1c40f;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:16px}.mail-body-container{background:#ecefed;padding:12px}.email-preview-frame{background:#fff;border:1px solid #dfe5de;border-radius:8px;width:100%;min-height:520px;box-shadow:0 2px 8px #00000008}.switch{grid-template-columns:auto 1fr;align-items:center;display:flex}.switch input{width:auto}.selector-field{background:#f9faf8;border:1px solid #dfe5de;border-radius:12px;min-width:0;padding:16px}.selector-field label{margin-bottom:8px}.selector-field details{margin-top:12px}.selector-field summary{color:#24633d;cursor:pointer;font-size:13px;font-weight:650}.selector-field details textarea{margin-top:10px}.selector-field .hint{margin:5px 0;font-size:12px;line-height:1.5}.selector-result{color:#126436;margin:10px 0 0;font-size:13px}.selector-result.bad{color:#a82c22}.input-with-action{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.input-with-action button{padding-inline:12px}.scenario-section{background:#f7faf7;border:1px solid #dbe4dc;border-radius:14px;margin:22px 0;padding:20px}.scenario-heading h3{margin:0 0 4px}.scenario-heading p{margin:0 0 14px}.scenario-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.scenario-card{opacity:.7;background:#fff;border:1px solid #d8dfd9;border-radius:12px;min-width:0;padding:16px}.scenario-card.enabled{opacity:1;border-color:#5c9a70;box-shadow:inset 0 0 0 1px #5c9a70}.scenario-card p{color:#667269;min-height:58px;margin:8px 0 14px;font-size:12px;line-height:1.5}.scenario-switch{align-items:flex-start;margin:0}.scenario-delays{gap:9px;display:grid}.scenario-delays label{margin:0;font-size:12px}.scenario-delays input{padding:9px 10px}.threshold-grid{margin-top:16px}.threshold-grid label{margin-bottom:0}.table-wrap{padding:0;overflow:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;border-bottom:1px solid #e5e9e5;padding:15px}th{text-transform:uppercase;color:#6b776f;font-size:12px}.status{background:#e8eee9;border-radius:999px;padding:4px 9px;display:inline-block}.status.pending{color:#755400;background:#fff0c2}.status.processing{color:#174c91;background:#e0ecff}.status.paid,.status.sent{color:#126436;background:#d7f5e2}.status.unsubscribed,.status.cancelled,.status.removed{color:#666;background:#eee}.status.failed{color:#912018;background:#fee4e2}.queue-toolbar{grid-template-columns:minmax(220px,320px) 1fr;align-items:end;gap:22px;margin-bottom:18px;padding:16px;display:grid}.queue-toolbar label,.queue-toolbar p{margin:0}.queue-table table{min-width:1080px}.queue-table td:nth-child(5){max-width:280px}.queue-note,.queue-error{max-width:260px;margin-top:5px;display:block}.queue-note{color:#667269}.queue-error{color:#912018;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.queue-cancel{white-space:nowrap;padding:8px 10px}code{background:#eef1ee;border-radius:4px;padding:2px 5px}.modal-backdrop{z-index:30;background:#0a19108c;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{width:min(580px,100%);max-height:calc(100vh - 32px);overflow:auto}.user-list{gap:8px;margin:18px 0;display:grid}.user-row{background:#f3f6f3;border-radius:10px;padding:12px}.user-row button{padding:7px 10px}.error-filters{grid-template-columns:180px 220px minmax(220px,1fr) auto;align-items:end;gap:12px;margin-bottom:18px;padding:16px;display:grid}.error-filters label{margin:0}.error-filters button{margin-bottom:0}.error-table table{min-width:980px}.error-table td:nth-child(2){max-width:430px}.error-table td:nth-child(3) span,.error-table td:nth-child(3) small{display:block}.error-table td:nth-child(3) small{color:#758078;overflow-wrap:anywhere;max-width:260px;margin-top:4px}.error-table tr.resolved{opacity:.58}.error-message{color:#667269;white-space:nowrap;text-overflow:ellipsis;max-width:430px;margin-top:5px;overflow:hidden}.source-badge{white-space:nowrap;background:#e7ece6;border-radius:7px;padding:5px 8px;font-size:12px;font-weight:700;display:inline-block}.source-badge.backend,.source-badge.process{color:#912018;background:#fee4e2}.source-badge.email_worker{color:#755400;background:#fff0c2}.source-badge.admin_frontend,.source-badge.tilda_widget{color:#174c91;background:#e0ecff}.error-detail{margin-top:20px}.error-detail-message{color:#8f281f;overflow-wrap:anywhere;background:#fff1ef;border-radius:10px;padding:13px 15px}.error-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;display:grid}.error-meta div{background:#f3f6f3;border-radius:9px;min-width:0;padding:12px}.error-meta dt{color:#738078;font-size:12px}.error-meta dd{overflow-wrap:anywhere;margin:4px 0 0}.error-detail pre{color:#d7e4da;white-space:pre-wrap;overflow-wrap:anywhere;background:#102219;border-radius:10px;max-height:320px;padding:14px;font:12px/1.55 ui-monospace,monospace;overflow:auto}@media (width<=800px){.app-shell{grid-template-columns:1fr}aside{height:auto;position:static}.profile{margin-top:20px}.content{padding:24px 16px}.stats,.stats-explanations,.grid.two,.delay-subject,.input-with-action,.scenario-grid,.error-filters,.error-meta,.queue-toolbar,.template-variable-grid{grid-template-columns:1fr}.scenario-card p{min-height:0}.card{flex-direction:column;align-items:flex-start}}
