html.mobibc-cinema:has(body.mobibc-mp-shell),
html.mobibc-cinema body.mobibc-mp-shell {
  background: var(--mobibc-mp-bg, #f1f5f9) !important;
}

/* Shell MP: contenido sobre barra/rail de tarjeta (tema claro) */

body.mobibc-mp-shell,
body.mobibc-mp-shell.mobibc-mod-pagina {
  background: var(--mobibc-mp-bg, #f1f5f9) !important;
  color: var(--mobibc-mp-text, #0f172a) !important;
}

.mobibc-mp-shell .mobibc-mod-shell,
.mobibc-mp-shell .mobibc-mp-shell__wrap,
.mobibc-mp-shell .mp-shell-scroll,
.mobibc-mp-shell .mp-shell-main {
  background: var(--mobibc-mp-bg, #f1f5f9) !important;
  color: var(--mobibc-mp-text, #0f172a) !important;
}

.mobibc-mp-shell .mp-shell-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Contenido: ancho usable (en desktop se resta el rail) */
.mobibc-mp-shell .mp-shell-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 16px 16px 28px;
  box-sizing: border-box;
}

html:not(.mobibc-cinema) .mobibc-mp-shell .mp-shell-main {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/*
 * Desktop cinema: pantalla completa menos el rail derecho.
 */
html.mobibc-cinema body.mobibc-mp-shell,
html.mobibc-cinema body.mobibc-mod-pagina.mobibc-mp-shell {
  display: block !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--mobibc-mp-bg, #f1f5f9) !important;
  color: var(--mobibc-mp-text, #0f172a) !important;
}

html.mobibc-cinema .mobibc-mp-shell .mobibc-mod-shell,
html.mobibc-cinema .mobibc-mp-shell__wrap {
  width: calc(100vw - var(--mobibc-rail-w, 78px)) !important;
  max-width: calc(100vw - var(--mobibc-rail-w, 78px)) !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  margin-right: var(--mobibc-rail-w, 78px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--mobibc-mp-bg, #f1f5f9) !important;
}

html.mobibc-cinema .mobibc-mp-shell .mp-shell-scroll {
  width: 100%;
  background: var(--mobibc-mp-bg, #f1f5f9) !important;
}

html.mobibc-cinema .mobibc-mp-shell .mp-shell-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px 24px 40px 20px;
  box-sizing: border-box;
}

/* Volver / textos MP: contraste sobre fondo claro */
.mobibc-mp-shell .mp-back,
.mobibc-mp-shell .mp-shell-back {
  color: #0f766e !important;
}

.mp-shell-page {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  padding: 18px 16px 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

html.mobibc-cinema .mp-shell-page {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.mp-shell-page h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.mp-shell-page .mp-auth-lead,
.mp-shell-page .mp-hint {
  color: #475569;
}

.mp-shell-page label {
  display: block;
  margin: 12px 0;
  font-weight: 700;
  color: #0f172a;
}

.mp-shell-page input,
.mp-shell-page textarea,
.mp-shell-page select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
}

.mp-shell-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mp-shell-actions .mp-btn {
  width: 100%;
  justify-content: center;
}

.mp-shell-back {
  display: inline-flex;
  margin-bottom: 12px;
  font-weight: 800;
  color: #0f766e !important;
  text-decoration: none !important;
}

.mp-compose-listing {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  text-decoration: none !important;
  color: inherit !important;
}

.mp-compose-listing img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.mp-compose-listing strong {
  display: block;
  font-size: 1rem;
}

.mp-compose-listing span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
}
