/* Agenda de recordatorios de CuaderNOTE.
   Diseño claro tipo calendario familiar: riel lateral, encabezado con fecha y hora,
   fichas por persona, cuadrícula semanal con bloques pastel y botón + flotante. */

/* Botón de acceso en la biblioteca */
body .library-home-agenda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--library-accent, #00FF66) 55%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--library-accent, #00FF66) 14%, transparent);
  color: var(--library-accent, #00FF66);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

/* Campos nuevos del editor de recordatorios */
body .reminder-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
body .reminder-extra-grid label { min-width: 0; }
body .reminder-extra-grid select { width: 100%; min-width: 0; }

/* ---------- Diálogo de pantalla completa ---------- */
body dialog.rc-dialog {
  --rc-bg: #ffffff;
  --rc-surface: #f5f6f8;
  --rc-line: #e6e8ec;
  --rc-text: #1f2937;
  --rc-muted: #6b7280;
  --rc-accent: #2563eb;
  --rc-accent-soft: #e8f0ff;
  --rc-hour: 56px;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--rc-bg);
  color: var(--rc-text);
  color-scheme: light;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  box-shadow: none;
}
body dialog.rc-dialog:not([open]) { display: none; }
body dialog.rc-dialog::backdrop { background: #ffffff; }
body dialog.rc-dialog *, body dialog.rc-dialog *::before, body dialog.rc-dialog *::after { box-sizing: border-box; }

/* Reinicio de los botones heredados */
/* (El reinicio usa solo clases dentro de :is() para no pesar más que las reglas de cada componente.) */
body dialog.rc-dialog :is(.rc-btn, .rc-icon-btn, .rc-side-item, .rc-side-close, .rc-dayhead, .rc-strip-day, .rc-chip, .rc-event, .rc-check, .rc-row-main, .rc-fab, .rc-menu-item) {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
body dialog.rc-dialog :is(.rc-btn, .rc-icon-btn, .rc-side-item, .rc-side-close, .rc-dayhead, .rc-strip-day, .rc-chip, .rc-event, .rc-check, .rc-row-main, .rc-fab, .rc-menu-item):focus-visible {
  outline: 2px solid var(--rc-accent);
  outline-offset: 2px;
}

body dialog.rc-dialog .rc-shell {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

/* Riel lateral */
body dialog.rc-dialog .rc-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 8px;
  overflow-y: auto;
  border-right: 1px solid var(--rc-line);
  background: var(--rc-bg);
}
body dialog.rc-dialog .rc-side-item,
body dialog.rc-dialog .rc-side-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 4px;
  border-radius: 12px;
  color: var(--rc-muted);
  font-size: 12px;
  text-align: center;
}
body dialog.rc-dialog .rc-side-close { margin-bottom: 10px; }
body dialog.rc-dialog .rc-side-item:hover, body dialog.rc-dialog .rc-side-close:hover { background: var(--rc-surface); }
body dialog.rc-dialog .rc-side-item.is-active {
  color: var(--rc-accent);
  background: var(--rc-accent-soft);
  box-shadow: inset 3px 0 0 var(--rc-accent);
  font-weight: 500;
}

/* Contenido principal */
body dialog.rc-dialog .rc-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--rc-bg);
}
body dialog.rc-dialog .rc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 16px 20px 8px;
}
body dialog.rc-dialog .rc-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
body dialog.rc-dialog .rc-title h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.01em; color: var(--rc-text); }
body dialog.rc-dialog .rc-bar { width: 1px; height: 24px; background: #cbd5e1; }
body dialog.rc-dialog .rc-clock { font-size: 24px; font-weight: 400; color: var(--rc-text); font-variant-numeric: tabular-nums; }
body dialog.rc-dialog .rc-range { color: var(--rc-muted); font-size: 13px; }
body dialog.rc-dialog .rc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body dialog.rc-dialog .rc-nav { display: flex; align-items: center; gap: 2px; }
body dialog.rc-dialog .rc-close-mobile { display: none; }

body dialog.rc-dialog .rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rc-text);
  font-size: 14px;
  font-weight: 500;
}
body dialog.rc-dialog .rc-btn:hover { background: var(--rc-surface); }
body dialog.rc-dialog .rc-btn svg { width: 18px; height: 18px; }
body dialog.rc-dialog .rc-btn.is-on { border-color: var(--rc-accent); color: var(--rc-accent); background: var(--rc-accent-soft); }
body dialog.rc-dialog .rc-btn.is-primary { border-color: var(--rc-accent); background: var(--rc-accent); color: #fff; }
body dialog.rc-dialog .rc-btn.is-danger { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
body dialog.rc-dialog .rc-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--rc-muted);
}
body dialog.rc-dialog .rc-icon-btn:hover { background: var(--rc-surface); color: var(--rc-text); }

