/* RECURRING (27 Oct 2026, Claude): recurring reservations — choice menu, creation and list dialogs, "Recorrente" tags.
   No inline styles (Admin CSP).
   Design alignment -rd1 (27 Oct 2026, owner): every value below is the shipped /channex/ pattern it mirrors, measured on the live
   page (theme = materialize-madalena.css, admin = admin.css): the dialogs are the Nova reserva card (.modal-card / .modal-head /
   .icon-button / .reservation-section-title / .account-modal-card fields / .access-kind / pinned .modal-actions, centred card with
   18 px gutters on phones), the night chips are the Calendário weekday .filter-chip, the period/visit/refund pills are the compact
   .status-badge tones, panels are .lock-detail-panel / .checkin-feature-card, notices are .provider-notice / .form-error, row
   buttons are the .button row action, and the "Recorrente" tag is a compact gold .status-badge. Radii use the theme scale
   (.5rem controls and panels, var(--radius) cards, .75rem modal). Layout, selectors and behaviour are unchanged. */
.ri-repeat-line {
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M6 4h15a1 1 0 0 1 1 1v7h-2V6H6v3L1 5l5-4zm12 16H3a1 1 0 0 1-1-1v-7h2v6h14v-3l5 4l-5 4z'/%3E%3C/svg%3E");
}
.ri-skip-forward-line {
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M16 12.667L5.777 19.482A.5.5 0 0 1 5 19.066V4.934a.5.5 0 0 1 .777-.416L16 11.333V5a1 1 0 1 1 2 0v14a1 1 0 1 1-2 0zm-9-4.93v8.526L13.394 12z'/%3E%3C/svg%3E");
}

/* Tag (Calendário bars, Reservas rows, Limpeza, the list): a compact .status-badge in the brand gold (theme 458 + 845). */
body.rm-admin .rec-tag { display: inline-flex; align-items: center; gap: 3px; min-height: 18px; margin-left: 6px; padding: 0 7px; border-radius: 99px;
  background: var(--rm-accent-soft); color: #8a6420; font-size: 10px; font-weight: 650; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap; }
body.rm-admin .rec-tag .ri { font-size: 11px; }
body.rm-admin .rec-tag.is-compact { min-height: 16px; margin-left: 4px; padding: 0 4px; }
body.rm-admin .calendar-stay .rec-tag { background: rgba(255, 255, 255, .85); }

/* Nova reserva choice: a theme dropdown card (radius var(--radius), large theme shadow), rows like the .access-kind options. */
body.rm-admin .rec-choice { position: fixed; z-index: 1200; left: var(--rec-left, 16px); top: var(--rec-top, 64px); width: min(300px, calc(100vw - 16px));
  padding: 6px; border: 1px solid var(--rm-line); border-radius: var(--radius, .625rem); background: var(--rm-paper); box-shadow: var(--bs-box-shadow-lg, 0 .375rem 1rem rgba(38, 43, 67, .16)); }
body.rm-admin .rec-choice[hidden] { display: none; }
body.rm-admin .rec-choice button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 7px 10px; border: 0; border-radius: .5rem;
  background: transparent; color: var(--rm-heading); font: inherit; text-align: left; cursor: pointer; }
body.rm-admin .rec-choice button + button { margin-top: 2px; }
body.rm-admin .rec-choice button > .ri { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: .5rem;
  background: var(--rm-primary-soft); color: var(--rm-primary); font-size: 17px; flex: none; }
body.rm-admin .rec-choice b { display: block; color: var(--rm-primary); font-size: 13px; font-weight: 650; }
body.rm-admin .rec-choice small { display: block; color: var(--rm-text); font-size: 11px; font-weight: 500; }
body.rm-admin .rec-choice button:hover, body.rm-admin .rec-choice button:focus-visible { background: var(--rm-primary-soft); outline: none; }
body.rm-admin .rec-choice button:hover > .ri, body.rm-admin .rec-choice button:focus-visible > .ri { background: var(--rm-paper); }

