/*
 * Proyecto Isaías — App 11.3.0
 * -------------------------------------------------------------------------
 * 1. Campana de la barra superior
 * 2. Hojas (bandeja, notificaciones, instalar)
 * 3. Banner de invitación
 * 4. Página Staff «Avisos y App»
 * 5. Modo app instalada (standalone)
 * Contraste AA en día y noche; objetivos táctiles ≥ 48 px.
 */

/* ---------------------------------------------------------------------- */
/* 1. Campana                                                              */
/* ---------------------------------------------------------------------- */
.fj-v11-shell .fj-v11-bell {
  position: relative;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; min-width: 48px;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--v11-line) !important;
  border-radius: 999px !important;
  background: var(--v11-surface-2) !important;
  color: var(--v11-ink) !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: none !important;
}
.fj-v11-shell .fj-v11-bell:hover { border-color: var(--v11-line-strong) !important; }
.fj-v11-shell .fj-v11-bell .fj-v11-icon { width: 24px; height: 24px; }
.fj-v11-shell .fj-v11-bell__count {
  position: absolute; top: -3px; right: -3px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border: 2px solid var(--v11-surface);
  border-radius: 999px;
  background: #c0283f; color: #fff !important;
  font: 700 12px/1 var(--v11-font, system-ui) !important;
  box-sizing: border-box;
}
.fj-v11-shell .fj-v11-bell__count[hidden] { display: none !important; }
html[data-fj-theme="night"] .fj-v11-shell .fj-v11-bell__count { background: #ff8a9b; color: #0b1222 !important; }

/* ---------------------------------------------------------------------- */
/* 2. Hojas                                                                */
/* ---------------------------------------------------------------------- */
.fj-app-sheet {
  --s-bg: #ffffff; --s-bg2: #f6f8fc; --s-ink: #121a2f; --s-ink2: #34405a; --s-muted: #4d5872;
  --s-line: #d8dfeb; --s-line2: #b8c4d8; --s-tone: #4528c9; --s-tone-soft: #eeeaff; --s-tone-ink: #3b22b0;
  --s-ok: #0a7352; --s-ok-soft: #e1f6ee; --s-warn-soft: #fff4d6; --s-danger: #c0283f; --s-danger-soft: #fdecef;
  width: min(560px, 100vw);
  max-width: 100vw;
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--s-bg);
  color: var(--s-ink);
  box-shadow: 0 30px 80px rgba(10, 16, 32, .35);
  font-family: "Lexend", Inter, ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}