/* Menús desplegables (Vista y Filtro) */
body dialog.rc-dialog .rc-drop { position: relative; }
body dialog.rc-dialog .rc-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}
body dialog.rc-dialog .rc-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--rc-text);
}
body dialog.rc-dialog .rc-menu-item:hover { background: var(--rc-surface); }
body dialog.rc-dialog .rc-menu-item.is-active { color: var(--rc-accent); background: var(--rc-accent-soft); font-weight: 500; }
body dialog.rc-dialog .rc-menu.is-filter { min-width: 240px; padding: 12px; gap: 10px; }
body dialog.rc-dialog .rc-menu fieldset { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; }
body dialog.rc-dialog .rc-menu legend { margin-bottom: 4px; padding: 0; color: var(--rc-muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
body dialog.rc-dialog .rc-radio, body dialog.rc-dialog .rc-toggle { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; }
body dialog.rc-dialog .rc-radio input, body dialog.rc-dialog .rc-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--rc-accent); }

/* Fichas de personas */
body dialog.rc-dialog .rc-people {
  display: flex;
  gap: 8px;
  padding: 6px 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
body dialog.rc-dialog .rc-people:empty { display: none; }
body dialog.rc-dialog .rc-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ev) 26%, #fff);
  color: var(--rc-text);
  font-size: 13px;
}
body dialog.rc-dialog .rc-chip b { font-weight: 500; }
body dialog.rc-dialog .rc-chip span { color: #4b5563; font-variant-numeric: tabular-nums; }
body dialog.rc-dialog .rc-chip.is-active { box-shadow: 0 0 0 2px var(--rc-accent); }
body dialog.rc-dialog .rc-chip.is-add { background: var(--rc-surface); color: var(--rc-muted); }
body dialog.rc-dialog .rc-chip.is-add svg { width: 16px; height: 16px; }

body dialog.rc-dialog .rc-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }

