/* Theme 5.17.279 — Banda de registro compacta; solo Main y visitantes.
   Reutiliza la hoja 278, sin modificar los estilos de Tessiliga. */
@media (min-width:761px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    width:min(80%,1080px)!important; /* Igual al selector .ms-home-day-nav */
  }
}
body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
  min-height:50px;
  margin:0 auto 12px!important;
  padding:7px 10px!important;
  gap:10px;
}
body.tessirve-theme .ms-home-app .tsv-join-icon-278 {
  width:30px!important;
  height:30px!important;
  min-width:30px;
  flex:0 0 30px!important;
  display:block!important;
  object-fit:contain!important;
  background:none!important;
  border-radius:0!important;
}
body.tessirve-theme .ms-home-app .tsv-join-invite-278 p {
  font-size:12.5px;
  line-height:1.36;
  font-weight:520;
}
body.tessirve-theme .ms-home-app .tsv-join-link-278 {
  padding:7px 10px!important;
  font-size:11.5px;
}
body.tessirve-theme .ms-home-app .tsv-join-close-279 {
  order:99;
  flex:0 0 28px;
  display:grid!important;
  place-items:center;
  width:28px;
  height:28px;
  padding:0;
  border-radius:8px;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3) 26%,#adbcc7);
  background:transparent;
  color:#495868;
  cursor:pointer;
  box-shadow:none;
  line-height:1;
  transition:background .16s,border-color .16s;
}
body.tessirve-theme .ms-home-app .tsv-join-close-279:hover {
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 11%,#f7f9fb);
  border-color:var(--theme-primary,#175cd3);
}
body.tessirve-theme .ms-home-app .tsv-join-close-279:focus-visible {
  outline:2px solid var(--theme-primary,#175cd3);
  outline-offset:2px;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-close-279 {
  color:#e1e8ef;
  border-color:#536174;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-close-279:hover {
  background:#304254;
}
html.tsv-join-dismissed-279 body.tessirve-theme .ms-home-app .tsv-join-invite-278,
body.tessirve-theme .ms-home-app .tsv-join-invite-278[hidden] {
  display:none!important;
}
@media(max-width:760px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    width:100%!important;
    max-width:100%!important;
    min-height:0;
  }
}
@media(max-width:620px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    display:grid;
    grid-template-columns:26px minmax(0,1fr) 28px;
    align-items:start;
    gap:4px 9px;
    padding:9px 9px!important;
    margin-bottom:10px!important;
  }
  body.tessirve-theme .ms-home-app .tsv-join-icon-278 {
    grid-column:1;
    grid-row:1;
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
  }
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 p {
    grid-column:2;
    grid-row:1;
    font-size:11.5px!important;
    line-height:1.38;
  }
  body.tessirve-theme .ms-home-app .tsv-join-close-279 {
    grid-column:3;
    grid-row:1;
    width:28px;
    height:28px;
  }
  body.tessirve-theme .ms-home-app .tsv-join-link-278 {
    grid-column:2;
    grid-row:2;
    justify-self:start;
    padding:6px 10px!important;
    font-size:11px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.tessirve-theme .ms-home-app .tsv-join-close-279 {transition:none!important;}
}

/* 5.17.280 — Sólo aviso de visitantes de la portada.
   En PC exactamente el ancho del selector de fecha (theme-dynamic.css:6251).
   En móvil el mensaje se centra y los dos accesos forman una segunda fila.
   Sin cambios en Comunidad, Core ni en el componente de agenda. */
@media (min-width:761px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    width:min(80%,1080px)!important;
    max-width:100%!important;
  }
}
body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
  margin:13px auto 12px!important; /* separación entre header y globito */
  box-sizing:border-box!important;
}
body.tessirve-theme .ms-home-app .tsv-join-actions-280 {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
}
body.tessirve-theme .ms-home-app .tsv-join-or-280 {
  font-size:12px;
  font-weight:650;
  color:#607184;
}
body.tessirve-theme .ms-home-app .tsv-join-login-280 {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 11px;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3) 43%,#8999a8);
  border-radius:9px;
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 3%,#fff)!important;
  color:color-mix(in srgb,var(--theme-primary,#175cd3) 39%,#223447)!important;
  box-sizing:border-box;
  text-decoration:none!important;
  font-size:11.5px;
  font-weight:850;
  line-height:1.2;
  white-space:nowrap;
  transition:background .16s ease, border-color .16s ease;
}
body.tessirve-theme .ms-home-app .tsv-join-login-280:hover {
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 12%,#fff)!important;
  border-color:var(--theme-primary,#175cd3);
}
body.tessirve-theme .ms-home-app .tsv-join-login-280:focus-visible {
  outline:2px solid var(--theme-primary,#175cd3);
  outline-offset:2px;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-or-280 {
  color:#b9c9d8;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-login-280 {
  color:#edf4fb!important;
  background:#253547!important;
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3) 36%,#64788d);
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-login-280:hover {
  background:#30485b!important;
}
/* Teléfonos: texto centrado arriba, acciones centradas abajo.
   Icono y X comparten anchura para no descentrar el párrafo. */
@media (max-width:760px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    width:100%!important;
    max-width:100%!important;
    margin:11px auto 12px!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) 28px!important;
    gap:7px 8px!important;
    align-items:center!important;
    justify-items:stretch;
    padding:10px 9px!important;
  }
  body.tessirve-theme .ms-home-app .tsv-join-icon-278 {
    grid-column:1!important;
    grid-row:1!important;
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    justify-self:center;
    align-self:center;
  }
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 p {
    grid-column:2!important;
    grid-row:1!important;
    margin:0!important;
    text-align:center!important;
    font-size:11.7px!important;
    line-height:1.42!important;
    align-self:center;
  }
  body.tessirve-theme .ms-home-app .tsv-join-close-279 {
    grid-column:3!important;
    grid-row:1!important;
    justify-self:center!important;
    align-self:center;
    width:28px;
    height:28px;
    min-width:28px;
  }
  body.tessirve-theme .ms-home-app .tsv-join-actions-280 {
    grid-column:1/-1!important;
    grid-row:2!important;
    justify-self:center;
    justify-content:center;
    gap:8px;
    flex-wrap:nowrap;
  }
  body.tessirve-theme .ms-home-app .tsv-join-link-278,
  body.tessirve-theme .ms-home-app .tsv-join-login-280 {
    grid-column:auto!important;
    grid-row:auto!important;
    justify-self:auto!important;
    min-height:30px;
    padding:7px 11px!important;
    font-size:11.5px!important;
  }
}
@media (max-width:360px) {
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 {
    grid-template-columns:26px minmax(0,1fr) 26px!important;
    column-gap:5px!important;
  }
  body.tessirve-theme .ms-home-app .tsv-join-invite-278 p {
    font-size:11px!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.tessirve-theme .ms-home-app .tsv-join-login-280 {transition:none;}
}

/* 5.17.289 — Ambos accesos de portada como «Ingresar», con la misma caja y centrado.
   Sólo invitación de visitantes; no afecta el botón de cierre. */
body.tessirve-theme .ms-home-app .tsv-join-actions-280 {
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-link-278,
body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-login-280 {
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:clamp(100px,28vw,120px)!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 10px!important;
  border:1px solid color-mix(in srgb,var(--theme-primary,#175cd3) 43%,#8999a8)!important;
  border-radius:9px!important;
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 3%,#fff)!important;
  color:color-mix(in srgb,var(--theme-primary,#175cd3) 39%,#223447)!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  text-align:center!important;
  text-decoration:none!important;
  vertical-align:middle!important;
}
body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-link-278:hover,
body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-login-280:hover {
  background:color-mix(in srgb,var(--theme-primary,#175cd3) 12%,#fff)!important;
  border-color:var(--theme-primary,#175cd3)!important;
  filter:none!important;
}
body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-link-278:focus-visible,
body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-login-280:focus-visible {
  outline:2px solid var(--theme-primary,#175cd3)!important;
  outline-offset:2px!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-link-278,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-login-280 {
  color:#edf4fb!important;
  background:#253547!important;
  border-color:color-mix(in srgb,var(--theme-primary,#175cd3) 36%,#64788d)!important;
}
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-link-278:hover,
html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-home-app .tsv-join-actions-280 .tsv-join-login-280:hover {
  background:#30485b!important;
}
