#st-recurring-editor { min-width: 0; margin-top: 20px; }
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.rc-primary:has(#rc-amount-field[hidden]) { grid-template-columns: 1fr; }
#rc-repeat, .rc-change-field, .rc-steps { margin-top: 14px; }
.rc-select {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 32px 8px 12px;
  border: 1px solid #becdc3; border-radius: 8px; color: var(--ink); background: var(--card);
  font: inherit; font-size: .96rem; font-weight: 520; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23536c60' stroke-width='1.5'%3E%3Cpath d='m3.5 6 4.5 4 4.5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 15px; background-position: right 11px center;
}
.rc-steps { border-left: 2px solid #bfcebb; padding-left: 12px; }
.rc-steps p { grid-column: 1/-1; }
#st-recurring-editor .rc-cadence-note { margin-top: 6px; font-size: .81rem; }
.rc-interval select { border: 0; border-left: 1px solid var(--line); padding: 3px 0 3px 5px; background: transparent; color: var(--ink); font-size: .9rem; }
#st-recurring-editor .st-input span { white-space: nowrap; }
.rc-special { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.rc-disclosure {
  width: 100%; padding: 3px 0; display: flex; align-items: center; justify-content: space-between;
  text-align: left; font-size: .94rem; font-weight: 580; color: var(--green);
}
.rc-disclosure i {
  width: 7px; height: 7px; margin-right: 4px; border-bottom: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor; transform: rotate(45deg);
}
.rc-disclosure[aria-expanded="true"] i { transform: rotate(225deg); }
#rc-list { padding-top: 4px; }
#rc-hint:not([hidden]) { margin: 4px 0 12px; }
.rc-toolbar, .rc-actions, .rc-pages, #rc-page-controls { display: flex; align-items: center; }
.rc-toolbar { justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.rc-actions { flex-wrap: wrap; gap: 5px 8px; }
.rc-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 9px; border: 1px solid #cdddcf; border-radius: 6px; background: #f1f6ef; color: var(--green); font-size: .85rem; font-weight: 570; }
.rc-actions button::before { content: ''; width: 10px; height: 10px; background: linear-gradient(currentColor,currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor,currentColor) center / 1.5px 10px no-repeat; }
.rc-actions button:hover { background: #e0eddf; }
.rc-pages { gap: 7px; color: var(--muted); font-size: .8rem; }
#rc-range { white-space: nowrap; }
#rc-page-controls { gap: 3px; }
#rc-page-controls button, .rc-remove { display: grid; place-items: center; border-radius: 5px; color: var(--muted); }
#rc-page-controls button { width: 28px; height: 30px; border: 1px solid var(--line); background: white; }
#rc-page-controls button::before { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); }
#rc-page-controls #rc-prev::before { transform: rotate(-135deg); }
#rc-page-controls button:hover { background: #eff5ed; color: var(--green); }
#rc-page-controls button[aria-disabled=true] { color: #a4afa8; background: transparent; cursor: default; }
.rc-sheet { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; }
.rc-columns, .rc-row { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,1fr) 30px; gap: 0 6px; padding-inline: 5px; align-items: center; }
.rc-columns { border-radius: 8px 8px 0 0; background: #f1f4ef; color: var(--muted); font-size: .81rem; font-weight: 550; }
.rc-columns span { padding: 8px 6px; }
.rc-row { min-height: 44px; padding-block: 4px; border-top: 1px solid #e4e9e2; }
.rc-row:focus-within { background: #f8fbf6; }
.rc-row:last-child { border-radius: 0 0 8px 8px; }
#st-recurring-editor .rc-row .st-input { min-width: 0; min-height: 35px; padding-inline: 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; }
#st-recurring-editor .rc-row .st-input:hover { border-color: #c7d7c8; }
#st-recurring-editor .rc-row .st-input:focus-within { border-color: var(--green); background: var(--card); outline: 1px solid var(--green); outline-offset: 0; }
#st-recurring-editor .rc-row input { min-height: 30px; padding: 3px 0; font-size: .94rem; font-weight: 530; }
.rc-row input::-webkit-calendar-picker-indicator { width: 15px; padding: 1px; margin: 0; }
.rc-remove { height: 34px; width: 30px; font-size: 1.22rem; }
.rc-remove:hover { color: #89452c; background: #f8ece4; }
.rc-month-note { grid-column: 1 / -1; padding: 0 6px 3px; color: var(--muted); font-size: .78rem; }
@media (min-width:691px) and (max-width:970px), (max-width:430px) {
  .rc-primary { grid-template-columns: 1fr; }
  #st-recurring-editor .st-input { padding-inline: 8px; }
  #st-recurring-editor .st-input input { font-size: .95rem; }
}
@media (max-width:360px) {
  #rc-repeat > .rc-grid:first-child { grid-template-columns: 1fr; }
  .rc-columns, .rc-row { grid-template-columns: minmax(0,1.22fr) minmax(0,1fr) 26px; gap: 0 3px; padding-inline: 3px; }
  .rc-remove { width: 26px; }
}
