.recurrence-settings { margin: 18px 0; padding: 16px; border: 1px solid #ccdcc8; border-radius: 13px; background: #f3f7eb; }
.recurrence-settings [hidden] { display: none !important; }
.recurrence-toggle { display: flex; align-items: flex-start; gap: 11px; margin: 0; cursor: pointer; }
.recurrence-toggle > input { width: 19px; height: 19px; min-height: 0; margin: 3px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.recurrence-toggle strong { display: block; font-size: .88rem; margin-bottom: 3px; }
.recurrence-toggle small { display: block; color: var(--muted); font-size: .77rem; font-weight: 400; line-height: 1.55; }
.recurrence-fields { margin-top: 17px; border-top: 1px solid #d4e1ce; padding-top: 16px; }
.recurrence-days { border: 0; padding: 0; margin: 0 0 15px; min-width: 0; }
.recurrence-days > legend { font-size: .82rem; font-weight: 700; padding: 0; margin-bottom: 6px; }
.recurrence-presets { display: flex; gap: 15px; margin-bottom: 10px; }
.recurrence-presets > button { font-size: .74rem; padding: 3px 0; }
.recurrence-day-choices { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.recurrence-day-choices label { display: block; position: relative; cursor: pointer; margin: 0; }
.recurrence-day-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; min-height: 0; }
.recurrence-day-choices span { display: grid; place-items: center; min-height: 38px; border: 1px solid #c8d8c3; border-radius: 8px; background: #fff; color: #426249; font-size: .7rem; font-weight: 600; }
.recurrence-day-choices input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.recurrence-day-choices input:focus-visible + span { outline: 3px solid #7eb28f; outline-offset: 2px; }
.recurrence-day-choices input:disabled + span { opacity: .6; }
.recurrence-note { color: var(--primary-dark); font-size: .79rem; font-weight: 650; line-height: 1.5; margin: 13px 0 7px; }
.recurrence-summary { display: flex; align-items: flex-start; gap: 7px; color: var(--primary-dark); font-size: .75rem; font-weight: 550; line-height: 1.55; margin-top: 8px; overflow-wrap: anywhere; }
.recurrence-summary > span:first-child { font-size: 1rem; line-height: 1.2; }
.recurrence-summary.is-paused { color: #79603a; }
.recurrence-editor { border: 1px solid #cfddc8; border-radius: 11px; background: #f7faf2; padding: 14px; margin: 18px 0; }
.recurrence-editor > summary { cursor: pointer; font-weight: 750; font-size: .88rem; color: var(--primary-dark); }
.recurrence-editor form { margin-top: 17px; }
.recurrence-editor .two-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.recurrence-editor label { font-size: .82rem; }
.recurrence-editor input:not([type="checkbox"]) { width: 100%; min-width: 0; margin-bottom: 13px; }
.recurrence-editor .recurrence-day-choices { max-width: 420px; }
.recurrence-editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.recurrence-editor-actions button { font-size: .8rem; min-height: 40px; }
.recurrence-editor-status { font-size: .82rem; line-height: 1.5; margin: 13px 0 0; color: var(--muted); }
.recurrence-editor-status:empty { display: none; }
.recurrence-editor-status.is-error { color: var(--danger); }
@media (max-width: 420px) { .recurrence-settings { padding: 12px; } .recurrence-day-choices { gap: 3px; } .recurrence-day-choices span { font-size: .65rem; } .recurrence-editor .two-field-row { grid-template-columns: 1fr; gap: 0; } }

.recurrence-note.is-error { color: var(--danger, #b42318); }