/* Franja de días (vista Día) */
body dialog.rc-dialog .rc-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 2px 16px 8px; }
body dialog.rc-dialog .rc-strip-day {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 0 8px;
  border-radius: 12px;
  color: var(--rc-muted);
}
body dialog.rc-dialog .rc-strip-day b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--rc-text); font-size: 16px; font-weight: 500; }
body dialog.rc-dialog .rc-strip-day small { font-size: 11px; }
body dialog.rc-dialog .rc-strip-day i { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--rc-accent); }
body dialog.rc-dialog .rc-strip-day.is-selected { background: var(--rc-surface); }
body dialog.rc-dialog .rc-strip-day.is-today b { background: var(--rc-accent); color: #fff; }

/* Cuadrícula semanal / diaria */
body dialog.rc-dialog .rc-week { display: flex; flex: 1; flex-direction: column; min-height: 0; }
body dialog.rc-dialog .rc-week-head { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); padding-right: 0; }
body dialog.rc-dialog .rc-week.rc-cols-1 .rc-week-head, body dialog.rc-dialog .rc-week.rc-cols-1 .rc-week-grid { grid-template-columns: 56px minmax(0, 1fr); }
body dialog.rc-dialog .rc-week.rc-cols-1 .rc-week-head { display: none; }
body dialog.rc-dialog .rc-dayhead { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 8px; color: var(--rc-muted); }
body dialog.rc-dialog .rc-dayhead small { font-size: 13px; }
body dialog.rc-dialog .rc-dayhead b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--rc-text); font-size: 22px; font-weight: 400; }
body dialog.rc-dialog .rc-dayhead.is-today b { background: var(--rc-accent); color: #fff; }
body dialog.rc-dialog .rc-dayhead.is-selected:not(.is-today) b { background: var(--rc-surface); }
body dialog.rc-dialog .rc-week-scroll { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; border-top: 1px solid var(--rc-line); }
body dialog.rc-dialog .rc-week-grid { position: relative; display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); padding: 12px 0 110px; }
body dialog.rc-dialog .rc-times { position: relative; }
body dialog.rc-dialog .rc-times span { position: absolute; right: 8px; transform: translateY(-50%); color: var(--rc-muted); font-size: 11px; white-space: nowrap; }
body dialog.rc-dialog .rc-daycol {
  position: relative;
  min-width: 0;
  border-left: 1px solid var(--rc-line);
  background-image: linear-gradient(to bottom, var(--rc-line) 1px, transparent 1px);
  background-size: 100% var(--rc-hour);
  cursor: cell;
}
body dialog.rc-dialog .rc-daycol.is-today { background-color: #fafcff; }
body dialog.rc-dialog .rc-now { position: absolute; left: 0; right: 0; z-index: 3; height: 2px; background: var(--rc-accent); pointer-events: none; }
body dialog.rc-dialog .rc-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rc-accent); }