/* Dialog shell = the Nova reserva card (theme 519-535 .modal / .modal-card / .modal-head, 1861-1864 account-modal-card head). */
body.rm-admin dialog.rec-dialog { box-sizing: border-box; width: min(760px, calc(100vw - 36px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: .75rem; background: var(--rm-paper); color: var(--rm-text); box-shadow: none; overflow: hidden; }
body.rm-admin dialog.rec-dialog[open] { display: flex; animation: rec-in .18s ease-out; }
body.rm-admin dialog.rec-dialog::backdrop { background: rgba(25, 28, 42, .58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
body.rm-admin .rec-card { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
body.rm-admin .rec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rm-line);
  background: rgba(255, 255, 255, .96); }
body.rm-admin .rec-head h2 { margin: 2px 0 0; color: var(--rm-heading); font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: .1px; }
/* Close = the head .icon-button (theme 93-104, 1864): 30 px, theme radius, line border, white. */
body.rm-admin .rec-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-width: 30px; height: 30px; padding: 0; border: 1px solid var(--rm-line);
  border-radius: .5rem; background: var(--rm-paper); color: var(--rm-text); font-size: 1.2rem; cursor: pointer; flex: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease; }
body.rm-admin .rec-icon:hover, body.rm-admin .rec-icon:focus-visible { border-color: #bdc9d9; color: var(--rm-primary); background: var(--rm-primary-soft); outline: none; }
body.rm-admin .rec-body { overflow: auto; overscroll-behavior: contain; padding: 12px 20px 20px; -webkit-overflow-scrolling: touch; }

/* Form: section titles = .reservation-section-title (theme 1192, 3588), fields = .account-modal-card .form-grid (theme 1870-1873). */
body.rm-admin .rec-form { display: flex; flex-direction: column; gap: 18px; }
body.rm-admin .rec-section { min-width: 0; margin: 0; padding: 0; border: 0; }
body.rm-admin .rec-section legend { padding: 0 0 10px; color: var(--rm-heading); font-size: 13px; font-weight: 600; letter-spacing: .1px; text-transform: none; }
body.rm-admin .rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.rm-admin .rec-grid[hidden], body.rm-admin .rec-pattern[hidden], body.rm-admin [data-rec-end][hidden], body.rm-admin [data-rec-price][hidden] { display: none; }
body.rm-admin .rec-wide { grid-column: 1 / -1; }
body.rm-admin .rec-form label { margin: 0; }
body.rm-admin .rec-form label > span { display: block; margin: 0 0 5px; color: var(--rm-text); font-size: 12px; font-weight: 600; letter-spacing: .1px; }
body.rm-admin .rec-form input, body.rm-admin .rec-form select, body.rm-admin .rec-end input { box-sizing: border-box; width: 100%; min-height: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--rm-line); border-radius: 10px; background-color: var(--rm-paper); color: var(--rm-heading); font: inherit; font-size: 14px; box-shadow: none; }
body.rm-admin .rec-form input:focus, body.rm-admin .rec-form select:focus, body.rm-admin .rec-end input:focus { border-color: var(--rm-primary); outline: none;
  box-shadow: 0 0 0 .15rem rgba(20, 47, 83, .14); }
/* Cobrança / Padrão: the .access-kind option cards (admin 531-539 + theme 504-516). The rule is scoped under .rec-form so the
   field label rule above no longer flattens the option title and its small line onto one line. */
body.rm-admin .rec-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.rm-admin .rec-seg label { position: relative; cursor: pointer; }
body.rm-admin .rec-seg input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
body.rm-admin .rec-form .rec-seg label > span { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 38px; margin: 0; padding: 7px 11px;
  border: 1px solid var(--rm-line); border-radius: .5rem; background: var(--rm-body); color: #3f4a5c; font-size: 12px; font-weight: 650; letter-spacing: .1px; cursor: pointer; }
body.rm-admin .rec-seg small { display: block; color: var(--rm-text); font-size: 10.5px; font-weight: 500; }
body.rm-admin .rec-form .rec-seg input:checked + span { border-color: var(--rm-primary); background: var(--rm-primary-soft); box-shadow: 0 0 0 .15rem rgba(20, 47, 83, .1); }
body.rm-admin .rec-seg input:focus-visible + span { outline: 2px solid var(--rm-accent); outline-offset: 2px; }
body.rm-admin .rec-pattern { margin-top: 10px; }
body.rm-admin .rec-week-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px; align-items: end; gap: 8px; margin-bottom: 8px; }
body.rm-admin .rec-week-row > .ri { padding-bottom: 12px; color: var(--rm-text); }
body.rm-admin .rec-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: var(--rm-primary);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
body.rm-admin .rec-link[hidden] { display: none; }
/* Hints = the field hint (Nova reserva "Preencha as datas"): 12 px / 500, theme text colour. */
body.rm-admin .rec-hint { margin: 8px 0 0; color: var(--rm-text); font-size: 12px; font-weight: 500; line-height: 1.4; }
/* Errors = .form-error (admin 96). */
body.rm-admin .rec-error { margin: 0; padding: 10px 12px; border-radius: .5rem; background: var(--rm-danger-soft); color: var(--rm-danger); font-size: 13px; line-height: 1.4; }
body.rm-admin .rec-error[hidden] { display: none; }
/* Pinned footer = .modal-card form.modal-body > .modal-actions (theme 540-550, 1738, 1884). */
body.rm-admin .rec-actions { position: sticky; z-index: 3; bottom: -20px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin: 4px -20px -20px; padding: 12px 20px;
  border-top: 1px solid var(--rm-line); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 -6px 16px rgba(16, 40, 69, .06); }
body.rm-admin .rec-actions .button { height: 36px; min-height: 36px; padding: 0 14px; font-size: 13px; box-shadow: none; }

/* Preview = the Nova reserva quote: .lock-detail-panel blocks (admin 425, theme 500-505) typed like .direct-quote-row (theme 3600-3605). */
body.rm-admin .rec-preview { margin: 0; }
body.rm-admin .rec-preview[hidden] { display: none; }
body.rm-admin .rec-pv-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; color: var(--rm-text); font-size: 12px; }
body.rm-admin .rec-pv-head strong { color: var(--rm-primary); font-size: 13px; font-weight: 700; }
body.rm-admin .rec-pv-period { margin-top: 10px; padding: 12px 15px; border: 1px solid var(--rm-line); border-radius: .5rem; background: var(--rm-body); }
body.rm-admin .rec-pv-period.is-off { border-style: dashed; opacity: .8; }
body.rm-admin .rec-pv-period header { display: flex; justify-content: space-between; gap: 8px; color: var(--rm-primary); font-size: 12.5px; font-weight: 700; }
body.rm-admin .rec-pv-period header strong { font-size: 12.5px; font-weight: 700; }
body.rm-admin .rec-pv-period small { display: block; margin: 2px 0 6px; color: var(--rm-text); font-size: 11px; font-weight: 500; }
body.rm-admin .rec-pv-period ul, body.rm-admin .rec-period ul { margin: 0; padding: 0; list-style: none; }
body.rm-admin .rec-pv-period li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--rm-line);
  color: var(--rm-heading); font-size: 12px; }