.fj-app-sheet[open] { display: flex; flex-direction: column; }
.fj-app-sheet::backdrop { background: rgba(10, 16, 32, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html[data-fj-theme="night"] .fj-app-sheet {
  --s-bg: #141e33; --s-bg2: #1a2640; --s-ink: #f4f7ff; --s-ink2: #e2e8f4; --s-muted: #c2cce0;
  --s-line: #2c3a57; --s-line2: #43537a; --s-tone: #8c74ff; --s-tone-soft: #2a2350; --s-tone-ink: #c9bdff;
  --s-ok: #74e0ad; --s-ok-soft: #133628; --s-warn-soft: #3e3218; --s-danger: #ff8a9b; --s-danger-soft: #45202a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.fj-app-sheet *, .fj-app-sheet *::before, .fj-app-sheet *::after { box-sizing: border-box; }
.fj-app-sheet__head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 16px 12px 22px;
  border-bottom: 1px solid var(--s-line);
}
.fj-app-sheet__head h2 { flex: 1; margin: 0 !important; font: 700 21px/1.2 inherit !important; color: var(--s-ink) !important; letter-spacing: 0 !important; text-transform: none !important; }
.fj-app-sheet__close, .fj-app-sheet__icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0 !important; margin: 0 !important;
  border: 1px solid var(--s-line) !important; border-radius: 999px !important;
  background: var(--s-bg2) !important; color: var(--s-ink) !important;
  box-shadow: none !important; cursor: pointer;
}
.fj-app-sheet__body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 20px 24px; display: grid; gap: 14px; align-content: start; }
.fj-app-sheet button:focus-visible, .fj-app-sheet a:focus-visible, .fj-app-sheet input:focus-visible + .fj-app-switch { outline: 3px solid #1d6fe8 !important; outline-offset: 3px !important; }
html[data-fj-theme="night"] .fj-app-sheet button:focus-visible, html[data-fj-theme="night"] .fj-app-sheet a:focus-visible { outline-color: #7db3ff !important; }

@media (max-width: 640px) {
  .fj-app-sheet {
    width: 100vw; max-height: 92vh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .fj-app-sheet[open] { animation: fj-app-up .22s ease-out; }
  .fj-app-sheet__head::before {
    content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 4px; background: var(--s-line2);
  }
  .fj-app-sheet__head { position: relative; padding-top: 18px; }
}
@keyframes fj-app-up { from { transform: translateY(40px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fj-app-sheet[open] { animation: none; } }

/* Botones de las hojas y del banner */
.fj-app-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px !important; margin: 0 !important;
  border-radius: 14px !important;
  font: 600 16px/1.1 "Lexend", Inter, system-ui, sans-serif !important;
  text-decoration: none !important; text-align: center;
  cursor: pointer; box-shadow: none !important; transform: none !important;
}
.fj-app-btn.is-primary { border: 0 !important; background: #4528c9 !important; color: #fff !important; }
.fj-app-btn.is-quiet { border: 1px solid #b8c4d8 !important; background: transparent !important; color: #121a2f !important; }
.fj-app-btn.is-big { min-height: 56px; width: 100%; font-size: 17px !important; }
.fj-app-btn[disabled] { opacity: .6; cursor: progress; }
html[data-fj-theme="night"] .fj-app-btn.is-primary { background: #8c74ff !important; color: #0b1222 !important; }
html[data-fj-theme="night"] .fj-app-btn.is-quiet { border-color: #43537a !important; color: #f4f7ff !important; }
.fj-app-link { min-height: 44px; padding: 0 4px !important; border: 0 !important; background: none !important; color: var(--s-tone-ink) !important; font: 600 15px/1 inherit !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none !important; }
.fj-app-link[disabled] { color: var(--s-muted) !important; text-decoration: none; cursor: default; }

/* Bandeja */
.fj-app-inbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--s-muted); font-size: 15px; }
.fj-app-inbox { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.fj-app-inbox__item { margin: 0 !important; }
.fj-app-inbox__link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--s-line); border-radius: 16px;
  background: var(--s-bg); color: var(--s-ink) !important; text-decoration: none !important;
}
.fj-app-inbox__item.is-unread .fj-app-inbox__link { background: var(--s-tone-soft); border-color: transparent; }
.fj-app-inbox__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--s-bg2); font-size: 22px; line-height: 1; }
.fj-app-inbox__text { display: grid; gap: 3px; min-width: 0; }
.fj-app-inbox__text strong { font-size: 16px; line-height: 1.3; color: var(--s-ink); overflow-wrap: anywhere; }
.fj-app-inbox__text span { font-size: 15px; line-height: 1.4; color: var(--s-ink2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fj-app-inbox__text small { font-size: 13px; color: var(--s-muted); }
.fj-app-inbox__dot { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--s-tone); }
.fj-app-inbox__cta {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 16px !important; margin: 0 !important;
  border: 1px dashed var(--s-tone) !important; border-radius: 16px !important;
  background: var(--s-bg) !important; color: var(--s-tone-ink) !important;
  font: 600 15px/1.35 inherit !important; text-align: left; cursor: pointer; box-shadow: none !important;
}
.fj-app-inbox__cta svg { flex: none; }
.fj-app-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 8px; text-align: center; }
.fj-app-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--s-bg2); color: var(--s-muted); }
.fj-app-empty strong { font-size: 18px; color: var(--s-ink); }
.fj-app-empty p { margin: 0 !important; max-width: 34ch; color: var(--s-ink2); font-size: 15px; line-height: 1.5; }
.fj-app-loading { margin: 0 !important; padding: 24px 0; text-align: center; color: var(--s-muted); }

/* Estado de las notificaciones */
.fj-app-status {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 16px; border-radius: 18px; background: var(--s-bg2); border: 1px solid var(--s-line);
}
.fj-app-status.is-on { background: var(--s-ok-soft); border-color: transparent; }
.fj-app-status.is-off, .fj-app-status.is-ios-install { background: var(--s-tone-soft); border-color: transparent; }
.fj-app-status.is-denied { background: var(--s-danger-soft); border-color: transparent; }
.fj-app-status__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--s-bg); font-size: 24px; font-weight: 700; color: var(--s-ok); }
.fj-app-status__copy strong { display: block; font-size: 18px; line-height: 1.25; color: var(--s-ink); }
.fj-app-status__copy p { margin: 4px 0 0 !important; font-size: 15px; line-height: 1.5; color: var(--s-ink2); }
.fj-app-status__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.fj-app-status__actions:empty { display: none; }
.fj-app-status__actions .fj-app-btn { flex: 1 1 200px; }

