:root{--rec-green:#173b2d;--rec-green-soft:#eaf0e4;--rec-rose:#9d4767;--rec-ink:#2a251f;--rec-muted:#7c746a;--rec-border:#e6d6c1;--rec-paper:#fffdf9;--rec-danger:#9b4b46}
.recurrence-main [hidden],.recurrence-dialog [hidden],.recurrence-toast[hidden]{display:none!important}
.recurrence-main{padding-bottom:72px}
.recurrence-refresh{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:0 18px;border:1px solid #d9c8b1;border-radius:14px;background:#fffdf9;color:var(--rec-ink);font:inherit;font-weight:750;cursor:pointer}
.recurrence-refresh svg{width:18px;height:18px}
.recurrence-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:210px;margin-bottom:18px;padding:34px 38px;border-radius:25px;overflow:hidden;color:#fff;background:linear-gradient(120deg,#183b2d 0%,#30452e 60%,#633348 100%);box-shadow:0 18px 44px rgba(31,43,29,.16);position:relative}
.recurrence-hero::after{content:"";position:absolute;right:-80px;bottom:-150px;width:330px;height:330px;border:1px solid rgba(255,229,173,.16);border-radius:50%;box-shadow:0 0 0 42px rgba(255,229,173,.035),0 0 0 94px rgba(255,229,173,.02)}
.recurrence-hero>div,.recurrence-secure{position:relative;z-index:1}
.recurrence-hero .eyebrow{color:#edca7e}.recurrence-hero h2{max-width:800px;margin:7px 0 12px;font-size:clamp(31px,3vw,48px);line-height:1.03}.recurrence-hero p:last-child{max-width:760px;margin:0;color:rgba(255,255,255,.74);font-size:16px;line-height:1.6}
.recurrence-secure{flex:0 0 auto;padding:11px 15px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);font-size:13px;font-weight:750}
.recurrence-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
.recurrence-kpis article{padding:22px 24px;border:1px solid var(--rec-border);border-radius:19px;background:var(--rec-paper);box-shadow:0 9px 25px rgba(52,43,32,.045)}
.recurrence-kpis span{display:block;color:var(--rec-muted);font-size:13px;font-weight:750;text-transform:uppercase;letter-spacing:.7px}.recurrence-kpis strong{display:block;margin:7px 0 2px;color:var(--rec-green);font-size:34px}.recurrence-kpis small{color:var(--rec-muted);font-size:13px}
.recurrence-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px;padding:13px;border:1px solid var(--rec-border);border-radius:18px;background:var(--rec-paper)}
.recurrence-tabs{display:flex;gap:7px;overflow:auto}.recurrence-tabs button{min-height:48px;padding:0 19px;border:1px solid transparent;border-radius:13px;background:#f1ebe2;color:#5f574d;font:inherit;font-weight:750;cursor:pointer;white-space:nowrap}.recurrence-tabs button.active{background:var(--rec-green);color:#fff;box-shadow:0 7px 18px rgba(23,59,45,.16)}
.recurrence-toolbar>label{display:grid;gap:6px;min-width:min(340px,40vw)}.recurrence-toolbar label span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}.recurrence-toolbar input{height:48px;padding:0 15px;border:1px solid #d9c8b1;border-radius:13px;background:#fff;font:inherit}
.recurrence-panel{border:1px solid var(--rec-border);border-radius:22px;background:var(--rec-paper);overflow:hidden;box-shadow:0 12px 32px rgba(52,43,32,.055)}
.recurrence-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid var(--rec-border)}.recurrence-panel-heading h2{margin:3px 0 0;font-size:25px}.recurrence-panel-heading>span{color:var(--rec-muted);font-size:14px;font-weight:700}
.recurrence-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 18px 0;padding:15px 17px;border:1px solid #dfc8a2;border-radius:15px;background:#fff8e9;color:#5e4b2c}.recurrence-notice strong{display:block;font-size:15px}.recurrence-notice p{margin:3px 0 0;font-size:14px;line-height:1.45}.recurrence-notice button,.recurrence-empty button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid var(--rec-green);border-radius:12px;background:var(--rec-green);color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer}.recurrence-notice button{flex:0 0 auto}.recurrence-notice svg,.recurrence-empty button svg{width:17px;height:17px}
.recurrence-list{display:grid;gap:12px;padding:18px}
.recurrence-card{display:grid;grid-template-columns:minmax(240px,1.15fr) minmax(260px,1fr) auto;align-items:center;gap:22px;padding:21px;border:1px solid #eadccc;border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(56,46,34,.035)}
.recurrence-card-title{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:14px}.recurrence-card-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:var(--rec-green-soft);color:var(--rec-green)}.recurrence-card-icon svg{width:23px;height:23px}.recurrence-card-title strong{display:block;font-size:18px}.recurrence-card-title small{display:block;margin-top:5px;color:var(--rec-muted);font-size:14px}
.recurrence-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px}.recurrence-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eee7dd;color:#62584c;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.45px}.recurrence-badge.module{background:#f6e3e9;color:#813d59}.recurrence-badge.active{background:#e5efdc;color:#4b6537}.recurrence-badge.paused{background:#f4ead7;color:#8b6629}.recurrence-badge.stopped{background:#eee9e5;color:#766c63}
.recurrence-card-plan p{margin:0;color:#3e3933;font-size:15px;line-height:1.55}.recurrence-card-plan small{display:block;margin-top:5px;color:var(--rec-muted);font-size:13px}
.recurrence-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.recurrence-actions button{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 12px;border:1px solid #dac9b3;border-radius:12px;background:#fffdf9;color:#4f473e;font:inherit;font-size:13px;font-weight:750;cursor:pointer}.recurrence-actions button svg{width:16px;height:16px}.recurrence-actions .resume{border-color:#b7c9a7;background:#e9f0e2;color:#3f5c34}.recurrence-actions .danger{border-color:#e3b8b3;color:#914641}.recurrence-actions .archive{border-color:#d9c6c2;background:#fff7f5;color:#873f3b}.recurrence-actions button:disabled{opacity:.55;cursor:wait}
.recurrence-archived{color:var(--rec-muted);font-size:13px;font-weight:700}
.recurrence-loading,.recurrence-empty{display:grid;min-height:230px;place-items:center;align-content:center;gap:11px;color:var(--rec-muted);text-align:center}.recurrence-loading>span{width:31px;height:31px;border:3px solid #dfe4d5;border-top-color:var(--rec-green);border-radius:50%;animation:rec-spin .8s linear infinite}.recurrence-empty strong{font-size:20px;color:var(--rec-ink)}.recurrence-empty p{margin:0}
.recurrence-toast{position:fixed;right:28px;bottom:28px;z-index:80;max-width:430px;padding:15px 18px;border-radius:14px;background:#183b2d;color:#fff;box-shadow:0 16px 42px rgba(20,34,25,.28);font-size:14px;font-weight:700}.recurrence-toast.error{background:#8f443f}
.recurrence-dialog{width:min(720px,calc(100vw - 28px));padding:0;border:0;border-radius:23px;background:#fffdf9;color:var(--rec-ink);box-shadow:0 30px 85px rgba(27,25,21,.34)}.recurrence-dialog::backdrop{background:rgba(20,23,18,.57);backdrop-filter:blur(4px)}.recurrence-dialog form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid var(--rec-border)}.recurrence-dialog h2{margin:4px 0 5px;font-size:29px}.recurrence-dialog header p:last-child{margin:0;color:var(--rec-muted)}.recurrence-dialog header button{display:grid;width:46px;height:46px;place-items:center;border:0;border-radius:50%;background:#f1ece5;cursor:pointer}.recurrence-dialog header svg{width:21px;height:21px}.recurrence-dialog-body{display:grid;gap:17px;padding:25px 28px}.recurrence-dialog label{display:grid;gap:7px}.recurrence-dialog label>span,.recurrence-dialog legend{font-size:14px;font-weight:750}.recurrence-dialog input,.recurrence-dialog select{width:100%;height:52px;padding:0 14px;border:1px solid #d9c8b1;border-radius:13px;background:#fff;font:inherit}.recurrence-dialog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.recurrence-dialog fieldset{display:flex;gap:8px;margin:0;padding:0;border:0}.recurrence-dialog legend{margin-bottom:9px}.recurrence-dialog fieldset label input{position:absolute;opacity:0}.recurrence-dialog fieldset label span{display:grid;width:52px;height:48px;place-items:center;border:1px solid #d9c8b1;border-radius:12px;background:#fff;cursor:pointer}.recurrence-dialog fieldset label input:checked+span{border-color:var(--rec-green);background:var(--rec-green);color:#fff}.recurrence-form-error{padding:12px 14px;border:1px solid #e2b7b2;border-radius:12px;background:#fff4f1;color:#914641;font-size:14px;font-weight:700}.recurrence-dialog footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid var(--rec-border)}.recurrence-dialog footer button{min-height:49px;padding:0 19px;border-radius:13px;font:inherit;font-weight:750;cursor:pointer}.recurrence-dialog footer .secondary{border:1px solid #d9c8b1;background:#fff}.recurrence-dialog footer .primary{border:1px solid var(--rec-green);background:var(--rec-green);color:#fff}
@keyframes rec-spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.recurrence-card{grid-template-columns:1fr 1fr}.recurrence-actions{grid-column:1/-1;justify-content:flex-start}.recurrence-hero{align-items:flex-start;flex-direction:column}.recurrence-secure{align-self:flex-start}}
@media(max-width:720px){.recurrence-main{padding-inline:15px}.recurrence-hero{min-height:0;padding:26px 23px}.recurrence-kpis{grid-template-columns:1fr}.recurrence-toolbar{align-items:stretch;flex-direction:column}.recurrence-toolbar>label{min-width:0}.recurrence-card{grid-template-columns:1fr;padding:17px}.recurrence-actions{grid-column:auto;justify-content:flex-start}.recurrence-actions button{min-height:46px}.recurrence-notice{align-items:stretch;flex-direction:column}.recurrence-notice button{width:100%}.recurrence-dialog-grid{grid-template-columns:1fr}.recurrence-dialog fieldset{flex-wrap:wrap}.recurrence-panel-heading{align-items:flex-start;flex-direction:column}.recurrence-dialog form>header,.recurrence-dialog-body,.recurrence-dialog footer{padding-inline:20px}}