body dialog.rc-dialog .rc-event {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ev) 26%, #fff);
  color: var(--rc-text);
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}
body dialog.rc-dialog .rc-event:hover { filter: brightness(.97); }
body dialog.rc-dialog .rc-event strong { flex: 0 0 auto; font-weight: 500; font-size: 12.5px; overflow: hidden; }
body dialog.rc-dialog .rc-event small { flex: 0 0 auto; color: #4b5563; font-size: 11px; }
body dialog.rc-dialog .rc-event-foot { position: absolute; right: 6px; bottom: 5px; display: flex; align-items: center; gap: 4px; margin: 0; }
body dialog.rc-dialog .rc-event.is-short .rc-event-foot { display: none; }
body dialog.rc-dialog .rc-event.is-tiny small { display: none; }
body dialog.rc-dialog .rc-event.is-tiny { padding-top: 3px; padding-bottom: 3px; }
body dialog.rc-dialog .rc-event-foot svg { width: 14px; height: 14px; }
body dialog.rc-dialog .rc-event-bell, body dialog.rc-dialog .rc-event-check { display: inline-grid; color: #4b5563; }
body dialog.rc-dialog .rc-event.is-done { opacity: .6; }
body dialog.rc-dialog .rc-event.is-done strong { text-decoration: line-through; }
body dialog.rc-dialog .rc-avatar {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ev);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-shadow: 0 0 2px rgba(0, 0, 0, .55);
}
body dialog.rc-dialog .rc-avatar.is-big { width: 40px; height: 40px; font-size: 16px; }

/* Semana compacta en celular */
body dialog.rc-dialog .rc-week.is-compact .rc-week-head, body dialog.rc-dialog .rc-week.is-compact .rc-week-grid { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
body dialog.rc-dialog .rc-week.is-compact .rc-times span { right: 4px; font-size: 9px; }
body dialog.rc-dialog .rc-week.is-compact .rc-dayhead small { font-size: 10px; }
body dialog.rc-dialog .rc-week.is-compact .rc-dayhead b { width: 28px; height: 28px; font-size: 14px; }
body dialog.rc-dialog .rc-week.is-compact .rc-event { padding: 2px 3px; font-size: 9px; border-radius: 5px; }
body dialog.rc-dialog .rc-week.is-compact .rc-event strong { font-size: 9.5px; }
body dialog.rc-dialog .rc-week.is-compact .rc-event small, body dialog.rc-dialog .rc-week.is-compact .rc-event-foot { display: none; }

/* Listas (Lista, Pendientes, Completados) */
body dialog.rc-dialog .rc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 110px; }
body dialog.rc-dialog .rc-group { margin-bottom: 18px; }
body dialog.rc-dialog .rc-group h3 { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; color: var(--rc-muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
body dialog.rc-dialog .rc-group h3 em { padding: 1px 8px; border-radius: 999px; background: var(--rc-surface); font-size: 11px; font-style: normal; letter-spacing: 0; }
body dialog.rc-dialog .rc-group.is-late h3 { color: #b91c1c; }
body dialog.rc-dialog .rc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rc-line); }
body dialog.rc-dialog .rc-row.is-done .rc-row-main strong { text-decoration: line-through; opacity: .6; }
body dialog.rc-dialog .rc-row-main { display: grid; flex: 1; gap: 2px; min-width: 0; text-align: left; }
body dialog.rc-dialog .rc-row-main strong { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
body dialog.rc-dialog .rc-row-main small { color: var(--rc-muted); font-size: 12.5px; }
body dialog.rc-dialog .rc-check { display: inline-grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; border: 2px solid var(--ev); border-radius: 50%; color: #fff; }
body dialog.rc-dialog .rc-check svg { width: 16px; height: 16px; }
body dialog.rc-dialog .rc-check.is-on { background: var(--ev); text-shadow: 0 0 2px rgba(0, 0, 0, .5); }
body dialog.rc-dialog .rc-chip-mini { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ev) 26%, #fff); font-size: 12px; }
body dialog.rc-dialog .rc-row-bell { display: inline-grid; color: var(--rc-muted); }
body dialog.rc-dialog .rc-row-bell svg { width: 18px; height: 18px; }

body dialog.rc-dialog .rc-empty { display: grid; flex: 1; place-content: center; justify-items: center; gap: 6px; padding: 40px 24px; color: var(--rc-muted); text-align: center; }
body dialog.rc-dialog .rc-empty span { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: var(--rc-surface); }
body dialog.rc-dialog .rc-empty strong { color: var(--rc-text); font-size: 16px; font-weight: 500; }

/* Paneles (Personas y Ajustes) */
body dialog.rc-dialog .rc-panel { display: grid; align-content: start; gap: 14px; flex: 1; width: 100%; max-width: 680px; min-height: 0; padding: 8px 20px 110px; overflow-y: auto; }
body dialog.rc-dialog .rc-panel h3 { margin: 0; font-size: 18px; font-weight: 500; }
body dialog.rc-dialog .rc-hint { margin: 0; color: var(--rc-muted); font-size: 13px; line-height: 1.45; }
body dialog.rc-dialog .rc-field { display: grid; gap: 6px; color: var(--rc-muted); font-size: 13px; }
body dialog.rc-dialog .rc-field select, body dialog.rc-dialog .rc-person-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rc-text);
  font: inherit;
  font-size: 15px;
}
body dialog.rc-dialog .rc-person-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rc-line); }
body dialog.rc-dialog .rc-person-row > div:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }
body dialog.rc-dialog .rc-person-row small { color: var(--rc-muted); font-size: 12.5px; }
body dialog.rc-dialog .rc-person-actions { display: flex; align-items: center; gap: 4px; }
body dialog.rc-dialog .rc-person-form { display: grid; gap: 14px; padding-top: 6px; }
body dialog.rc-dialog .rc-person-form label { display: grid; gap: 6px; color: var(--rc-muted); font-size: 13px; }
body dialog.rc-dialog .rc-person-colors { display: grid; gap: 6px; color: var(--rc-muted); font-size: 13px; }
body dialog.rc-dialog .rc-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Botón + flotante */
body dialog.rc-dialog .rc-fab {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rc-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .38);
}
body dialog.rc-dialog .rc-fab svg { width: 26px; height: 26px; }
body dialog.rc-dialog:not(.is-calendar) .rc-fab { display: none; }