/* Preferencias */
.fj-app-prefs { margin: 0 !important; padding: 0 !important; border: 0 !important; display: grid; gap: 8px; min-width: 0; }
.fj-app-prefs legend { padding: 0 0 6px !important; font-size: 16px; font-weight: 700; color: var(--s-ink); }
.fj-app-pref {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 56px; gap: 12px; align-items: center;
  min-height: 64px; padding: 10px 12px; margin: 0 !important;
  border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-bg);
  cursor: pointer;
}
.fj-app-pref__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--s-bg2); font-size: 20px; }
.fj-app-pref__text { display: grid; gap: 2px; min-width: 0; }
.fj-app-pref__text strong { font-size: 16px; color: var(--s-ink); }
.fj-app-pref__text small { font-size: 13.5px; line-height: 1.35; color: var(--s-muted); }
.fj-app-pref input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fj-app-switch { position: relative; width: 56px; height: 32px; border-radius: 999px; background: #8592ab; transition: background-color .15s ease; }
.fj-app-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.fj-app-pref input:checked + .fj-app-switch { background: #0a7352; }
.fj-app-pref input:checked + .fj-app-switch::after { transform: translateX(24px); }
html[data-fj-theme="night"] .fj-app-switch { background: #5b6884; }
html[data-fj-theme="night"] .fj-app-pref input:checked + .fj-app-switch { background: #2fbf86; }
.fj-app-note { margin: 0 !important; font-size: 14px; line-height: 1.5; color: var(--s-muted, var(--v11-muted)); }

/* Instalar */
.fj-app-install__intro { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.fj-app-install__intro img { width: 64px; height: 64px; border-radius: 16px; }
.fj-app-install__intro p { margin: 0 !important; font-size: 16px; line-height: 1.5; color: var(--s-ink2); }
.fj-app-steps { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; counter-reset: none; }
.fj-app-steps li {
  display: grid; grid-template-columns: 32px 48px minmax(0, 1fr); gap: 12px; align-items: center;
  margin: 0 !important; padding: 12px; border: 1px solid var(--s-line); border-radius: 16px; background: var(--s-bg);
}
.fj-app-steps__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #4528c9; color: #fff; font-weight: 700; }
html[data-fj-theme="night"] .fj-app-steps__num { background: #8c74ff; color: #0b1222; }
.fj-app-steps__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--s-tone-soft); color: var(--s-tone-ink); font-size: 26px; font-weight: 700; }
.fj-app-steps__text { display: grid; gap: 2px; min-width: 0; }
.fj-app-steps__text strong { font-size: 16px; color: var(--s-ink); }
.fj-app-steps__text small { font-size: 14px; line-height: 1.4; color: var(--s-muted); }

/* ---------------------------------------------------------------------- */
/* 3. Banner                                                               */
/* ---------------------------------------------------------------------- */
.fj-app-banner {
  position: fixed; z-index: 950;
  left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100vw - 24px));
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; align-items: center;
  padding: 14px; border-radius: 20px;
  background: #ffffff; color: #121a2f;
  border: 1px solid #d8dfeb;
  box-shadow: 0 18px 50px rgba(18, 26, 47, .25);
  font-family: "Lexend", Inter, system-ui, sans-serif;
  animation: fj-app-banner-in .25s ease-out;
}
@keyframes fj-app-banner-in { from { transform: translate(-50%, 24px); } to { transform: translate(-50%, 0); } }
.fj-app-banner img { width: 44px; height: 44px; border-radius: 12px; }
.fj-app-banner__copy { display: grid; gap: 2px; min-width: 0; }
.fj-app-banner__copy strong { font-size: 16px; line-height: 1.25; }
.fj-app-banner__copy span { font-size: 14px; line-height: 1.4; color: #34405a; }
.fj-app-banner__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
html[data-fj-theme="night"] .fj-app-banner { background: #1a2640; color: #f4f7ff; border-color: #43537a; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
html[data-fj-theme="night"] .fj-app-banner__copy span { color: #d9e1f1; }
@media (max-width: 960px) {
  .fj-app-banner { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .fj-app-banner { animation: none; } }

/* ---------------------------------------------------------------------- */
/* 4. Página Staff «Avisos y App»                                          */
/* ---------------------------------------------------------------------- */
.fj-v11-shell .fj-app-staff { display: grid; gap: 20px; }
.fj-v11-shell .fj-app-card {
  padding: 20px 22px; border: 1px solid var(--v11-line); border-radius: var(--v11-radius);
  background: var(--v11-surface); box-shadow: var(--v11-shadow);
}
.fj-v11-shell .fj-app-card__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 16px; }
.fj-v11-shell .fj-app-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tone-soft); font-size: 24px; }
.fj-v11-shell .fj-app-card__head h2 { margin: 0 0 4px !important; font-size: 20px !important; line-height: 1.25 !important; color: var(--v11-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
.fj-v11-shell .fj-app-card__head p { margin: 0 !important; font-size: 15px; line-height: 1.5; color: var(--v11-muted); }
.fj-v11-shell .fj-app-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px; }
.fj-v11-shell .fj-app-stats > div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--v11-surface-2); }
.fj-v11-shell .fj-app-stats b { font-size: 22px; line-height: 1.2; color: var(--v11-ink); overflow-wrap: anywhere; }
.fj-v11-shell .fj-app-stats span { font-size: 14px; color: var(--v11-muted); }
.fj-v11-shell .fj-app-form { display: grid; gap: 14px; }
.fj-v11-shell .fj-app-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.fj-v11-shell .fj-app-row > .fj-app-field { flex: 1 1 200px; }
.fj-v11-shell .fj-app-row > .fj-app-field.is-inline { flex: 0 1 180px; }
.fj-v11-shell .fj-app-row > .fj-app-check { flex: 0 1 auto; }
.fj-v11-shell .fj-app-field { display: grid; gap: 6px; margin: 0 !important; min-width: 0; }
.fj-v11-shell .fj-app-field > span { font-size: 15px; font-weight: 600; color: var(--v11-ink); }
.fj-v11-shell .fj-app-field > span em { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--tone-ink); }
.fj-v11-shell .fj-app-field small { font-size: 13px; color: var(--v11-muted); }
.fj-v11-shell .fj-app-field :is(input, select, textarea) { width: 100%; min-height: 48px; font-size: 16px !important; }
.fj-v11-shell .fj-app-check { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 10px 0; margin: 0 !important; font-size: 15px; line-height: 1.45; color: var(--v11-ink); cursor: pointer; }
.fj-v11-shell .fj-app-check input { flex: none; width: 24px; height: 24px; margin: 0 !important; accent-color: var(--tone-strong); }
.fj-v11-shell .fj-app-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.fj-v11-shell .fj-app-chips legend { width: 100%; padding: 0 0 6px !important; font-size: 15px; font-weight: 600; color: var(--v11-ink); }
.fj-v11-shell .fj-app-chips label { position: relative; margin: 0 !important; cursor: pointer; }
.fj-v11-shell .fj-app-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fj-v11-shell .fj-app-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--v11-line-strong); border-radius: 999px; background: var(--v11-surface); color: var(--v11-ink); font-size: 15px; font-weight: 600; }
.fj-v11-shell .fj-app-chips input:checked + span { background: var(--tone-strong); border-color: var(--tone-strong); color: #fff; }
.fj-v11-shell .fj-app-chips input:checked + span::before { content: "✓"; margin-right: 6px; }
.fj-v11-shell .fj-app-chips input:focus-visible + span { outline: 3px solid var(--v11-focus); outline-offset: 2px; }
html[data-fj-theme="night"] .fj-v11-shell .fj-app-chips input:checked + span { background: var(--tone); border-color: var(--tone); color: #0b1222; }
.fj-v11-shell .fj-app-preview {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start;
  max-width: 420px; padding: 12px 14px; border-radius: 18px;
  background: #1b2236; color: #f4f7ff;
}
.fj-v11-shell .fj-app-preview img { width: 40px; height: 40px; border-radius: 10px; }
.fj-v11-shell .fj-app-preview div { display: grid; gap: 2px; min-width: 0; }
.fj-v11-shell .fj-app-preview small { font-size: 12px; color: #c2cce0 !important; }
.fj-v11-shell .fj-app-preview strong { font-size: 15px; color: #ffffff !important; overflow-wrap: anywhere; }
.fj-v11-shell .fj-app-preview span { font-size: 14px; line-height: 1.4; color: #e2e8f4 !important; overflow-wrap: anywhere; }
.fj-v11-shell .fj-app-form > .fj-btn { justify-self: start; min-height: 52px; padding-left: 28px; padding-right: 28px; }
.fj-v11-shell .fj-app-list, .fj-v11-shell .fj-app-log { list-style: none; margin: 0 0 14px !important; padding: 0 !important; display: grid; gap: 10px; }
.fj-v11-shell .fj-app-list__item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  margin: 0 !important; padding: 12px 14px; border: 1px solid var(--v11-line); border-radius: 16px; background: var(--v11-surface-2);
}
.fj-v11-shell .fj-app-list__item > div { display: grid; gap: 2px; min-width: 0; }
.fj-v11-shell .fj-app-list__item strong { font-size: 16px; color: var(--v11-ink); }
.fj-v11-shell .fj-app-list__item span, .fj-v11-shell .fj-app-list__item small { font-size: 14px; color: var(--v11-muted); }
.fj-v11-shell .fj-app-list__item.is-past strong { text-decoration: line-through; }
.fj-v11-shell .fj-app-list__item form { margin: 0 !important; }
.fj-v11-shell .fj-app-days { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--tone-strong) !important; color: #fff !important; font-size: 24px; font-weight: 800; line-height: 1; }
.fj-v11-shell .fj-app-days small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: #fff !important; }
.fj-v11-shell .fj-app-list__item.is-past .fj-app-days { background: var(--v11-line) !important; color: var(--v11-ink) !important; }
.fj-v11-shell .fj-app-list__item.is-past .fj-app-days small { color: var(--v11-ink) !important; }
html[data-fj-theme="night"] .fj-v11-shell .fj-app-days { background: var(--tone) !important; color: #0b1222 !important; }
html[data-fj-theme="night"] .fj-v11-shell .fj-app-days small { color: #0b1222 !important; }
.fj-v11-shell .fj-app-details { margin-top: 12px; border: 1px solid var(--v11-line); border-radius: 16px; background: var(--v11-surface); }
.fj-v11-shell .fj-app-details > summary { display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-size: 16px; font-weight: 600; color: var(--tone-ink); cursor: pointer; list-style: none; }
.fj-v11-shell .fj-app-details > summary::-webkit-details-marker { display: none; }
.fj-v11-shell .fj-app-details > summary::before { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--tone-soft); font-weight: 700; }
.fj-v11-shell .fj-app-details[open] > summary::before { content: "−"; }
.fj-v11-shell .fj-app-details > :not(summary) { margin: 0 16px 16px !important; }
.fj-v11-shell .fj-app-details p { font-size: 15px; line-height: 1.5; color: var(--v11-ink-2); }
.fj-v11-shell .fj-app-copy { width: 100%; min-height: 48px; font-family: ui-monospace, Menlo, monospace !important; font-size: 13px !important; }
.fj-v11-shell .fj-app-install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fj-v11-shell .fj-app-install-grid > div { padding: 14px 16px; border-radius: 16px; background: var(--v11-surface-2); }
.fj-v11-shell .fj-app-install-grid h3 { margin: 0 0 8px !important; font-size: 17px !important; color: var(--v11-ink) !important; }
.fj-v11-shell .fj-app-install-grid ol { margin: 0 !important; padding-left: 20px !important; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; color: var(--v11-ink-2); }
.fj-v11-shell .fj-app-install-grid small { color: var(--v11-muted); }
.fj-v11-shell .fj-app-log li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 0 !important; padding: 12px 14px; border-radius: 14px; background: var(--v11-surface-2); }
.fj-v11-shell .fj-app-log__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--v11-surface); font-size: 20px; }
.fj-v11-shell .fj-app-log li > div { display: grid; gap: 2px; min-width: 0; }
.fj-v11-shell .fj-app-log strong { font-size: 15px; color: var(--v11-ink); overflow-wrap: anywhere; }
.fj-v11-shell .fj-app-log small { font-size: 13px; color: var(--v11-muted); }
.fj-v11-shell .fj-app-log__nums { font-size: 13.5px; color: var(--v11-ink-2); }
.fj-v11-shell .fj-app-log__nums b { color: var(--v11-ink); }
.fj-v11-shell .fj-app-alert { padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.fj-v11-shell .fj-app-alert.is-danger { background: var(--v11-danger-soft); color: var(--v11-ink); border: 1px solid var(--v11-danger); }
.fj-v11-shell .fj-app-staff .fj-app-note { color: var(--v11-muted); }
.fj-v11-shell .fj-app-staff code { font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .fj-v11-shell .fj-app-card { padding: 16px; }
  .fj-v11-shell .fj-app-card__head { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .fj-v11-shell .fj-app-card__icon { width: 40px; height: 40px; font-size: 20px; }
  .fj-v11-shell .fj-app-list__item { grid-template-columns: 56px minmax(0, 1fr); }
  .fj-v11-shell .fj-app-days { width: 56px; height: 56px; font-size: 20px; }
  .fj-v11-shell .fj-app-list__item form { grid-column: 1 / -1; }
  .fj-v11-shell .fj-app-list__item form .fj-btn { width: 100%; }
  .fj-v11-shell .fj-app-form > .fj-btn { justify-self: stretch; }
  .fj-v11-shell .fj-app-row > .fj-app-field.is-inline { flex: 1 1 140px; }
}

/* ---------------------------------------------------------------------- */
/* 5. App instalada                                                        */
/* ---------------------------------------------------------------------- */
/* En la app instalada no hay barra del navegador: se respeta la muesca. */
html.fj-app-standalone .fj-v11-shell .fj-v11-topbar { padding-top: env(safe-area-inset-top, 0px); }
html.fj-app-standalone body { overscroll-behavior-y: contain; }
html.fj-app-standalone .fj-v11-shell :is(a, button) { -webkit-tap-highlight-color: transparent; }