body.rm-admin .rec-pv-period li > b { color: var(--rm-primary); font-weight: 650; }
body.rm-admin .rec-pv-period li > span:last-child { text-align: right; color: var(--rm-primary); font-weight: 650; }
body.rm-admin .rec-pv-period li.is-off, body.rm-admin .rec-pv-period li.is-off > b, body.rm-admin .rec-pv-period li.is-off > span:last-child { color: #b23836; font-weight: 500; }
body.rm-admin .rec-pv-period em { display: inline-flex; align-items: center; min-height: 18px; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--rm-warning-soft);
  color: #96661d; font-size: 9.5px; font-style: normal; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }

/* List */
body.rm-admin .rec-list { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
/* Empty state = admin .empty-state (305) with the Nova reserva empty icon tone. */
body.rm-admin .rec-empty { display: grid; min-height: 170px; place-items: center; align-content: center; gap: 6px; padding: 30px; color: var(--rm-text); font-size: 12px; text-align: center; }
body.rm-admin .rec-empty .ri { font-size: 30px; color: var(--rm-secondary); }
body.rm-admin .rec-empty strong { display: block; margin: 0; color: var(--rm-heading); font-size: 13px; font-weight: 650; }
body.rm-admin .rec-empty p { margin: 0; }
/* Series card = .checkin-feature-card (theme 1360-1368, 3653): white, line border, theme card radius, hairline shadow. */
body.rm-admin .rec-series { padding: 14px; border: 1px solid var(--rm-line); border-radius: var(--radius, .625rem); background: var(--rm-paper); box-shadow: 0 1px 2px rgba(16, 40, 69, .04); }
body.rm-admin .rec-series.is-ended { opacity: .75; }
body.rm-admin .rec-series-head { display: flex; align-items: center; gap: 10px; }
/* Expand toggle = .icon-button (30 px, theme radius). */
body.rm-admin .rec-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-width: 30px; height: 30px; padding: 0; border: 1px solid var(--rm-line);
  border-radius: .5rem; background: var(--rm-paper); color: var(--rm-text); font-size: 1.2rem; cursor: pointer; flex: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
body.rm-admin .rec-toggle:hover, body.rm-admin .rec-toggle:focus-visible { border-color: #bdc9d9; color: var(--rm-primary); background: var(--rm-primary-soft); outline: none; }
body.rm-admin .rec-toggle .ri { transition: transform .15s ease; }
body.rm-admin .rec-toggle[aria-expanded="true"] .ri { transform: rotate(180deg); }
body.rm-admin .rec-series-title { flex: 1; min-width: 0; }
body.rm-admin .rec-series-title strong { color: var(--rm-primary); font-size: 14px; font-weight: 650; }
body.rm-admin .rec-series-title small { display: block; margin-top: 1px; color: var(--rm-text); font-size: 11px; font-weight: 500; }
/* Facts typed like the .account-facts tiles (theme 1877-1878). */
body.rm-admin .rec-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; margin: 12px 0 0; }
body.rm-admin .rec-facts div { min-width: 0; }
body.rm-admin .rec-facts dt { margin-bottom: 2px; color: #8a6a24; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.rm-admin .rec-facts dd { margin: 0; color: #193452; font-size: 12px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
body.rm-admin .rec-periods { margin-top: 12px; }
body.rm-admin .rec-periods[hidden] { display: none; }
body.rm-admin .rec-period { padding: 8px 0; border-top: 1px solid var(--rm-line); }
body.rm-admin .rec-period header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
body.rm-admin .rec-period header strong { color: var(--rm-primary); font-size: 12.5px; font-weight: 700; }
body.rm-admin .rec-period-amount { margin-left: auto; color: var(--rm-primary); font-size: 12.5px; font-weight: 700; }
/* Audit UI-6 (28 Oct 2026): named areas at every width; the state pill and the refund pill share one wrapping cell, the note is its own
   last row, the actions wrap (no overlap of "Confirmada" and the total, no clipped "Reembolso feito"). */
body.rm-admin .rec-visit { display: grid; grid-template-columns: 112px 56px minmax(120px, 1fr) auto auto; grid-template-areas: "dates unit state total actions" "note note note note note";
  align-items: center; gap: 0 8px; min-height: 44px; padding: 4px 0; border-top: 1px dashed var(--rm-line); color: var(--rm-heading); font-size: 12px; }
body.rm-admin .rec-visit-dates { grid-area: dates; }
body.rm-admin .rec-visit-unit { grid-area: unit; color: var(--rm-primary); font-weight: 650; }
body.rm-admin .rec-visit-state { grid-area: state; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
body.rm-admin .rec-visit-total { grid-area: total; text-align: right; color: var(--rm-primary); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
body.rm-admin .rec-visit-actions { grid-area: actions; display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; min-width: 0; }
body.rm-admin .rec-visit-actions:empty { display: none; }
/* Row buttons = the Reservas row action (.button, theme 455 / 75-97): 34 px, theme radius, line border, navy text. */
body.rm-admin .rec-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border: 1px solid var(--rm-line); border-radius: .5rem;
  background: var(--rm-paper); color: var(--rm-primary); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .25px; cursor: pointer;
  box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .08); transition: color .2s ease, border-color .2s ease, background .2s ease; }
body.rm-admin .rec-mini:hover, body.rm-admin .rec-mini:focus-visible { border-color: #bdc9d9; background: var(--rm-primary-soft); outline: none; }
/* Pills = compact .status-badge tones (theme 458-463, 845): info / warning / success / neutral / danger. */
body.rm-admin .rec-pill { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 20px; padding: 0 8px; border-radius: 99px; background: #eeeef0; color: var(--rm-text);
  font-size: 10px; font-weight: 650; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
body.rm-admin .rec-pill.is-hold { background: var(--rm-info-soft); color: #236e9f; }
body.rm-admin .rec-pill.is-link { background: var(--rm-warning-soft); color: #96661d; }
body.rm-admin .rec-pill.is-paid { background: var(--rm-success-soft); color: #367849; }
body.rm-admin .rec-pill.is-off { background: #eeeef0; color: var(--rm-text); }
body.rm-admin .rec-pill.is-warn { background: var(--rm-danger-soft); color: #b23836; }
body.rm-admin .rec-pill .ri-loader-4-line { animation: rec-spin 1s linear infinite; }
body.rm-admin .rec-series-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rm-line); }
body.rm-admin .rec-end span { display: block; margin: 0 0 5px; color: var(--rm-text); font-size: 12px; font-weight: 600; letter-spacing: .1px; }
body.rm-admin .rec-end input { width: 170px; }
/* Series buttons keep the theme .button size (40 px); Cancelar série = .button.danger (theme 99). */
body.rm-admin .rec-danger { border-color: #f2bfbd !important; color: var(--rm-danger) !important; background: var(--rm-danger-soft) !important; }

@keyframes rec-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rec-spin { to { transform: rotate(360deg); } }

/* Phones: the centred card with the same gap above and below (theme 1349-1359, admin 411: 18 px side gutters) and the 14 px
   body / footer padding of the phone modal (theme 1740-1742). Inputs keep the theme's 16 px phone size (theme 1171: no iOS zoom on
   focus; the Nova reserva card overrides it to 14 px through .account-modal-card). */
@media (max-width: 780px) {
  body.rm-admin dialog.rec-dialog { width: calc(100vw - 36px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - max(24px, calc(env(safe-area-inset-top, 0px) + 16px)) - max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px))); }
  body.rm-admin .rec-body { padding: 12px 14px 14px; }
  body.rm-admin .rec-grid { grid-template-columns: minmax(0, 1fr); }
  body.rm-admin .rec-actions { bottom: -14px; margin: 4px -14px -14px; padding: 12px 14px; }
  body.rm-admin .rec-visit { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dates unit" "state total" "actions actions" "note note"; row-gap: 4px; padding: 8px 0; }
  body.rm-admin .rec-visit-unit { text-align: right; }
  body.rm-admin .rec-visit-actions { justify-content: flex-start; }
  body.rm-admin .rec-end { flex: 1 1 100%; }
  body.rm-admin .rec-end input { width: 100%; }
  body.rm-admin .rec-series-actions .button { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.rm-admin dialog.rec-dialog[open] { animation: none; }
  body.rm-admin .rec-pill .ri-loader-4-line { animation: none; }
  body.rm-admin .rec-toggle, body.rm-admin .rec-toggle .ri, body.rm-admin .rec-icon, body.rm-admin .rec-mini { transition: none; }
}

/* Night chips (owner, 27 Oct 2026): Seg..Dom toggles, the nights the guest uses = the Calendário weekday chips (#ari-weekdays
   .filter-chip, admin 244-246 + theme 421-429: 7 px gap, theme radius, 11 px / 600, navy when pressed). */
body.rm-admin .rec-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
body.rm-admin .rec-chip { min-height: 36px; padding: 0 2px; border: 1px solid var(--rm-line); border-radius: .5rem; background: var(--rm-paper);
  color: var(--rm-text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
body.rm-admin .rec-chip:hover { color: var(--rm-primary); background: var(--rm-primary-soft); }
body.rm-admin .rec-chip[aria-pressed="true"] { border-color: var(--rm-primary); background: var(--rm-primary); color: #fff; }
body.rm-admin .rec-chip:focus-visible { outline: 2px solid var(--rm-accent); outline-offset: 2px; }
/* Live pattern summary = a .lock-detail-panel line (admin 425). */
body.rm-admin .rec-pattern-preview { margin: 10px 0 0; padding: 12px 15px; border: 1px solid var(--rm-line); border-radius: .5rem; background: var(--rm-body); color: var(--rm-heading);
  font-size: 12px; line-height: 1.45; white-space: pre-line; }
body.rm-admin .rec-hint-top { margin: 0 0 0; }
@media (prefers-reduced-motion: reduce) { body.rm-admin .rec-chip { transition: none; } }

/* Per-night price (owner, 27 Oct 2026): each period's computation in the preview ("dez: 12 noites × R$ 110 = R$ 1.320"). */
body.rm-admin .rec-pv-formula { margin: 4px 0 0; color: var(--rm-primary); font-size: 12.5px; font-weight: 700; }
/* Another apartment on one visit (owner, 27 Oct 2026): "visita de 15/12 vai para o RM-18" (the warning badge tone). */
body.rm-admin .rec-visit-note { grid-area: note; margin: 2px 0; color: #96661d; font-size: 11px; font-weight: 600; }
/* Audit UI-9: a preview that no longer matches the form = .provider-notice (admin 230); audit UI-10: "Recorrentes" shows a create in progress. */
body.rm-admin .rec-stale { margin: 0; padding: 10px 13px; border: 1px solid #ead6ae; border-radius: .5rem; background: var(--rm-accent-soft); color: #6e5935; font-size: 12px; line-height: 1.4; }
body.rm-admin .rec-stale[hidden] { display: none; }
body.rm-admin .rec-preview.is-stale { opacity: .45; filter: grayscale(.6); }
body.rm-admin #recurring-open.rec-busy { position: relative; }
body.rm-admin #recurring-open.rec-busy::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--rm-accent);
  box-shadow: 0 0 0 2px var(--rm-paper); animation: rec-pulse 1.2s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { body.rm-admin #recurring-open.rec-busy::after { animation: none; } }
body.rm-admin .rec-pv-period li.rec-pv-note { display: block; color: #96661d; font-size: 11px; font-weight: 600; border-top: 0; padding-top: 0; }
/* Error lines placed in the list (refresh failure above the cards, a series' own failure under its actions). */
body.rm-admin .rec-body > .rec-error { margin-bottom: 12px; }
body.rm-admin .rec-series > .rec-error { margin-top: 10px; }
/* Guest lookup (27 Oct 2026): the Nova reserva "Hóspedes anteriores" list (.direct-guest-lookup / .direct-guest-suggestions,
   calendar-dnd.css) under Nome completo / WhatsApp, as in Nova reserva. Its detail line is 9 px there (admin.css
   .form-grid label > span small reaches it); the same here. Focus stays in the field (aria-activedescendant), so the
   highlighted row takes the list's own hover tone. */
body.rm-admin .rec-form .direct-guest-suggestions small { font-size: 9px; }
body.rm-admin .rec-form .direct-guest-suggestions [role="option"][aria-selected="true"] { background: #f0f5f7; }