/* Detalle del recordatorio */
body dialog.rc-dialog .rc-sheet { position: absolute; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: center; background: rgba(15, 23, 42, .38); }
body dialog.rc-dialog .rc-sheet-card { display: grid; gap: 14px; width: min(540px, 100%); max-height: 88dvh; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(15, 23, 42, .25); }
body dialog.rc-dialog .rc-sheet-card header { display: flex; align-items: flex-start; gap: 12px; }
body dialog.rc-dialog .rc-sheet-card header > div { flex: 1; min-width: 0; }
body dialog.rc-dialog .rc-sheet-card h3 { margin: 0; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
body dialog.rc-dialog .rc-sheet-card p { margin: 2px 0 0; color: var(--rc-muted); }
body dialog.rc-dialog .rc-sheet-dot { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--ev); }
body dialog.rc-dialog .rc-sheet-text { padding: 12px; border-radius: 12px; background: var(--rc-surface); color: var(--rc-text) !important; white-space: pre-wrap; overflow-wrap: anywhere; }
body dialog.rc-dialog .rc-sheet-card dl { display: grid; gap: 8px; margin: 0; }
body dialog.rc-dialog .rc-sheet-card dl div { display: flex; justify-content: space-between; gap: 12px; }
body dialog.rc-dialog .rc-sheet-card dt { color: var(--rc-muted); }
body dialog.rc-dialog .rc-sheet-card dd { margin: 0; text-align: right; }
body dialog.rc-dialog .rc-sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* Pantalla grande: hoja centrada */
@media (min-width: 720px) {
  body dialog.rc-dialog .rc-sheet { align-items: center; }
  body dialog.rc-dialog .rc-sheet-card { border-radius: 20px; }
}

/* Celular: el riel pasa a la parte inferior */
@media (max-width: 719px) {
  body dialog.rc-dialog .rc-shell { grid-template-columns: minmax(0, 1fr); }
  body dialog.rc-dialog .rc-side {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    overflow: visible;
    border-top: 1px solid var(--rc-line);
    border-right: 0;
  }
  body dialog.rc-dialog .rc-side-close { display: none; }
  body dialog.rc-dialog .rc-side-item { flex: 1; min-width: 0; padding: 7px 2px; font-size: 11px; }
  body dialog.rc-dialog .rc-side-item.is-active { box-shadow: none; }
  body dialog.rc-dialog .rc-main { padding-bottom: 62px; }
  body dialog.rc-dialog .rc-close-mobile { display: inline-grid; }
  body dialog.rc-dialog .rc-head { gap: 6px 10px; padding: 10px 12px 4px; }
  body dialog.rc-dialog .rc-title h2 { font-size: 21px; }
  body dialog.rc-dialog .rc-clock { font-size: 19px; }
  body dialog.rc-dialog .rc-people { padding: 4px 12px 8px; }
  body dialog.rc-dialog .rc-fab { right: 16px; bottom: 78px; width: 54px; height: 54px; }
  body dialog.rc-dialog .rc-list, body dialog.rc-dialog .rc-panel { padding-right: 14px; padding-left: 14px; }
  body dialog.rc-dialog .rc-menu { right: auto; left: 0; }
  body dialog.rc-dialog .rc-drop:last-child .rc-menu { right: 0; left: auto; }
}

/* Celulares muy angostos: etiquetas de la barra inferior más compactas */
@media (max-width: 400px) {
  body dialog.rc-dialog .rc-side-item { padding: 7px 0; font-size: 10px; letter-spacing: -.01em; }
  body dialog.rc-dialog .rc-side-item svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  body dialog.rc-dialog * { transition: none !important; animation: none !important; }
}
